Hi Robert,
Thanks Robert. I don't need the line by line teaching. I only need
pointers. Thanks for your help. That much should be adequate for me.
Regards
Harash
Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Harash,
Moving the vehicle can be done via osg::AnimationPathCallback attached
to a MatrixTransform.
Tracking the vehicle will require something along the lines of
NodeTrackerManipulator - you'll need to accumulate the world transform
on every frame and compute the view matrix accordingly. How best to
compute this is your problem, I could point you in the right direction
but it's not my role to teach you how to write your application.
Robert.
On 10/3/07, Harash Sharma wrote:
> Hi Robert,
>
> I am trying to simulate observation of an object from a vehicle. The
> task is as follows:
>
> 1. The observer is placed in a moving vehicle that is following a
> pre-programmed path.
> 2. The observer is constantly looking at a fixed (or moving) object from
> within this vehicle.
>
> How do I achieve this effect?
>
> I have tried using the NodeTrackerManipulator. I have derived a class from
> this. The node to be tracked is placed within this vehicle. Override the
> handle function.
>
> But how to compute the view matrices? And is the procedure proper or is
> there any better mechanism? Thanks in advance.
>
> Regards
>
> Harash
>
> ________________________________
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
>
>
> _______________________________________________
> 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
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more. _______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org