PDA

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.

Jeff
07-01-2014, 05:07 PM
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.

Jeff
07-09-2014, 06:48 PM
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.