emmisive lighting

Can anybody help me by giving me example code or a web link for emmisive lighting (tailgates, glow in the dark watches. i have the open gl super bible which mentions it and says it will coverr it more later, and yet doesnt seem to cover it any more later.
any help


when you draw your emmitting object, use something like thew following to set up the emission material property

GLfloat emission[] = { 0.5 , 0.5 , 0.5 , 0.5 };

glMaterialfv( GL_FRONT_AND_BACK , GL_EMISSION , emission );
// draw object

cheers for that.
do i have to change the light position to the centre of the object emmiting the light??


I don’t think emmissive materials are dependant on light sources. Also, they do not actually “emmit” light, so other materials around them do not appear lit unless you place an actual light there. So to answer your question, if you have a taillight on a car with an emmissive material, you don’t have to position a light there to get the taillight to look like it’s emmitting light. If you want the taillight to light other surfaces, though, you do have to position a light there.