Hi!
Is it absolutely certain that calling
Canvas3D.waitForOffScreenRendering() will wait until postSwap() has
_returned_?. I have code in postSwap() to write the last frame to a jpeg
and it takes some time.
Following code should create a sequence of jpeg images where a box moves
to the left some fixed amount between sequential frames.
for (;;) {
renderOffScreenBuffer()
waitForOffScreenRendering()
// move a box in view a bit to the left
}
Unfortunately, in the resulting images the position of the box not updated
smoothly - either two sequential images are identical or the box moves too
much.
Then I tried moving the jpeg code into postRender() and got a perfect
image sequence, except delayed by one frame (as expected).
I'm using J3D 1.2 in Solaris/SPARC environment.
-- Matti Hietajärvi, University of Oulu, Finland
===========================================================================
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".