BarthPaleologue / CosmosJourneyer

A space exploration game with a fully simulated universe running in the browser
https://cosmosjourneyer.com/
GNU Affero General Public License v3.0
11 stars 4 forks source link

Improve terrain generation #130

Open BarthPaleologue opened 4 months ago

BarthPaleologue commented 4 months ago

With WebGPU compute shaders, all terrain generation code will be rewritten, which is the perfect occasion to improve its quality.

Here are some ideas that could be used:

BarthPaleologue commented 2 months ago

The analytic normal will be abandonned in favor of erosion by gradient division.

This will also make it easier with craters (3d worley)

Domain warping can bé used for biome blending.

BarthPaleologue commented 1 month ago

This one is crazy good for lod transitions https://youtu.be/N3mKIasLeTY

BarthPaleologue commented 1 month ago

Another erosion noise but in 3D with derivatives! https://www.shadertoy.com/view/ddGcz1

BarthPaleologue commented 1 month ago

Example of crater noise: https://www.shadertoy.com/view/llSGRw

And possibly some inexpensive variant https://www.shadertoy.com/view/4tK3zR