Advertisement Jump to content
Sign in to follow this  

Is this correct?

This topic is 4996 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 which is correct?

Share this post

Link to post
Share on other sites
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

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 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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!