Jump to content
  • Advertisement
Sign in to follow this  
derek7

Is this correct?

This topic is 4899 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in a book, it is adopt matrix to interpolate. like this way: matrixinterpolate = scalar*(matrix - matrix2) + matrix;//scalar is 0 - 1 but I heard matrix interpolate not work .should be use quaternion to do.so which is correct?

Share this post


Link to post
Share on other sites
Advertisement
The questions are:
Where do want to use this ?
...and what a kind of result do you expect ?

A matrix is a complex structure wich stores many informations like position, rotation and so on. Without any hint a common answer is´nt possible.


Share this post


Link to post
Share on other sites
animation

I want smooth result.

other book,introduce another way:R S T
R quaternion rotate
S vector scale
T vector translate

Share this post


Link to post
Share on other sites
Hmmm....for me its better to know what i wanna smooth exactly:

Ich you e.g. want to smooth the path, a object follows you better have
to use 2 vectors and use the the spline BEFORE you create a matrix
with it.

Or if you want a smooth rotation you have to think about using a sin-function
wich operates on a linear operator (0..pi/2) and use the result for
a matrix rotation.

The blind interpolation of a matrix can have unexpectable results, cause
you have to know wich matrix you want to smooth...

Ok ...my knowledge about quaternions is very small ...cause i did not understood them well...maybe there is a better way with quats ??




Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!