Hardy

i did transformation to the viewer. i tried to combines translation, rotation and 
scaling in one transformgroup so that i can feed this into the constuctor of the 
Keyboard behavior (com.sun.*) . Any idea how to combine these into 1 transformation to 
fit into 1 transformgroup so that i dont need to have separate transformgroup for 
translation,rotation etc...

Thanks for the help..:-)

-----Original Message-----
From:   Hardy Henneberg [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, January 09, 2000 5:03 AM
To:     [EMAIL PROTECTED]
Subject:        Re: [JAVA3D] Transformation

Janet Song wrote:

> Hi
>
> When i do rotation followed by translation with this code:
>
>         iden = new Transform3D();
>         rotAround = new Transform3D();
>                 transOut  = new Transform3D();
>
>     rotAround.setRotation(new Quat4d (Math.toRadians(aXAngle),Math.toRadians         
>                                                                           
>(aYAngle),Math.toRadians(aZAngle),0.0d));
>     transOut.setTranslation(new Vector3d(xDist, yDist, zDist));
>
> it compiles ok but when i run it, it gives exception that the transformation is not 
>congruent.
> then i tried putting an identity matrix b4 it
>
>     iden2.setIdentity();
>     rotate.setRotation(new Quat4d 
>(Math.toRadians(dXAngle),Math.toRadians(dYAngle),Math.toRadians(dZAngle),0.0d));
>     trans.setTranslation(new Vector3d(dxDist, dyDist, dzDist));
>
> but it still gives exception bad transformation.....
>
> why?
>
> Please help :-)
>
> bye
>
> ===========================================================================
> 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".

what have you used the transforms for ?

Hardy

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

�������������������������o 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