View Full Version : How to light up textures if I use GLUT functions

01-11-2006, 07:00 AM

All my objects are made with glutSolid...(). If I don't put textures on them, the lights that I have enabled are visible, but if a texture is loaded nothing happens.

I read about glTexCoord2f(), but I don't know how to mix this function with glut's ones.

Pls help me! :)

01-11-2006, 07:04 AM
What texture parameter do you use ? Try to use GL_MODULATE.
If I'm not wrong, all glutSolid* have normals, but they might not have texture coordinates. In this case you'll have to make your own models yourself.