Hi Kenji,
But your source has no implementation about transform3D. Can I get
source for Transform3D?
Regards,
yadav.
>From [EMAIL PROTECTED] Wed Feb 24 19:38:20 1999
>Received: from Eng.Sun.COM (engmail4 [129.144.134.6]) by
mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id TAA09040; Wed, 24 Feb
1999 19:37:18 -0800
>Received: from capra.eng.sun.com (capra.Eng.Sun.COM [129.144.251.81])
> by Eng.Sun.COM (8.8.8+Sun/SMI-5.3) with SMTP id TAA19798;
> Wed, 24 Feb 1999 19:37:12 -0800 (PST)
>Received: by capra.eng.sun.com (SMI-8.6/SMI-SVR4)
> id TAA27216; Wed, 24 Feb 1999 19:34:21 -0800
>Message-ID: <[EMAIL PROTECTED]>
>Date: Wed, 24 Feb 1999 19:32:27 -0600
>From: Ken Warner <[EMAIL PROTECTED]>
>X-Mailer: Mozilla 4.5 [en] (WinNT; I)
>X-Accept-Language: en
>MIME-Version: 1.0
>To: Kenji Hiranabe <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [java3d] Transform3D source anywhere??
>References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>Sender: [EMAIL PROTECTED]
>Precedence: bulk
>
>Hi Kenji,
>
>Yeah, I am working on something like what you suggested.
>
>Two things:
>
>1) rotX,Y,Z() are methods on Transform3D().
>
>2) mul(rx,ry) is not equal to mul(ry,rx)...I think. Can anyone set me
straight on
>this?
>
>So the composition of the final transform is not clear to me. There
has to be
>a more direct way.
>
>But thanks for the input. I'm going to sleep on this problem and dream
my solution
>:-)
>
>Ken Warner
>
>Kenji Hiranabe wrote:
>
>> On Wed, 24 Feb 1999 17:18:42 -0600,
>> Ken Warner <[EMAIL PROTECTED]> said:
>>
>> > Hi,
>> > Is the source code to javax.media.j3d.Transform3D available
somewhere;
>> > somehow??
>>
>> > I'd like to add a few methods to it to enable setting the rotation
elements
>> > of the transform
>> > without messing up the rest of the transform elements. For
example rotX,Y,Z
>> > futz the scale
>> > and translation elements. What I want is a rotXYZ(double x, y, z)
that
>> > leaves the rest of the
>> > transform elements alone. The reason I'd like to see the source
is to more
>> > or less copy what
>> > rotX,Y,Z does with less damage to the rest of the transform
elements.
>>
>> Use Transform3D.setRotation(Matrix3d) which doesn't change
>> other factors(scale and translation).
>>
>> It's going to something like..
>>
>> void rotXYZ(Transform3D t3d, double rx, double ry, double rz) {
>> Matrix3d rot = new Matrix3d();
>> Matrix3d tmp = new Matrix3d();
>> rot.rotX(rx);
>> tmp.rotY(ry);
>> rot.mul(tmp);
>> tmp.rotZ(rz);
>> rot.mul(tmp);
>> t3d.setRotation(rot);
>> }
>>
>> You can also use eulerAngle, Quaternion, AxisAngle for rotating.
>>
>> Transform3D depends on javax.vecmath.Matrix[34]d and an
>> unofficial source code for vecmath package is available from;
>>
>> http://www.esm.co.jp/divisions/open-sys/java/vecmath/
>>
>> ---
>> Eiwa System Management, Inc. http://www.esm.co.jp/
>> Kenji Hiranabe E-Mail: [EMAIL PROTECTED]
>>
>> =====================================================================
>> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/