Archive 17/01/2023.

Terrain Generation Via Vertices

evolgames

Didn’t see a thread on this, just other terrain generation techniques.
I’d like to create a terrain by feeding vertices via code. I did this in another engine with some gaussian noise maths and it worked, but that was creating a basic 3d model, not a terrain object or heightmap.
In U3d, is there any way to make the terrain object besides the heightmap?
Would it make sense to generate in code the heightmap image data from my vertex generation function?
Or, would it make more sense to create a custom geometry object from the vertices and use that object as the terrain? (Not sure if there is a performance difference between a large custom geometry model and terrain)
Terrain will be large, around 2000x2000 or so.
Which method makes sense for this?

Eugene

Nope, unless you rewrite Terrain.
I would suggest to make array of custom StaticModel-s if you want to make terrain from scratch yourself.
You will have to handle LODs on your own tho.

evolgames

Cool, good to know. I’ll give that a try, thanks.