by usedtolurk · 15y ago · 0 comments
5 years on, but I'd guess it's still relevant to mobile devices. Anyone know if there are better accepted approaches now?
Alternatively, you can try a voxel-based approach and then use an algorithm like Marching-cubes to reconstruct a smooth mesh over the top of it.
Or, you could change the heightmap data to also include X/Z displacement as well as Y displacement. This would allow some shallow caves and small overhangs, but nothing too crazy.
There will be plenty of other methods you could use too, these are just a starting point.
-Outdoors, where there are no concavities in the landscape and elevation models are used.
-And indoors, where you use a different type of modeling, last time I checked binary space trees were pretty common.
Using polygons to solve this is highly nontrivial - despite the naive suggestions made already.