Hi...

you could do something like this:

        osgProducer::Viewer viewer(BuildConfig());
        viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);
viewer.getCamera(0)->setLensFrustum (left,right,bottom,top,nearClip,farClip,xshear,yshear);

or...if you just need to set a symetrical frustum you could use this one

viewer.getCamera(0)->setLensPerspective(hfov, vfov, near, far, xshear,yshear);

Hope this helps...
bye, Markus.


Am 20.04.2007 um 14:24 schrieb belthil:

Hello,

Within my application, i am using an osgProducer::Viewer, and i would like to set the frustrum with my personal parameters. How can i do? If osgProducer::Viewer does not enable to do that, could you please tell me, in case, what i have to use and the links with osgProducer::Viewer (like: what is the function which is the same as viewer.done() or viewer.sync() etc...).

I thank you in advance for all the help you could send me!

Bye


Créez votre adresse électronique [EMAIL PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--

Dipl.-Inform. Markus Stöbe
Gruppenleiter "Simulatoren"

Deutsches Zentrum für Luft- und Raumfahrt e.V.
in der Helmholtz-Gemeinschaft
Institut für Verkehrsführung und Fahrzeugsteuerung
Lilienthalplatz 7
38108 Braunschweig

http://www.dlr.de/fs



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to