Hi Peter, On Tue, Nov 4, 2008 at 2:21 PM, Peter Wraae Marino <[EMAIL PROTECTED]> wrote: > when having a composite view I have two camera, one for each view. > Is there an elegant way of syncing these two cameras? so they have > the same fov, position, direction, and so on...
What is different between the two Views? I do wonder if a single View with two slave Cameras might not be more suitable. If you do have two different View's such as with two different scene graphs then perhaps sharing a single CameraManipulator between the two views might do the trick - I've never tried this though so odd things might happen. The other approach would be to attach a CameraManipulator to one View, then on each frame copy the first view's Camera settings to the second View. You'd need to break the viewer.frame() up into it's parts so you could do the sync just before the call to renderingTraversals(). Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

