Hi,

while trying to capture images (JPEG form) in an offscreen
canvas in order to create a movie, I get the following error:

  javax.media.j3d.RestrictedAccessException:
  Canvas3D: Off-screening rendering is in progress
  at javax.media.j3d.Canvas3D.renderOffScreenBuffer(Canvas3D.java:1538)
  at DAFES.SimulationThread.run(SimulationThread.java:95)

This happens when I select to render every certain number
of frames (selected by the user) the corresponding image
offscreen and save it in a JPEG file, in order to put those
JPEG files together and make a movie from my simulations.
Besides the offscreen canvas I render also in other canvases
on the screen. Then, it gives me the error in the very first
few attempts to render offscreen. If I stop the rendering to
other canvases, it takes a while before giving me the error,
but eventually after saving a few JPEGs crashes.

I can also capture single snapshots of the simulation clicking
on a button without any problem. However, clicking repeatedly
the button very fast it gives me the same error as above.

Any ideas of what may be the problem are extremely welcome
and helpful since, after checking in great detail my code,
I cannot find the reason of this problem.

Is there something special that I should do when rendering
repeatedly offscreen so as to avoid this problem?

Thank you very much in advance.
Petros Komodromos


===========================================================
Petros Komodromos                             Home address:
Office: 1-245                 540 Memorial Drive, Apt#1407
Tel.: (617) 258-9468                  Cambridge, MA 02139
[EMAIL PROTECTED]              Tel.: (617) 577 -9869 / -5830
http://www.mit.edu/people/petros
Intelligent Engineering Systems Laboratory (IESL)
Massachusetts Institute of Technology
===========================================================

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