View Full Version : GUI when using HMD Oculus
fabioped
07-01-2014, 04:12 PM
Hi!
How can I show rectangles and 2D text when using the oculus rift hmd support?
I need to show my own 2D GUI created using quads/text over ORTHO layer.
Use <hmd>.getHUD() to get the root HUD node of the Oculus and then add your objects to that.
fabioped
07-01-2014, 05:12 PM
That means I'm adding objects to world-space and not ortho/screen layers right? It would be quite harder to get their positioning right on window X/Y.
Yes, the HUD node is added in world coordinates. You can place objects at a distance comfortable for viewing and then move vertically/horizontally as needed.
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.