phoelix

04-28-2009, 08:32 PM

Hi there,

I've been programming a controller in the 3ds max sdk, but i've got a problem finding the scale value of a matrix, i need that value even if the matrix is sheared, so a simple vector is not enought, i'll need the vector defining the amount of scaling and a quaternion defining the axis of the scale. In maxscript there are some properties of the Matrix3 class that expose those values

(scalerotationpart and scalepart), but i haven't found something similar in the sdk.

Is there any function to do that in the SDK?, or do you know the way that maxscript calculate the scalerotationpart and scalepart from the matrix?

thanks :D

I've been programming a controller in the 3ds max sdk, but i've got a problem finding the scale value of a matrix, i need that value even if the matrix is sheared, so a simple vector is not enought, i'll need the vector defining the amount of scaling and a quaternion defining the axis of the scale. In maxscript there are some properties of the Matrix3 class that expose those values

(scalerotationpart and scalepart), but i haven't found something similar in the sdk.

Is there any function to do that in the SDK?, or do you know the way that maxscript calculate the scalerotationpart and scalepart from the matrix?

thanks :D