Light not working

Started by
2 comments, last by thedirt 17 years, 8 months ago
Hi. I am new to OGL and started developing my engine(aiming for n64 level graphics) a few days ago. It is known as dirt and being developed by team dirt. Now, I am working on implementing some basic lighting. The problem is, whether lighting is enabled or not, placed next to it or far away, etc, etc, etc, the geometry looks the exact same as with no lighting code. I am basically asking what are some things I should check for in my code that could be causing the light to not change anything. I am using GLUT too, but that shouldn't affect my lighting code. Thanks for your help, dirt
Advertisement
Things to look for:-
Do you have vertex/face normals?
Is the light facing the right direction?
Is the falloff/intensity correct?
Have you tried changing the colours of the light?
That's weird, because the first thing to happen if your lighting is wrong is a black screen.
deathkrushPS3/Xbox360 Graphics Programmer, Mass Media.Completed Projects: Stuntman Ignition (PS3), Saints Row 2 (PS3), Darksiders(PS3, 360)
Thanks for your help. The problem was that I was using GL_REPLACE for texture environment mode instead of GL_MODULATIVE.

This topic is closed to new replies.

Advertisement