Hi Everyone, I'm setting the lights in my scene. I'm using the regular lights instead of the spotlight. Initially, I put the light in origin. My object is at:
object:translate(-0.75, 0.25, -10.0)
object:rotate('y', -20.0)
Here's how I set up the light.
http://snipt.net/stevenie/opengl-light?key=ca4e7fd2b02f21ee464d51dace01f079
If the light is positioned at the origin, I can see the lighting effect at the object very well. However, if I move x or y or z axis a bit, the lighting effect disappear immediately. However, if I use spot light, the problem disappears. Based of my understand, the regular light should light up the entire scene(like the sun) isn't it? Thanks!
Steven
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement