PDA

View Full Version : No Specular light :(



McZ
02-13-2003, 12:42 AM
I have a huge problem http://www.opengl.org/discussion_boards/ubb/frown.gif

I'm working on a nice 3D Engine but my light class doesn't work the way I want to http://www.opengl.org/discussion_boards/ubb/frown.gif the specular light disapear when I use a spot light.. everything works.. even if I only have specular light on the spotlight it shines a bit.. but in my old Engine the I got the specular to shine bright white.. why can't I get that now? even though I use the same setup of the lights/materials and so?

I have the specular on the spotlight set to 1.0f, 1.0f, 1.0f, 1.0f and the GL_SHININESS is 128..

JustHanging
02-15-2003, 03:28 AM
Hi,

I'd say your new engine uses textures and the previous one didn't. The trouble is, typically the lighting gets modulated with you texture color, including specular. So even if you have a bright white specular, if you slam a red texture on top of it, the specular gets red too.

It can be fixed by enabling seperate specular color. I've never used it myself, but you should find it in opengl specs.

-Ilkka

McZ
02-16-2003, 11:18 PM
my new engine does not use textures yet.. I only use the glMaterial stuff.