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

<<attachment: print006.jpg>>

<<attachment: print006b.jpg>>

Attachment: print006c.gif
Description: GIF image

Reply via email to