Ok, I get it. I think the culprit is here:Originally posted by beachboy1976:
The code is compiled fine. The only thing I can see on the screen is a plain with all messy points.
The really picture should like Terrain. Based on the different depth, you can see the land, the ocean, etc.
Thank you for your quick response.
As it is, the first time through your loop you get i = 0, j = 1, k = 2, n = 3, but the second time you get i = 1, j = 2, k = 3, n = 4, when that's probably not what quite what you were after... at the very least that i++ should be i += 2 so that you're getting at least two new points every time. Though at that poing you might just want to use a quad strip.Code :for (int i = 0; i < 300; i++) { int j = i + 1; int k = i + 2; int n = i + 3; ... }
Of course, all of this is tied rather closely to how your data is organized.



