- Home /
The most efficient method of turning a voronoi graph into unity terrain object?
So I have created a decent voronoi graph in unity to get the shape of my island. I iterated through every cell and made a random island shape in the middle. My question is: How can I turn the island shape i got from the voronoi graph and make it into a terrain in unity? I know about terrainData etc, but i just can't figure out how to get the shape of the island and only generate heights on that part on my terrain. Any kind of help that guides me to the right direction would be nice.
Thanks
A screenshot of your voronoi graph with the 'random island shape' in the middle might help
https://gyazo.com/38021d125cd8d32b49eb7d75c4fcbb3b
Screenshot above with the voronoi regions drawn, and the island. Colors are something i just added for fun.
You could turn your graph into greyscale colors and use it as heightmap but I expect you'll be disappointed with the results as it will be very "blocky".
Your answer
Follow this Question
Related Questions
Mesh based on noise 1 Answer
How do I go about texturing a flat-shaded generated mesh? 1 Answer
No Procedural Terrain without lags? 2 Answers
Terrain detail meshes/trees via script? 2 Answers
Simple LOD not working correctly. 0 Answers