- Home /
Random level/environemnt generation
Hello folks. For a few days Already Im exploring possibilities of random level generation but all that I find is about procedural generation. I dont think what I look for is procedural generation but rather random placement and building the world.
Say I have those two assets
https://assetstore.unity.com/packages/3d/environments/fantasy/polygon-adventure-pack-80585
https://assetstore.unity.com/packages/3d/vegetation/trees/polygon-nature-pack-120152
Which introduce kind of modular prefabs to build the environemnt.
What would be the best approach to make use of those assets with random generation of small worlds like instances. Are there approporiate algorithms that I could approach for this or rather build up specific randomized placement Script for the prefabs?? What are the possibilities?
Well I was experimenting with perlin noise and I was able to create a randomly generated chunk of a voxel terrain. Or you could just make a randomly generated terrain. I have some form of code for randomly generating terrain with editable height and length, however if you want to try it for yourself, Brackeys has some great tutorials on randomly generating levels and terrain in Unity. Random placement of objects could include spawning prefabs at certain threshold levels of the perlin noise, for example, wherever the perlin noise is between 0.5 or 0.6, spawn a tree at that position.
Your answer
![](https://koobas.hobune.stream/wayback/20220613005757im_/https://answers.unity.com/themes/thub/images/avi.jpg)