Hi Matti,
Canvas3D.waitForOffScreenRendering() should wait until the postSwap
method of the off-screen Canvas3D has completed. Seems like it is a bug in
the Java3D code. A bug (#4344258) has been filed to
track the problem.
Thanks for reporting the bug.
Charmaine Lee
Java3D Engineering Team
> X-Sender: mhietaj@tk8
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8BIT
> Date: Thu, 8 Jun 2000 19:53:43 +0300
> From: Matti Hietajarvi <[EMAIL PROTECTED]>
> Subject: [JAVA3D] synchronizing off-screen rendering
> To: [EMAIL PROTECTED]
>
> 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".
===========================================================================
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".