I’d love to see something like procedural path/road placement and having houses/buildings lined on those roads.
Could become a pretty powerful tool for like Apocalypse Rising-type games with infinite world exploration.
Biomes and biome-specific model placement would also be an very welcoming feature.
I was experimenting with that… I was making it so certain objects can only spawn on water, and on land.
I scrapped it for, now, But im thinking of adding biomes, and biome only things. If you’d like to test the script out, i’d love to give it for testing
Reminds me, I’ve written my own terrain generator before.
One that uses triangle terrain (wedge parts) and one that uses Roblox voxel terrain.
For placing buildings and such I would flatten parts of the terrain so roads and houses could be placed.
First normal terrain is generated that completely disregards building placement.
A second pass/function places roads and connects them all together.
Now since the roads might be placed inside mountains and what not, a third pass loops through all of them and flattens the terrain within a proximity.
For voxel terrain this can be hard to do but it’s relatively easy to do for triangle or part-based terrain like yours.
Edit: If I’m correct this is called “multi-pass terrain generation”.
Rather than doing everything all at once, it happens in multiple loops/iterations.
First terrain, stuff like erosion/rivers are added in a second pass/iteration.
In a third/fourth iteration structures can be added.
And in the last/final iteration the terrain is shaped post-generation so it blends together.
This type of generation can be a bit slow but can be sped up using a chunk system and using something like parallel Luau you can probably multi-thread it.
I’m thinking of turning it into a module as well as a visual plugin. the reason is if you want set places with stuff you cant do it as the map only shows in - game. That way i could turn it kinda into the terrain editor.
Hello Again. Huge update today. I’ve turned it into a visual plugin. You can either use the module, or use the visual plugin. Whats good about the visual plugin is that it generates the map when studio isn’t in Run Mode. This way you can edit the map
This is very interesting. I’ve been thinking a lot about terrain generation recently. Unfortunately, I’m not at that level of programming knowledge yet (I saw how to make perlin noise, but I’d rather learn a little more programming, and then after this interesting stuff), But there’s still time until I get there! Anyways, as soon as this comes out, I’ll be playing around with this a bit. Also, will this be a plugin or just a script that we put into the game?
I wonder, since your terrain generator is still rather blocky which might make walking or driving a car on it a bit hard.
Would it be an idea to use wedges and corner wedges to connect lower pieces of ground to higher pieces?
I’m curious what it would look like with wedges!
I’ll think about it. The reason i’m hesitating is because of the way my smoothing algorithm works.
Basically, it adds the height of the 8 squares around it (excluding the edges) and divides them by 9, creating the smoothness formula. you then cut of the edges. No idea if that would work with wedges, but ill try