Search found 5 matches

by pippy2
Sat Mar 15, 2008 5:42 am
Forum: Advanced Help
Topic: Rotation interpolation
Replies: 13
Views: 1514

ah, thanks xDan!

Edit: For some reason it doesn't interpolate the Z coordinate. I'll look into it more
by pippy2
Fri Mar 14, 2008 5:20 am
Forum: Advanced Help
Topic: Rotation interpolation
Replies: 13
Views: 1514

I got closer with the previous method than this one:
core::vector3df rotinterpol(const core::vector3df &actualCamera, const core::vector3df &orginalRotation, const f32 &interpolation){
core::quaternion tmp;
tmp.slerp( core::quaternion(actualCamera), core::quaternion(orginalRotation ...
by pippy2
Thu Mar 13, 2008 3:36 am
Forum: Advanced Help
Topic: Rotation interpolation
Replies: 13
Views: 1514

Thanks morris. I tried to work out the interpolation using this code:

core::vector3df rotinterpol(const core::vector3df &actualCamera, const core::vector3df &orginalRotation, const u32 &interpolation){

core::vector3df base = actualCamera;
core::vector3df move = (actualCamera-orginalRotation ...
by pippy2
Sat Mar 08, 2008 10:13 am
Forum: Advanced Help
Topic: Rotation interpolation
Replies: 13
Views: 1514

night_hawk: thanks heaps for your code =D

I would love a method that checked for the shortest path. for example if the original X was at 20, and the target X was at 270 it would be quicker to go down instead of up...

My code for doing this looks like someone threw it up, and it still doesn't work ...
by pippy2
Thu Mar 06, 2008 3:14 am
Forum: Advanced Help
Topic: Rotation interpolation
Replies: 13
Views: 1514

Rotation interpolation

I have two rotations, a target and a current(old) rotation vector. I need to animate a smooth transition between the two.

How do I get a rotation that is between the two vector3fs?