Terrain Normals

Blitz3D Forums/Blitz3D Programming/Terrain Normals

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I have the following points on a terrain, each with a height:

A B C
D E F
G H I

I want the normal for the center point E. All I have are the following values.

The height of each point:
Ay#, By#, Cy#, Dy#, Ey#, Fy#, Gy#, Hy#, Iy#

And the distance between points:
pointspacing#

The terrain is 1 unit high x 1 unit wide x 1 unit deep.

My normals are coming out okay right now, but they look blocky, not smooth.