e b, I do not have answers to your questions. In fact I�m wondering on the same thing as you, and I would also be happy if anybody could answer your questions.
Thanks Todda >From: e b <[EMAIL PROTECTED]> >Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [JAVA3D] Some simple questions >Date: Fri, 4 Jan 2002 05:56:42 +0000 > >Hello everyone. I'm having a little trouble with this RotationInterpolator. >I want the transformGroup tg to rotate around the z-axis. I thought this is >how it's done, but when I run it, it only rotates around the y-axis. I >don't >know what I'm doing wrong please help. > >Transform3D rotate = new Transform3D(); > rotate.rotZ(1.0); > Vector3f tgTrans = new Vector3f(0.0f, -0.6f, 0.0f); > Transform3D tgtr = new Transform3D(); > tgtr.setTranslation(tgTrans); > TransformGroup tg = new TransformGroup(tgtr); > tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); > >// other objects previously created. > tg.addChild(c1); > tg.addChild(c2); > tg.addChild(b1); > tg.addChild(b2); > tg.addChild(l1); > > RotationInterpolator rotator = new RotationInterpolator(new Alpha(-1, >2000), tg, rotate, 0.0f, (float)(2 * Math.PI)); > rotator.setSchedulingBounds(new BoundingSphere()); > >Also is this the better way to do animations, or is it better (performance >wise) to do it the old fashion way, with a timer to repaint or rerender >every x milliseconds? > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > >=========================================================================== >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". _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com =========================================================================== 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".
