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]>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]
> 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