Hi Arnaud, I don't know how you have added the HUD Camera so giving specific advice is not possible. What you will need to do is pass the view matrix you want onto the camera on each frame after the eventTraversal(). If you break the frame loop out into its constituent parts this will be possible. i.e.
while(!viewer.done()) { viewer.advance(); viewer.eventTraversal(); viewer.updateTraversal(); // do you view matrix update here. viewer.renderingTraversals(); } Robert. On Feb 19, 2008 4:50 PM, arnaud houegbelo <[EMAIL PROTECTED]> wrote: > Hello All, > > In the code exemple osghud.cpp we have the possibility to avoid to the > camera to grab the event of the main camera viewers with > camera->setAllowEventFocus(false); I want that my HUD oject > use my trackball event for dipslay (eg if I make rotation the HUD follow the > trackball rotation). I used this function like this > camera->setAllowEventFocus(true); > but the HUD object don't follow the trackball. > > Best Regards > Arnaud > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org