Hi Jeff,

>X-Unix-From: [EMAIL PROTECTED]  Wed Jun 13 12:09:27 2001
>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Date: Wed, 13 Jun 2001 14:59:17 -0400
>From: Jeff Downs <[EMAIL PROTECTED]>
>Subject: [JAVA3D] readRaster and overlapping windows
>To: [EMAIL PROTECTED]
>
>We're trying to take a screen capture of a 3D scene. I'm using
>the "extend Canvas3D, override postSwap(), do a readRaster if a
>flag to capture is set" method, which seems to be the predominent
>way to do it.
>
>The problem - our application has multiple frames. When another
>frame is over top the frame containing the Canvas3d, we get the
>other frame in the screen capture.
>
>Are there any ways around this? I looked for documents on this
>problem, but didn't find anything.
>

readRaster will read back the buffer using
glReadBuffer(GL_FRONT) &  glReadPixels()
so if the current canvas3d is overlap the pixel
read back is not correct.

Under D3D, backbuffer is use to read back pixel,
however if the application that overlap Canvas3D
is also double buffer then the pixel read back
is also not correct.

You can workaround this by using offscreen rendering.

- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.

===========================================================================
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".

Reply via email to