post name kind of says it all, but I fixed what was wrong with the terrain. Here’s some basic pseudo code for terrain
for z
begin triangle_strip
for x
create 2 heights
vertex(x, height1, z)
vertex(x, height2, z+1) <== I was an idiot and didn’t have the +1 here
end x for loop
end triangle strip
end z for loop

Screenshot of fixed Terrain
Terrain 4

One Response to “fixed terrain”

  1. andrewfed says:

    Pretty! I hate it when stuff like that happens — were you tired while coding? That’s when I get the worst.

Leave a Reply

Spam prevention powered by Akismet

FireStats icon Powered by FireStats