Hi!
My problem is, I'm sure for you experts its very simple, but I can't find my

way out...

I use three buttons to control the rotation of an object (rotX, rotY, rotZ).
First it works fine, but after some "Button-Clicks" the object disappears.

Why??

Thanks

Norbert

sourcecode:

case ROTATE_Y:
                trans.getRotationScale(getMatrix);
                Matrix3d yMatrix = new Matrix3d(1.0, 0.0, 0.0, 0.0, 1.0,
0.0, 0.0, 0.0, 1.0);
                yMatrix.rotY(Math.PI/4.0);
                yMatrix.mul(getMatrix);
                trans.setRotation(yMatrix);
                trans.getRotationScale(aktMatrix);
                transformGroup.setTransform(trans);
                break;
             case ROTATE_Z:
                 trans.getRotationScale(getMatrix);
                 Matrix3d zMatrix = new Matrix3d(1.0, 0.0, 0.0, 0.0, 1.0,
0.0, 0.0, 0.0, 1.0);
                 zMatrix.rotZ(Math.PI/4.0);
                 zMatrix.mul(getMatrix);
                 trans.setRotation(zMatrix);
                 trans.getRotationScale(aktMatrix);
                 transformGroup.setTransform(trans);
                break;
             case ROTATE_X:
                trans.getRotationScale(getMatrix);
                Matrix3d xMatrix = new Matrix3d(1.0, 0.0, 0.0, 0.0, 1.0,
0.0, 0.0, 0.0, 1.0);
                xMatrix.rotX( Math.PI/4.0);
                xMatrix.mul(getMatrix);
                trans.setRotation(xMatrix);
                trans.getRotationScale(aktMatrix);

                transformGroup.setTransform(trans);





--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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