Hi Trajce,

Thank you for your response, so will this still allow the user to be looking at 
one location, while the scene itself rotates around a different location?
I did think I tried this, and I thought the whole view changed to the new 
centre, I will try again all the same.

Cheers
Jason

From: Trajce Nikolov NICK 
<[email protected]<mailto:[email protected]>>
Reply-To: OpenSceneGraph Users 
<[email protected]<mailto:[email protected]>>
Date: Thu, 21 Nov 2013 15:19:42 +1000
To: OpenSceneGraph Users 
<[email protected]<mailto:[email protected]>>
Subject: Re: [osg-users] Pivot point in osgViewer

Hi Jason,

very easy to do this. You control the view matrix manually. Something like

viewer.getCamera()->setViewMatrixAsLookAt(eye,center, up)

probably you would want to do an UpdateCallback for the camera that gets the 
new pivot point and change only the center



Nick


On Thu, Nov 21, 2013 at 8:01 AM, Jason Anderssen 
<[email protected]<mailto:[email protected]>> wrote:
Hi all,

Im experimenting with osgViewer, and would like to know how I would go about 
changing the pivot point of the scene if the user clicks on an object and I 
want to use the scenes object's centre point as the new pivot point? Is this 
possible with the current manipulators?
So ultimately I am trying to implement dynamic pivot point selection by the 
user but still maintaining the current view position.

Thank you in advance.

Cheers
Jason

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




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

Reply via email to