Original Post
I''m having some issues trying to draw a heightmap tarrain. I have a 100 by 100 array of random positive values (I know it is small but it is just a test). When I draw it the triangles tear and flicker and I believe it may be a problem with the way I am drawing the triangles in openGL. Is all that I have to do:
Loop through the array one row at a time and at each vertex create two triangles, one with the current vertex (j,i), the next one over (j+1,i) and one down from the original (j,i+1) and another triangle with (j+1,i), (j+1,i+1), and (j, i+1)? It seems that this should connect all of the vertices and not leave any gaps or holes, but I may be wrong. If you have done this sort of thing before could you tell me how to draw the triangles? All posts I have found have to deal with how to create the heightmap. The one Neon Helium tutorial uses quads, which I don''t see how you can use if 4 points may not all be on the same plane. Someone clue me in please!
Thanks for your help!
Brian Hlubocky
hlubocky@uiuc.edu