Re: 20000313: Saving VisAD displays as JPEGs

Hi John,

> I tried to use getImage() on a display object, but
> that causes the program to block at that point.
> That is:
> <set-up display code>
> display.getImage()
> System.out.println("Done.");
> never displays Done.

I assume you are not seeing a message like:

  visad.VisADError: cannot call getImage() from Thread: AWT-EventQueue-0

which can occur if you call getImage() from an AWT callback.

Your problem can occur if your display is not added to a
Frame on the screen - that is if you are trying to do
offscreen rendering.  Offscreen rendering is currently
not supported for Java3D, but you can do it for Java2D as
described in:

Please let us know if this does not solve your problem.

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738