Howdy… I’m wrasseling with one greased piggy of an OpenGL problem here…
Okay, maybe not, but I’ve been fighting with this since I started playing with the API many moons ago, so HELP ME!!! Hehe, sorry bout that.
Anyways, I have not been able to get lighting to work properly for myself, ever. Whats the secret?
So my problem is that - anything - but for this case, say just a simple cube… I can define a stationary lightsource, but as I rotate the object, only certain faces get lit. Say the lightsource is directly in front of the object, pointing along the z-axis… I only get specular flashes on maybe 3 faces as the cube rotates. I’ve defined normals, but they don’t really help any (unless I’m doing it wrong). Oh yeah, the same thing happens with ambient and diffuse lightsources as well. As the object rotates, the lighting seems to get “de-applied” to the face.
Oh, while you’re at it, tell me why I can’t get textures to work either…