Am I correct in thinking that I will need one polygon for every pixel in the width of my terrain?
Each polygon would then be 1 pixel wide, by whatever the terrain height is at that point. Then, I would texture that polygon using UV coordinates according to where I'm at in the landscape?
At first I thought I would just have one single polygon and the texture would "sit on top of it", but either I'm doing something wrong or this simply isn't the case.
Also, I think that maybe IndiePath's texture polygon code is broken or I don't know how to use it. However, Yan's code seems to work.
(Hopefully I can get IndiePath's Render-To-Texture code to work because then I could simply render my constructed landscape to an image and save it for future processing...)
Each polygon would then be 1 pixel wide, by whatever the terrain height is at that point. Then, I would texture that polygon using UV coordinates according to where I'm at in the landscape?
At first I thought I would just have one single polygon and the texture would "sit on top of it", but either I'm doing something wrong or this simply isn't the case.
Also, I think that maybe IndiePath's texture polygon code is broken or I don't know how to use it. However, Yan's code seems to work.
(Hopefully I can get IndiePath's Render-To-Texture code to work because then I could simply render my constructed landscape to an image and save it for future processing...)