Textures looking blue on Mac OS 10.3

Hi,
I’m using the java.awt.image libraries to load a jpg image that I use for textures in jogl. It works fine in W2K running java VM 1.4.1,
but I get bluish textures on Mac OS X 10.3.
Any ideas?
thanks
-j

I’m not sure how you are dealing with the image data but it could be a difference in the format of the image… eg BGR vs. RGB? On Mac the default (‘compatible’) image format may be different than what you get on Windows. Or maybe it is some odd case of the Mac being Big Endian when Intel systems are Little Endian.

The point being that my best guess is that the RGB channels are getting flipped around somehow.

That sounds like a good theory, however my images are intentionally a grey scale. They look the correct grey on windows, but bluish on Mac.
So even if the channels were shuffled, it should still look grey.
However your suggestion of big endian vs little endian might be occurring. Although you would think the java.awt.image package would handle jpg images the same on both platforms.
Thanks
-j

Hmmm… maybe it is a 32-bit format and RGBA is swapped with ARGB or something similar. If ‘A’ is zero because JPGs are only 24-bit anyway… Then it could be that the Alpha channel is going to the Red channel leaving you with just Green and Blue… so you get a Cyan monochrome image from a grey scale.

Post your image loading code.

I wrote a tute on texture loading here a while back and it behaves exactly the same on all platforms.