Hi Alice,

On Mon, Aug 16, 2010 at 9:52 PM, Alice Yin <[email protected]> wrote:
> My only concern now is since I have two cameras now, one prerender, one 
> normal, how can I control these two at the same time?

There are a number of different ways to control slave cameras, or
cameras in the scene graph.  If you want to use the usual viewer
CameraManipulator such as the TrackballManipulator then you should set
up your slave Camera to inherit it's view and projection matrix from
the viewer's master Camera by setting a RELATIVE_RF ReferenceFrame.
For the slave Camera that is independent from the viewer's master
Camera this you'd use an ABSOLUTE_RF ReferenceFrame and set the
projection and view matrices on the Camera directly either at start up
on on each new frame.  The osgdistortion example does just this.

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

Reply via email to