Am Freitag, 19. Mai 2006 09:50 schrieb Robert Osfield: > Hi Rudiger, > > It souns like the automatic adjustment of the near and far planes is > affecting your hud for some reason, I would't normally expect this as the > OSG doesn't cull by default using the near and far planes, and recomputes > the required near and far planes for each frame, and the HUD itself should > define its own projection matrix with its own near and far to shouldn't be > affected by the main windows one...
It's more the other way around. The HUD affects the main camera even though it is below it in the scene graph. As far as I understood a SceneView object maintains it's own CameraNode to which the users stategraph is attached via SceneView->setSceneData(). And the projection matrix of that "internal" camera gets destroyed somehow. I've attached the source to an other reply in this thread. It's basicaly the osgglut example with an "egoshooter-like" camera control and a hud. Perhaps I've got something completely wrong but I don't get it. __ Rud
pgpPw923ecFnP.pgp
Description: PGP signature
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
