Hi Chris, There is too many unknowns for the rest of us to be know what is going wrong with this latest issue - only you have your code and models, and can view what is happening first hand and use a debugger to step through what is happening.
The best we can do is provide general recommendations. For moving graphics on and off screen you have a range of options - your could alter the Camera view or projection matrix, or even the viewport, or even place a transform above the scene graph that you want to animate, so all of these options are viable. Which is best is probably down to how you manage things, conceptually I'd say animating things on/off screen is a viewer level operation, so I'd do it at the Camera level rather than a transform within the scene graph. Personally I'd alter the view matrix, but this is just a general preference. Robert. On 20 November 2014 14:49, Chris Hidden <[email protected]> wrote: > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

