I'm trying to get a function written that will create a segmented terrain from a heightmap. Maybe there are a few out there that can help and would need something like this. I think a lot of people would benefit from it.
The idea is to build a terrain from a height map and then break it up into a specified number of segments. For example, you load a 128x128 heightmap and specify segments=4. The function would load the heightmap and build a 4x4 terrain with each segment being a separate object and be 32x32. The terrain segments would not be rendered when behind the camera so it would be an easy way to save rendering time. The terrains would also be automatically positioned together and then centered and parented to a pivot at 0,0,0.
I'll start this off. I have some working code but I don't want to influence this with it because you guys may come up with a more highly efficent method.
The idea is to build a terrain from a height map and then break it up into a specified number of segments. For example, you load a 128x128 heightmap and specify segments=4. The function would load the heightmap and build a 4x4 terrain with each segment being a separate object and be 32x32. The terrain segments would not be rendered when behind the camera so it would be an easy way to save rendering time. The terrains would also be automatically positioned together and then centered and parented to a pivot at 0,0,0.
I'll start this off. I have some working code but I don't want to influence this with it because you guys may come up with a more highly efficent method.
Function LoadSegTerrain(hmap$,tmap$,lmap$,segments=4) End Function