3D UI always in the same camera orientation

I want to build some 3D UI that will always be oriented in same place in the camera frame. How do I parent that UI so that it moves with the camera?

I think the easiest way is to use an additional camera that would render only the 3D GUI elements and that would stay fixed:

https://playground.babylonjs.com/#HJZBRG#151

2 Likes

I want to simulate 2D GUI using only meshes. But how can I make sure that the GUI is always, for example, in the lower left corner, regardless of the size and aspect ratio of the window?