Ulrich,

Ulrich Hertlein wrote:
> On 16/5/09 10:57 PM, Cory Riddell wrote:
>> Today I tried to do the FRAME event method and it didn't work. So now
>> I'm thinking that AnimationPath is actually what I should be using.
>> Would AnimationPath provide a way for me to move the camera from some
>> arbitrary position to a predefined position?
>
> Why doesn't it work?
>
> Going the AnimationPath route is of course possible (and might make
> things easier) but the main task in both cases is to compute the
> actual path, e.g. a B-spline with proper start/end points,
> ease-in/ease-out, ensure the viewer is facing the right direction etc.

After you asked me that, I went back to try to figure out what didn't
work. It turns out that I was able to get it working with a few small
changes. I don't know what the correct parametric equation for moving a
camera between two points on the surface of a sphere is. I changed my
code to move the camera along a chord from point A to point B and that
seems to work just fine.

Any idea what the parametric equation for the arc connecting to points
on a sphere is?

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

Reply via email to