Hi Jason,

I guess you have to have a look at the CameraManipulators available and
probably inherit and override some code. There is some OrbitManipulator
maybe you can start with.

Nick


On Thu, Nov 21, 2013 at 9:17 AM, Jason Anderssen <janders...@exactal.com>wrote:

> 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 <trajce.nikolov.n...@gmail.com>
> Reply-To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org>
> Date: Thu, 21 Nov 2013 15:19:42 +1000
> To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org>
> 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 
> <janders...@exactal.com>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
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> trajce nikolov nick
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to