I have to synchronyze two rotation interpolators. Each one, at alternate
time, controls the same transformGroup, but when one stop end the other
starts i see a flickering. I use the alpha's atZero to alternate the two
interpolator, the code is this one:
long tt = (new Date()).getTime() - scene.rthigh.alphaMA.getStartTime();
         long tta = tt + 5000;
         long atZero = 5000;
         long delay1 = 0;
         long delay2 = 5010;

makeUp(scene.rthigh.alphaMA,scene.rthigh.alphaMB,tt,delay2,delay1,atZero);

makeUp(scene.lthigh.alphaMA,scene.lthigh.alphaMB,tta,delay1,delay2,atZero);

makeUp(scene.rshinbone.alphaMA,scene.rshinbone.alphaMB,tt,delay2,delay1,atZero);

makeUp(scene.lshinbone.alphaMA,scene.lshinbone.alphaMB,tta,delay1,delay2,atZero);

Where
public void makeUp(Alpha a,Alpha b,long t,long d1,long d2,long z) {
  a.setTriggerTime(t);
  b.setTriggerTime(t);
  a.setPhaseDelayDuration(d2);
  b.setPhaseDelayDuration(d1);
  a.setAlphaAtZeroDuration(z);
  b.setAlphaAtZeroDuration(z);
  a.setLoopCount(-1);
  b.setLoopCount(-1);
  }

thanks

--------------------------
Andrea Baroni


Vecchiano PI
to mail remove XyX
[EMAIL PROTECTED]
[EMAIL PROTECTED]

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