No textures... but only red

I thought it was my ATI card (because it’s new and has trouble with old gl4java demos)

but I cant display any textures on any of the nehe demos. They all come out red.

I have tried with webstart (to make sure it’s not the jars).

I have tried redownloading all the jar files

I have even tried redownloading all the opengl files from microsoft.

I’m running win98, jdk1.4.2_01-b06, both an ati radeon 9700 and a geforce2mx (both show simptoms).

I can’t think of anything else to say.

Thanks if anyone has any suggestions :slight_smile:

I’m not sure this is the same issue but:

This has been reported a few times (mostly in relation to 2D stuff). It seems to be to do with the DefaultGLCapabilitiesChooser(). The chooser picks the closest match to the default capabilities but on some machines it picks an awful mode that doesn’t work (varies from support AlphaBits to support for AlphaAccum).

I wrote a little test for this a while ago (I’m afraid it seems to be lost now, was called JoglModeTest if anyone has an old version), that displayed all the possible modes and allow you to try out each mode in Jogl. There appeared to be always (at least) one mode that worked ok just that the default chooser wasn’t picking it.

You might want to try playing around with the demo code and specifing different setting from the default GlCapabilities.

EDIT: Having re-read your post, maybe its not the same issue, GF2MX seems to be fine in most cases (unless its onboard).

Kev

Are you sure you’ve got your card’s driver installed? I got red textures until I installed the nvidia driver on one of my computers. The red texture syndrome normally occurs on lower end/onboard cards.

I have the same problem, everything I draw is red.

I am using IBM ThinkPad x23 with ATI RADEON.

I am just wondering if this problem is because of
ATI or else?

If I can only use this notebook, is there anyway I can
solve this problem?

Will installing nvidia driver on ATI help?

Really appreciate any help.

a-ha!

I fixed this problem.

I was using lesson03 sample code from NeHe
and couldn’t display any other color but red.

Then, I looked for help from a nice sample code
provided by gregorypierce. Then, I realized that
the problem is that I need to set something
for the GLCapabilities object.

something like this,

GLCapabilities glCaps = new GLCapabilities();
glCaps.setRedBits(8);
glCaps.setBlueBits(8);
glCaps.setGreenBits(8);
glCaps.setAlphaBits(8);

GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas( glCaps );

Then, the color shows up correctly.