Hi,
I am having the same problem trying to do reflection, the matrix:
(-1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1)
Gives either a non-affine or non-congruent exception. I'm fairly sure a reflection is
an affine transformation but I don't know what congruent means.
I believe that there are some known bugs in the way java3d decides whether a
transformation is congruent etc. Is there also a known workaround for these problems?
Janet, the bugs are supposed to be fixed in the new release, so if your
transformations work separately, it might be easier to wait for the fix before
combining the operations into one transformation.
From,
Greg.
Janet Song wrote:
> 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".
>
> =========================================================================
> 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".