Florin Herinean wrote:
Actually I've tested your code and the culprit is setScale, not
set(<translation>). That's normal, since what you retrieve is the combined
rotation-scale matrix from the transform3d.
It is? Well if I comment out setScale it works fine, but if I comment
out setTranslation it also works fine, so translation must be involved
in the process somehow.
I cannot just revert the setScale. If I try to do a t.setScale(1d); the
rotation still comes out the same. If I try to do a t.setScale(2d); same
bad result.
But do you suggest any workarounds? The rotation is not corrupted inside
the matrix4d, since my model displays correctly translation, scale and
rotation in my 3D world. So somehow I should be able to retreive the
rotation, it must be there, otherwise it would not be drawn correctly.
Is the corrrect Matrix4d inside the retained node only, and the normal
matrix4d is corrupted but displays correct since it is not even used for
displaying, the retained one is?
Workaround anyone?
----------------------------------------------
Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31 Fax: +45 65 93 29 99
WWWeb: http://www.ifad.dk
e-mail: [EMAIL PROTECTED]
----------------------------------------------
===========================================================================
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".