This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
jQuery in Action, 3rd edition