Ran into a new problem.  Its related directly to this HUD so I figured I would 
just continue this thread.  

I want the HUD to slide on and off the screen.  I figure the best way to do 
this would be with a nodecallback attached to the camera.  Then i can just move 
the viewport or the viewmatrix to simulate the HUD moving off screen.  

The problem is, is that the moment I add the updateCallback to the camera my 
models on my hud don't render properly.  The two hands disappear and only the 
sphere remains, as well as its animation never plays. 

I found a DrawCallback class as well but its a const operator() method so I 
can't change the properties of the class how I want to.  

Im a bit stuck here.  Also I wasn't really sure whether I should be moving the 
view matrix or view port to get the HUD to move.  I tried adding the callback 
to the osg::Group as well that is under the HUDCam but as part of the HUD is an 
osg::projection there was no way to easily slide everything at once.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61740#61740





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to