Hi Robert,
I've just reviewed you changes and am now having second thoughts about
the need for checking that parents. Scene graph cameras don't get
added to the GraphicsContext, it's only viewer cameras that get added
so your addition looks unnecessary.
I'll have to re-check my application's scene graph and viewer setup, but
I was having trouble getting everything (text, HUDs) in the screenshots
because the callback was getting added to the wrong camera. Adding either
&& (*cam_itr)->getNumParents() == 0
or
&& (*cam_itr)->getView() != NULL
to the if statements fixed it (the callback got added to the correct
camera then).
I'll check again and get back to you.
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org