Hi all,
Probably a stupi quetsion, but I a m trying to set up the projection
matrix of the display using the following code :
// realize the viewer
pViewer->realize();
osgProducer::Viewer::SceneHandlerList &shl = pViewer->getSceneHandlerList();
for (osgProducer::Viewer::SceneHandlerList::iterator i=shl.begin();
i!=shl.end(); ++i)
{
osgUtil::SceneView* sv =(*i)->getSceneView() ;
osg::CameraNode* camNode = new osg::CameraNode ;
// stupid projection matrix
camNode->setProjectionMatrixAsOrtho(-10,10,-10,10,-10,10);
sv->setCamera(camNode);
}
//Run the viewer ( sync update frame )
pViewer->run();
And it seems that whatever the projection is, there is no difference to
the display ( always a standard camera , with none of my exotic
projections ) ...
Any hints or help ? Am I doing something wrong ?
Thanks for ANY help
--
Remy Deslignes
Ingenieur Developement / Software Engineer
Tel: +33 (0)1.53.90.11.19
===========================================
Silicon Worlds S.A.
224, rue Saint Denis
75002 Paris France
Tel: +33 (0)1.53.90.11.11
Fax: +33 (0)1.53.90.11.12
http://www.silicon-worlds.fr
===========================================
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/