> Date: Wed, 9 Jul 2003 10:13:35 +0300 > From: Pasi Paasiala <[EMAIL PROTECTED]> > > Could be a thread problem. You should have one thread where you set > the rotations, and this thread should have a lower priority than the > rendering thread. Also, do you have sleeps between setting of the > rotations. If not, setting happens so fast that only the last position > gets rendered. See java.lang.Thread for more details.
Right. But using a Behavior or Interpolator is the recommended way to update the scene graph for animation since these objects will automatically be run in a thread with the appropriate scheduling. > -----Original Message----- > Sent: 9. hein�kuuta 2003 10:03 > Subject: [JAVA3D] Animating body > > A would like to animate the legs of a human body. If i press a button > it should make a "full step" (moving both legs ...). I tried to make > a while cycle with the right transformations in it but my "human" > doesn't move his leg. It calculates the angle's. I set the > Transform3D -s, set the transforms but nothing happens until the last > transformation. So ... i would like to ask you: how could i solve > this problem. Read Chapter 10 "Behaviors and Interpolators" of the Java 3D Specification and use these objects to do your animation. Running your animation in the user thread or some other thread other than the Behavior thread is possible, but is a fairly advanced usage of Java 3D. Generally you can't synchronize scene graph updates with rendering unless you're in the Behavior thread. -- Mark Hood =========================================================================== 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".
