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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
Consider Paul's rocket mass heater.
subject: screen of simple universe
jQuery in Action, 3rd edition