All my graphics are red

All my graphics appear red. The background is black, but the lines and meshes and text are all coming out red. What’s the problem and how do I fix this?

I just recently upgraded to windows vista. Things were working on Windows XP. I’m using an nVidia GeForce4 Ti 4600. Device manager says the driver is up to date.

if the very same code was working before vista this is really strange…

what i can guess is that the default color is set to red and the texture-env mode is set to GL_MODULATE.
try setting these things:

gl.glColor3f(1,1,1);
gl.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);

It is the same code, and the solution suggested above didn’t work.

I have managed to identify the problem. Using the version of JOGL from Release Builds 2003, or Release Builds 2004 -> 1.0 - April 12, results in all colours being red. This is everything including my project and the gears demo. Using the version of JOGL from Release Builds 2004 - 1.1b01 - April 21 and Later results in proper colours for everything, however my project doesn’t work properly (I just get a grey screen).

I suppose I will have to adapt my project so that it works with the later version. Why am I using such an old verison of JOGL you ask? Well because it’s a group project and I didn’t set it up.

Please upgrade your code to use the JSR-231 APIs and the latest JOGL release build. The code has been almost completely rewritten since the build you’re using and a lot of bugs in the implementation has been fixed. This should mostly amount to changing the package names you import (javax.media.opengl.* instead of net.java.games.opengl.*) and a couple of lines of code.