PDA

View Full Version : light for translucent objects



kazmalak
04-14-2005, 04:13 AM
Hi
I have five objects in my project, that are controlled with mouse inputs.The two of these objects will always stay transluted and the others will always be opaque. For transluted objects, lighting creates problems. There are surfaces that are obstructed to take light because of opaque objects around them. Therefore when I made those objects transluted everything goes well except that some surfaces of these transluted objects become black since they dont take any light.
Is there a way to disable lighting for those transluted objects?

kazmalak
04-14-2005, 04:15 AM
Sorry for my bad english, transluted will be translucent.

Aeluned
04-14-2005, 10:12 AM
yeah, there's a way.
call glDisable(GL_LIGHTING) before you render
them.

transluted...that's kinda funny :p