Yes, u can easily extract scale and translation parameters from 4x4
matrix, either with help of Transform3D or by means of simple
calculations on that matrix. The most difficult thing is to extract
rotation angle around EACH axis. From the point of pure logic there
should be a way to do it using ONLY this matrix. From the point of
math and the way the rotational part of 4x4 matrix is consturcted, it
is near to impossible, unless u rotate a figure around at least one
axis more than once. But if u take a vector of length = 1 and apply
the rotation u have to this vector, then, i guess, u would be able to
figure out some angles (but these won't be the angles of rotation
AROUND the axices, as far as i understand it, but the angles BETWEEN
axices of coordinate system and axices of the rotated figure).

Possibly this could have helped.
vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
HN> REPOST: can any one help me with this?

HN> can someone point me to the formula such that:

HN> given the 4 by 4 transform matrix, it calculates
HN> the translation(x, y, z), rotation(x, y, z) and
HN> the scale factor(x, y, z)?

HN> thanks in advance.

HN> -hai

HN> ===========================================================================
HN> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
HN> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
HN> [EMAIL PROTECTED] and include in the body of the message "help".

HN> ===========================================================================
HN> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
HN> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
HN> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to