glua / gm_voxelate

A module for voxel support in Garry's Mod
https://glua.io
Other
21 stars 3 forks source link

World generation #19

Open SwadicalRag opened 7 years ago

SwadicalRag commented 7 years ago

Perlin noise?

what do bois

how are we going to handle biomes?

SpencerSharkey commented 7 years ago

I've done lots regarding world generation... not so much when it comes to cave structures or biomes though.

For biome placement, I think the simplest approach would be generating a voronoi tessellation map, since its procedural and cheap. (it might actually be what Minecraft uses, don't know)

libnoise is a pretty useful library and can easily be experimented with.

Typically you slap layers and layers of modifiers on your base map to achieve the result you want. In respect to biomes, you can slap different modifies on different biomes. You can tweak the numbers so you don't see crazy walls between biomes, and if you use the same base map the transitions between each biome should look pretty fluent.

MDFL64 commented 7 years ago

This may also be of interest: https://github.com/Auburns/FastNoiseSIMD

SpencerSharkey commented 7 years ago

That's pretty neat. I didn't think of using worley noise for biomes but it could make sense. Might be easier to procedurally generate, too. Nice!

SwadicalRag commented 7 years ago

http://mc-server.xoft.cz/docs/Generator.html For future reference

SwadicalRag commented 7 years ago

Let's do chunk generation inside initChunk and not the voxel worlld

SwadicalRag commented 7 years ago

world constructor*