HI Olfat,

If you require two views, then use the CompositeViewer with two views,
not using two Viewer's.  Please see the osgcompositeviewer for
guidance on how to set up this type of viewer.  Also do a grep of all
the examples as other examples use it too.

Robert.

On Thu, Dec 18, 2008 at 1:25 AM, olfat ibrahim <olfat_ibra...@yahoo.com> wrote:
> hello :
>
> i need to synchronize two view windows .
> i created two views and one key switch Manipulator
>
> i want as i walk in one window my view synchronized in the other window with 
> solaly differ view.
>
> this is my try but it is drive in the first view but no moves happened in the 
> second view :
>
> while( !viewer.done() || !viewer1.done() )
>    {
>                viewer.getCamera()->getViewMatrixAsLookAt(eye, center, up);
>                viewer1.getCamera()->setViewMatrixAsLookAt(eye, center, up);
>
>  viewer.frame();
>                viewer1.frame();
>    }
>
> what iam doing wrong ?
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to