Infinite Cave Terrain

Hey all!

I’ve been a bit inspired recently by the “Minecraft: Caves and Cliffs” snapshots coming out and figured I’d mess around a bit with cave generation using Roblox’s Terrain. I created this demo which will load in terrain “chunks” around your character as you walk around the map. The caves are generated using some fancy noise math. The chunks will continue to generate however far you walk! (or however far Roblox currently has the limit set to for Terrain to render).

Right now, I have the “biome” of the world set to “SimpleNoiseCaves”, however the code I wrote that is generating the terrain also supports other biomes (although at the moment only a single biome per game). Also, there is a random seed set at the start of each game session (per server, not per client) so every time you join a different server the world will look slightly different.

Here’s a few screenshots the generation:

Above ground

Below ground

Using another Biome I was testing with, "SimpleNoiseHills"!

Let me know if you have any comments, questions, or ideas for different biomes I should try and work on!

8 Likes

Ice caves in a tundra? sink holes in a desert? how about water filled caves? either way they look amazing, keep up the good work