> I've got a loop running and want to suspend the processing of the loop to
> allow the Canvas3D to complete it's update to the latest data. Does anyone
> know a method that can be called from the canvas that returns something at
> the end of an update?
One way to do this is to subclass Canvas3D and override postSwap(). You can
then make your loop stop processing until it gets woken up by a notification
from postSwap(). You may also want to use View.getFrameNumber() to wait for
some number of frames before returning control. In 1.1 you'll need to wait at
least two frames to be sure your changes are on the screen, in 1.2 you should
only need to wait one frame.
You'll want to use the Object wait/notify methods to halt and restart the loop
thread.
Doug Gehringer
Sun Microsystems
===========================================================================
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".