I have an application that renders to an image offscreen and then combines
the rendered image with a photograph. Unfortunately, there are times when
the render thread dies and I get the following error:

java.lang.NullPointerException
        at javax.media.j3d.RenderBin.updateObject (RenderBin.java:544)
        at javax.media.j3d.MasterControl.updateMirrorObjects
(MasterControl.java:2633)
        at javax.media.j3d.MasterControl.runMonitor
(MasterControl.java:3321)
        at javax.media.j3d.MasterControl.doWork (MasterControl.java:2890)
        at javax.media.j3d.MasterControlThread.run
(MasterControlThread.java:28)


>From then on, I cannot render any more. I get the following
error every time I try to render the image again:

javax.media.j3d.RestrictedAccessException: Canvas3D: Off-
screening rendering is in progress
        at javax.media.j3d.Canvas3D.renderOffScreenBuffer
(Canvas3D.java:1868)
        at app.MeshRenderer.getImage(MeshRenderer.java:716)
        at app.PerspectiveGrid$ImageThread.run (PerspectiveGrid.java:805)


I figured out how to detect the error, but I can't figure out how to restart
the renderer. I get an error when I try to apply stopRenderer() or
startRenderer() to the Canvas3D.

Any suggestions?

I filed a bug report with Sun.

John Barrus

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