Did you construct the Canvas3D with the second parameter set to true to
indicate that the canvas should be in offscreen mode?

Kev

Michael Pfeiffer wrote:

Hi,

I use a custom universe with two Views - one is for a Canvas3D which is
visible and a second one is for a Canvas3D I'd like to use for off-screen
rendering. As far as I know, it is enough not to attach a Canvas3D to a
GUI-element like a JPane to let it work in off-scren mode.

But that doesn't works. It doesn't matters if the second or both Canvas3D
aren't attached to something and therefore are invisible, every time I
call setOffscreenBuffer() I get the following exception:

java.lang.IllegalStateException: Canvas3D: Not in off-screen mode
       at javax.media.j3d.Canvas3D.setOffScreenBuffer(Canvas3D.java:1419)

Did I forget something to use the off-screen mode?

kind regards

Michael


-- http://java3d.virtualworlds.de http://www.3dchat.org - Welcome to the unreal world!

===========================================================================

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

Reply via email to