I've tryied it many times: regardless if I comment out setTranslation or
not, the outputs are different.

Outputs are the same *only* if I comment out setScale from your code or set
the scale value to 1.0d.

Are you sure you're recompiling the program after commenting the
setTranslation ?

I'm using jdk 1.4.2 & java3d 1.3.1

Cheers,

Florin

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of Nikolai V. Chr.
Sent: Mittwoch, 28. April 2004 17:35
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Why does translation affect rotation values


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".

===========================================================================
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