Hi all,

I currently have a scene with a model (the cow).
I have setup a little cam on the bottom left of the window.
I would like my main camera on the nose of the cow (see what the cow is
looking);
my little cam would represent the whole scene where I can know where my cow
is in the scene (position, orientation,. like a thumbnail)

I hope I am clear enough.
What's missing to the following code to realize this?

//... Setupcameras

_viewer->addSlave(

                viewCam.get(),

                osg::Matrixd(),

                osg::Matrixd::ortho(-100, 100, -100, 100, 1.0f, 200.0f),
//to unzoom

                true); //To use master model

If I make projection on the main camera the viewCam is also affected.
How can I see what's the cow looks on the main cam keeping viewCam like
this?

Thanks for your help.
Regards.

Jon

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to