File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes screen of simple universe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "screen of simple universe" Watch "screen of simple universe" New topic

screen of simple universe

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

I want to save an image of 3d scene to .png file. Is there a wayto do it programatically? PrintScreen is not a solution .

eve agostini
Ranch Hand

Joined: Nov 01, 2005
Posts: 43
You can create an offscreen Canvas3D and use the renderOffScreenBuffer() method:

August Lammersdorf

Joined: Dec 15, 2010
Posts: 8
Hi, also check out following Java 3D example programs

- org.jdesktop.j3d.examples.offscreen_canvas3d.OffScreenTest
- org.jdesktop.j3d.examples.print_canvas3d.PrintCanvas3D :

August, InteractiveMesh
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

Thanks, that works just fine
I agree. Here's the link:
subject: screen of simple universe
It's not a secret anymore!