PDA

View Full Version : glowing object



12-09-2001, 04:47 PM
Hi I am trying to make an object glow. I assume I have to put a light in it to acheive this but cannot find any easy tutorials on lighting.
How do I define the light, put it in the object and define the object material parameters to make it glow?
How should I set the parameters for other objects in the scene so they are lit by this?
Thanks a lot.

Dong Ke
12-09-2001, 07:12 PM
To glow your object your need to use glMaterialfv(gl_emission, glow_color); to let other objects lit by this, you need to put a light inside the object (A glowing object doesn not light others).
Hope this helps.