PDA

View Full Version : Textures are coloured by OPENGL



Jeff_Mills
10-14-2004, 03:23 AM
Hi folks!

I have a grid rendered in my scene on which I apply a texture. But when I render the grid with its texture the texture has a different color then the original wood texture. It becomes pink

RigidBody
10-14-2004, 03:25 AM
before you render the texture, set color to white:

glColor3f(1., 1., 1.);

Dol AI with 3D Bone system
10-14-2004, 03:27 AM
What your ambient, diffuse, specular light color?

Ikaruga
10-14-2004, 02:04 PM
Does the format parameter you pass to glTexImage2D match the actual format of the data you are uploading?