2d in 3D hud

Evak

12-10-2006 05:56:31

Wondering if anyone has had success in making a simple 2D in 3D hud with Ofusion.


So far I have been starting with something simple and tried linking a textured quad to the camera. Unfortunately the quads transforms go wrong and it gets rotated 90 degrees, and the camera rotates independently of its children.

What I want to do eventualy is create a simple icon menu kind of like 3dsmax's quad menu, only with 1 - 8 large icons you can select with a gamepad when you move the pad off center with the menu turned on.

This would be drawn infront of the rest of the scene.

Lioric

12-10-2006 17:53:38

Add a helper node (same pos as the cam) and set it as the parent of the camera, then link the plane/quad to this helper node too

In your application you control the helper node directly (this will move and positionate the camera and the quad automatically)

For the quad, disable zbuffer read and write so it will be drawn correctly

Evak

13-10-2006 01:03:58

hey thanks, I'll try this out tonight :)

Tried it and it worked, thanks for the tips. Should make the rest fairly straight forward :)