The situation: A large amount of triangles forming ‘terrain’.
The problem: getting it to light and look anywhere near decent!
So far, I’ve gotten faces to normalize and light ‘correctly’. It just doesn’t look anywhere near right though… the first problem I guess is that I need to learn how to normalize by vertex. If I have a vector that represents the normalized face, how can I use this to get vertex normals? How do I implement them in my code, a glNormal3f() before each vertex is drawn I suppose?
My next problem, can somebody post a chunk that initializes a light that would be decent for this kind of situation? At this point in time, everything seems very “very dark/very light”… it just doesn’t look right at all. I’ve tried changing all the settings, but without much real luck. Also, let’s assume the area i’m trying to light is up to maybe, 400x by 400z by ± 20y. Should I be using a single non directional light, centered above it all? Or should I be doing things very differently?
Thanks a lot for anybody that can try to help me out on this one.