Jimmy,

A simpler (cleaner) way that might work for you is to derive a class from
Alpha. Override the value() method and watch for the values that your Alpha
is returning. The time/value will tell you when a cycle of the Interpolator
is complete, then it is time to activate your "end of animation" code.

If the animation is just running once, set the Alpha to loop -1 and then you
can easily catch the start of the next cycle. At the start of the next cycle
disable the Interpolator.

Just my thoughts.

Sincerely,

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com

> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jimmy Talbot
> Sent: 18 January 2000 16:45
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] PostSwap() not synchronized
>
>
> Hi,
>
> This question is related to the question I asked a few days ago regarding
> making a component pop-up after an animation completes. I made a counter
> class with two counters in it, one for counting the calls to
> Interpolator.processStimulus() and one for counting the calls to
> Canvas3D.postSwap(). When the Interpolator.alpha is finished AND the two
> counters are equal, I make the component pop up; but still, the animation
> is still sometimes not finished.
>
> Does this mean that PostSwap() is not guaranteed to only be called after a
> frame has displayed on the screen?
>
> Jimmy
>
> ==================================================================
> =========
> 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".
>

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