I made an implementation of the marching cubes algorithm and it seems as though my lighting is off. Here's a few images of what I mean.
This first one is an image of the marching cubes terrain with the sun angle facing the cliff slightly. There's dark spots which seem too dark? The two different pictures are just two different angles of the terrain so you can see what's going on.
![alt text][1]
This picture has the sun pointed at about a 45 degree angle downward almost directly toward the darker spots. They're still quite dark?
![alt text][2]
The last picture is the interpolated terrain. You can see there's still some weird lighting glitches. It has the sun angles more similar to that of the first picture.
![alt text][3]
I recalculated normals after setting the vertices and triangles. I am using the default diffuse material although other materials/shaders haven't done any better.
Is this how it's supposed to look or am I doing something wrong? If this is the way it's supposed to be, is there any way to make it better?
[1]: http://i.imgur.com/Lhacnfa.png
[2]: http://i.imgur.com/QV9guC1.png
[3]: http://i.imgur.com/2JbptJ6.png
↧