Hi Mike,

> 2. The RotPosPathInterpolator doesn't give up control of the
TransformGroup,
> even when the Alpha has run its course. So, to my utter delight, once I'd
> finally stumbled across the above hack to get the Alpha to run once-only,
> the keys no longer worked, presumably because the RotPosPathInterpolator
was
> clobbering the KeyNavigator's adjustments to the TransformGroup with it's
> own transform, ie the final position/orientation.
>
> Hope I might save somebody some frustration with the Alpha thing. Does
> anybody have an elegant way around the crazed RotPosPathInterpolator
> behavior?

I wouldn't say its elegant, but it does work for my purposes:

public class MallRotPosPathInterpolator extends RotPosPathInterpolator
{

 public MallRotPosPathInterpolator(
  Alpha alpha, TransformGroup target, Transform3D axisOfRotPos, float[]
knots,
  Quat4f[] quats, Point3f[] positions)
 {
  super(alpha, target, axisOfRotPos, knots, quats, positions);
 }

 // Override to disable interpolator, if alpha has finished
 public void processStimulus(Enumeration wakeupCriteria)
 {
  super.processStimulus(wakeupCriteria);

  if(getAlpha().finished())
   setEnable(false);
 }
}

Hope this helps

Chris Wewerka

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