4.5 UMG Widget Translation issue

I want to place my widget from 3d position converted into 2d space.

Preparation:

  • Widget have pivot 0,0
  • I’ve a point in 3d world converted to 2d screen coordinate,
  • I’m creating widget → set pivot to 0,0, → set translation to the 2d screen coordinate,
  • BUT ALWAYS my screen is positioned 100-150 pixels to left,
  • I’m drawing 2d box at 2d screen coordinate and it seems to be OK,

How are you setting the position?

Hello

I can reproduce the what is happening in your image. However, to make sure that this is an issue it would help greatly if you could provide a screen shot of your setting in the details panel as well as a screen shot of the positioning of your assets within the canvas panel.

i got similar issue. The screen position and render translation is not exactly the same. The render translation need to be multiplied by a factor depending on current display resolution to produce correct result.
for example:
640x480 → multiply by 2.25
1280x960 → multiply by 1.25
the formula for that factor is something like: 1080/min(resx, resy)

Hey intoxicat3 ,

I’ve not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and I will try to assist you further.

Thank you.