Rookie Java3D Question...

Promise not to laugh:)

In the Java3D API is there a way to render a scene to a particular type of image? Specifically I want to be able to render scenes and create PNG files from what’s been drawn.

Or other libraries like OpenGL?

Maybe I should master 2D first :wink:

Thanks!

Bill

You can grab the image off the canvas using a java.awt.image.PixelGrabber, then dump it to a file in JPG, PNG or GIF using javax.image.ImageIO.

That sounds pretty straightforward, thanks.

Bill