Does any one know precisely when WakeupOnElapsedFrames(0) becomes
true? Looking at the API, a process should wakeup every time a new
frame is displayed. However, the definition of a "new frame" is not
clear to me. Logically, it should be whenever anything in a scene has
changed and a new rendering is done. However, it appears that
regardless of what happens in a scene, a process wakes up whenever
there is a wakeupOn(newFrame), regardless of whether the scene has
changed.
What I really want to do is have a loop that generates a scene,
render, get back the image, process the image, and then depending on
the output of the image process, generate another scene. What this
means is that I cannot put my code in the rendering loop because a new
scene needs to be rendered before the previous render is done, and I
am having trouble with using the WakeupOnElapsedFrames criterion
because of the following steps:
When a canvas3D is appears, it first generates a blank frame, then my
initial scene. I want to skip the blank frame. If I skip it by just
calling wakeupOn(newFrame) after getting the blank frame, then the
frame with the initial scene is displayed twice, so I am one step
behind from then on. If I don't call wakeupOn(newFrame), then the
process won't wakeup.
Does anyone have a way to solve this problem?
Lily
===========================================================================
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".