PDA

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



andreeaf
01-11-2006, 08:00 AM
Hi!

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! :)

jide
01-11-2006, 08: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.