It seems that Interpolators would be handy things for controlling
objects in general, whether by time, through interaction with the
mouse, or programmatically.

How much of the Alpha interface does an Interpolator actually use? 
(It seems to me that the Interpolator really only needs to call
Alpha.value() each time Interpolator.processStimulus() is invoked).

I (think) I could override Interpolator.processStimulus() and force
feed Interpolator my user/program input value by setting a new Alpha
but this seems pretty kludgy and inefficient.  Overriding Alpha is
what I'd really like to do since Interpolators are otherwise just
fine.  Any estimates on how plausible it would be to subclass Alpha
and override value() which returns my user/program value?

J3D suggestion:
Assuming my assumption about Interpolator only needing Alpha.value(),
provide another constructor that accepts an AlphaValue interface
instead of an Alpha object.  The AlphaValue interface would have a
single method, value(), which returns the alpha value.  Then anything
implementing AlphaValue could act as an Interpolator control source.

--jon 
____________________ Peculiar Technologies ____________________
Jon Barrilleaux       3800 Lake Shore Ave.         Purveyors of
[EMAIL PROTECTED]        Oakland, CA 94610      Alternate Reality
510.444.4370 voc                           Augmented Simulation
510.444.0231 fax        www.augsim.com         and 3D Solutions
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to