Archived

This topic is now archived and is closed to further replies.

ndr

Terrain lighting

Recommended Posts

Hi, I'm creating some terrain with precalculated lighting. As you can see in the image below it's not quite working right and was hoping someone could offer me some insight. The terrain is rendered using triangle strips and to get the normal of a vertex I take the average of the face normals of the 6 triangles (if its not on the edge of the terrain) that share it as a vertex. However it looks as though something is wrong with my method. Any help much appreciated. http://members.optushome.com.au/~dlcoates/terrain.jpg Edit: forgot to post the screenshot [edited by - ndr on May 17, 2004 11:25:44 PM]

Share this post


Link to post
Share on other sites