You could try setting a default wait time before the component pops up. Set
this wait time to be long enough to allow slow pc's to finish.
Just a suggestion though.
or
You could set a finished flag and a finished count which is incremented by
the behaviour and synchronise this in the post swap method.
e.g. when alpha reaches one then set the finished flag and in the post swap
method wait for the post swap count to equal the final behaviour count and
hey presto you can display your component.
Chris.
----- Original Message -----
From: Jimmy Talbot <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 13, 2000 5:19 PM
Subject: [JAVA3D] How to react to the end of the rendering of an animation
> Hi,
>
> I have a fairly large geometry being animated on screen with a Path
> Interpolator. When the geometry reaches the end of the path, I want to
> overlay a component on top of it.
>
> The way I do it now is by subclassing the Interpolator and in my
> Interpolator.processStimulus() method I verify when the alpha has reached
> a value of 1. When it has, I make the component pop-up.
>
> On slower computers, however, this doesn't work properly because the
> rendering lags behind, and the component pops-up before the animation is
> over.
>
> What is the best way to solve this problem? Is there like a "rendering
> queue" that I can check? Subclassing Canvas3D and overriding
> postSwap() doesn't help because it doesn't know how many other frames are
> left to render in the animation.
>
> Thanks
>
> 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".