Re: [osg-users] View not as expected

2010-07-06 Thread Robert Osfield
Hi Sanat, Your subject line says View not as expected, but reading your email I don't get any qualification of this. Until you explain exactly what is wrong nobody will be able to help you. Robert. On Mon, Jul 5, 2010 at 11:24 PM, Sanat Talmaki sanat.sch...@gmail.com wrote: Hi, I am trying

Re: [osg-users] View not as expected

2010-07-06 Thread Sanat Talmaki
Hi Robert, Ah yes, my post's title may have been misleading. But what I am trying is: For the top-most view, I add the whole scene to the view: Code: view-setSceneData(root); view-setCameraManipulator(new osgGA::TrackballManipulator); view-getCamera()-setUpdateCallback(new

Re: [osg-users] View not as expected

2010-07-06 Thread Robert Osfield
Hi Sanat, It doesn't make sense to attach a CameraManipulator which updates the camera position and an update callback to update it's position, use one or the other. Robert. On Tue, Jul 6, 2010 at 3:01 PM, Sanat Talmaki sanat.sch...@gmail.com wrote: Hi Robert, Ah yes, my post's title may

Re: [osg-users] View not as expected

2010-07-06 Thread Jean-Sébastien Guay
Hi Sanat, For the bottom left view, I wanted a view of the 3D model (backhoe) and the terrain with the camera either inside the cab of the backhoe or hovering just above it. So I did the following: Code: view-setSceneData(backhoe1PAT); //where backhoe1PAT is the positionAtttransform of the

Re: [osg-users] View not as expected

2010-07-06 Thread Sanat Talmaki
Hi JS, Rob I understand what you meant by having either the manipulator or the update callback. The NodeTrackerManipulator worked perfectly. It gives me the exact behavior I wanted except for the fact that its default orientation is a side on view to my model node. I can rotate that with my

Re: [osg-users] View not as expected

2010-07-06 Thread Jean-Sébastien Guay
Hello Sanat, The NodeTrackerManipulator worked perfectly. It gives me the exact behavior I wanted except for the fact that its default orientation is a side on view to my model node. I can rotate that with my mouse and change the view to my preference. But I would like to have the scene

[osg-users] View not as expected

2010-07-05 Thread Sanat Talmaki
Hi, I am trying to use osgViewer::CompositeViewer to get multiple views of my scene. In the screenshot attached, I have the topmost view as the that of the overall scene. However I wanted the bottom-left view to be that of the just one of the models in the scene and following it in a manner