Jump to content

[SOLVED] Assigning a WidgetSpriteViewport to a Window in Screen Space


photo

Recommended Posts

Posted

Hi, I want to simulate a mirror in a car model. What I want to do is similar to gui_02 sample, but rather than an ObjectGui (which is handled as an object in world space), I want the mirror view to be rendered in screen space, much like a window or a canvas. Is there a way to attach a WidgetSpriteViewport object to a window or canvas, or some other suggestion to handle the task?

 

Thanks.

 

PS: I thought of updating the ObjectGui's transformation matrix according to the active player in each frame so that it stays in place, but I assume that is a very very inefficient solution.

Posted

Solved by making WidgetSpriteViewport directly a child of engine.getGui().

×
×
  • Create New...