DGL
https://delphigl.com/forum/

glMaterial, textures and lighting
https://delphigl.com/forum/viewtopic.php?f=19&t=4371
Seite 1 von 1

Autor:  BTierens [ Sa Jul 23, 2005 19:11 ]
Betreff des Beitrags:  glMaterial, textures and lighting

Hello,

When I try to use glMaterial in combination with textures and lighting, I don't see anyting of the lighting. Using glMaterial with a glColor and lighting works fine. What should I do? Is it possible to use glMaterial in combination with textures and lighting?

Autor:  Flash [ So Jul 24, 2005 23:52 ]
Betreff des Beitrags: 

It should be posible. I can't understand why it doesn't work. In the ManPages i found this:

Zitat:
Call glColorMaterial before enabling GL_COLOR_MATERIAL.


May this is critical for your driver...? :roll:

Autor:  BTierens [ Mo Jul 25, 2005 09:16 ]
Betreff des Beitrags: 

I have found the problem. I should not use glColor as mtl (i'm working on a mtl implementation) files doesn't support a command for setting the color. I should use the diffuse (Kd command) to set the color.

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/