Bob, I suspect JPEG was not really designed with computer generated images in mind. Especially the types of gradients you see on your spheres. The color ranges compared to photographic images would be very different. Did you try changing the quality settings when you saved the JPEG? I know that the JPEG group spent a long time studying how much compression they could get away with while preserving the appearance of an image. In your case it appears that the gradients don't mesh well with the algorithm.
It should be relatively easy to change your image saving code to write out a PNG or BMP or even GIF if that is working better for you. As I said, you could also try changing the quality bias for the JPEG save. Sincerely, Daniel Selman Author - "Java 3D Programming" http://www.manning.com/selman -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of RWGRAY Sent: Friday, April 05, 2002 10:17 PM To: [EMAIL PROTECTED] Subject: Screen Capture Problem? I've been using some code off the internet for capturing Java3D canvas into a jpg file for a long time and have not had a problem with it. Works fine. But recently I captured an image and was surprised that the colors of the captured image was *way* off compared to what I was seeing displayed in the Java3D window. So I played around a little and found what looks like a jpg problem. I am wondering if anyone can tell me what's going on and how to fix it.... First attached jpg file (print006.jpg) is what Java3D code created. The colors are much darker than what is actually displayed in the Java3d canvas window. Second file is the result of a screen snapshot. I hit the PrtSc button on my PC and then imported the captured screen shot into PaintShop Pro. Looked ok in PaintShop Pro so I saved it as a jpg file (print006b.jpg). The print006b.jpg is again much darker than what I am seeing in the PaintShop Pro window and Java3D window. Third file print006c.gif is the result of saving from PaintShop Pro into gif file format. A much more limited color depth format. Yet it is a truer image to what is displayed in the Java3D window. Obvious that the gif image has the brighter colors I see and thought I would get in the jpg files. Any thoughts on what's going on? Why is the gif file much better, in this case, than the jpg image(s)? Is there something I can do in Java3d to capture the colors of the displayed image so they are bright(er) as in the gif image example (and closer to what I am actually seeing in the Java3D window)? I am using windows 2000... Cheers, Bob Gray =========================================================================== 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".