Uwe Trostheide <[EMAIL PROTECTED]> wrote: > is it possible to get an Image (e.g .jpg or .gif) > out of a java3d program? > > For example : a user gives all necessary data > (objects to be > displayed, position etc) to an application and get > back a picture how it would look like... There is an entry in the Java 3D FAQ discussing how to capture still images from Java 3D: http://tintoy.ncsa.uiuc.edu/~srp/java3d/howto.html#capture Once you have the BufferedImage containing the bits as outlined above, you can then save them to disk as a JPEG using Java 2D. I describe how to do this in my "Media Programming FAQ". You can find the applicable FAQ item by searching for "snapshot" in the FAQ, which is at: http://www.billday.com/Work/mediafaq.txt (start with the creation of a Graphics2D ref by calling the BufferedImage's createGraphics() method) Hope this helps, -b- ===== ------Bill Day http://www.billday.com/ [EMAIL PROTECTED] Technology Evangelist Sun Microsystems __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
