this is a test ! thank you
2011/2/2 Jean-Sébastien Guay <[email protected]> > Hi Mukund, > > So, my first query is clear. Well as for my second one. How is it the >> object is being projected if it is even placed before the near-clip plane? >> ie before 1900? >> >> i could not get this part. >> > > Do you have a camera manipulator attached to your viewer? Even if you don't > create one yourself, some usage models of osgViewer will create a > TrackballManipulator for you. > > Whether the object is in view does not just depend on the projection > matrix, it also depends on the view matrix. If you set up your projection > matrix like you said, but your view matrix is identity except for a > translation by (0, -2000, -1000), then you will still see your node. And by > default, on first frame, the default camera manipulator will do just that - > change the view matrix so that the whole scene is visible... > > So if you want total control over camera placement and projection, remove > the camera manipulator. And if you want to see why your node is visible, > check the view matrix of your camera after a few frames in the debugger... > > Hope this helps, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > 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

