Hi,

My scene graph has a pyramidNode and a pyramidTwoXForm (PAT Node) attached to 
the root.

My composite viewer is defined as follows:


>       osgViewer::View* viewOne = new osgViewer::View;
>       viewOne->setName("First View");
>       viewOne->setSceneData( root );
>       // viewOne->setUpViewAcrossAllScreens();
>       viewOne->setUpViewOnSingleScreen(1);
>       viewOne->getCamera()->setViewport(new osg::Viewport(0,0,500,500));
>       viewOne->getCamera()->setProjectionMatrixAsPerspective(45, 1, 2, 10);
>       // viewOne->setUpViewAcrossAllScreens();
>       viewOne->setCameraManipulator( new osgGA::TrackballManipulator);
>       // viewOne->setCameraManipulator(followPyramidTwoXForm);
>       compositeViewer.addView(viewOne);
> 
>       osgViewer::View* viewTwo = new osgViewer::View;
>       viewTwo->setName("Second View");
>       viewTwo->setSceneData( root );
>       viewTwo->setUpViewOnSingleScreen(0);
>       viewTwo->getCamera()->setViewport(new osg::Viewport(520, 0, 500, 500));
>       viewTwo->getCamera()->setProjectionMatrixAsPerspective(45, 1, 2, 10);
>       viewTwo->setCameraManipulator( new osgGA::TrackballManipulator );
>       compositeViewer.addView(viewTwo);


 I want to have the viewTwo camera follow the pyramidTwoXForm (PAT). How do I 
set it to do the required? 

Please help me, I am unable to figure this out for a while now.

Thank you!

Cheers,
John

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26335#26335





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

Reply via email to