Why my umg sprites are wrongly cut?
I have a umg hud setup for my minimap.
Map is rendered to Image Mini Map, some sprites above it and Canvas Npc for Npc tokens and their visiblilit triangles. I am placing them dynamically at runtime from C++ code.
And here is the image i got in game
You can see I have two visibility sector sprites cut from the wrong side. Looks like they are cut before they are rotates. Is there option how I can fix this behaviour?
My code for visiblility sprites creation.
And code for their position setup and rotation.
Don't think there are errors there, but just for the info. they are positioned and rotated correctly I think. It is some bug in sprites cutting logic in umg?
They are also wrongly cut in UMG editor preview.
Any ideas how I can overcome this? Or place where I should dig in UE source code?
asked Sep 24 '15 at 10:43 AM in Rendering
I'm experiencing similar issue: ![arrow indicator]
This my arrow indicator pointing to enemy airship that's outside player's FOV(you see things like this in most flying games)
From what I understand: Unreal first cuts out image that is outside screen and then rotates it. You can see it perfectly on your last image. I think switching order of this two procedures could fix our problem. @Epic please!
Have You found any workaround for that? : /storage/temp/90305-capture.png
answered May 12 '16 at 10:29 AM
The render transform takes whatever is visible and moves it around. So if you have something cut off due to the positioning it'll look like that no matter where you transform it to.
Try changing the actual location of the object and not it's render transform.
Another way would be to spawn it in a place where it's fully visible and then move it to the desired location on the HUD using the render transforms.
answered May 12 '16 at 01:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here