Sunday, December 11, 2022
HomeGame Developmentunity - Tips on how to make voxel terrain mesh

unity – Tips on how to make voxel terrain mesh


I have been making an attempt to make a procedurally generated “pixelated” (semi voxel) terrain (utilizing Unity), as seen in Sebastian Lague’s video on simulating ecosystems. (Picture connected)
Tiled 3D terrain, 14 seconds into his video

I’ve tried trawling by way of the supply code, however most of it’s over my head. From what I perceive, a Mesh is getting used to create this, but it surely has a number of vertices (above one another) the place the water intersects the land, which I am not capable of wrap my head round – I am unable to implement a number of vertices on the identical X, Z however totally different Y coordinates however nonetheless join them with one triangle algorithm. How does one join these vertices with triangles?

I attempted a barely totally different strategy by merely making Sebastian Lague’s procedural terrain technology (from his collection on youtube) and rounding the peak of every vertex right down to the closest integer a number of of 10, which half labored, however did not come near what I used to be on the lookout for (Picture connected of my try).
enter image description here
I’ve managed to make stepped terrain, however not the voxel-y one I used to be going for.

How would I strategy making one of these terrain? I’ve tried summoning a brand new dice GameObject at every sq. in a 2D grid, with it is respective top, however that is extraordinarily gradual for 100×100 ish grid sizes.

What can be the easiest way to strategy making this terrain?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments