Thank you so much Robert, will give it a try!

Cheers,
mots


On Tue, Oct 8, 2013 at 3:36 PM, Robert Osfield <[email protected]>wrote:

> Hi Mots,
>
> It sounds like inserting osg::CameraView nodes within the subgraphs you
> wish to track, then using a osgGA::CameraViewSwitchManipulator would be the
> easiest way forward.
>
> Robert.
>
>
> On 8 October 2013 03:29, Mots G <[email protected]> wrote:
>
>> Hi,
>> I'm trying to add cameras to the scene (dropping models across the scene)
>> and the user could drag them or rotate them and change its parameters.
>> All works good for the first time, however, I lose track if the user
>> rotates the camera representing object. I'm banging my head with simple
>> math but I'm unable to figure out how the camera's center/up vector change
>> if the camera object rotates. I put the eye to where the node is translated
>> to.
>>
>> I tried to figure out the rotation angle so that I could initialize the
>> camera with the original parameters for the center and up and then apply
>> rotation to the model view matrix but it doesn't seem to make the camera
>> look at, in the correct direction. I'm using daggers for rotating and
>> translating the node.
>>
>> Tried looking at source for some manipulators but could not understand
>> much.
>>
>> Sorry for the noob question but would be glad if anyone could help.
>>
>> Thanks,
>> mots
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to