Euri Gilberto Herasme Cuevas

Planetary System Generator

Hello! this is a planetary system generator using raymarching. This started as my submission for @HarryAlisavakis "technically speaking" challenge in which the theme was "make the default sphere hella sick". The best way I know to make anything look "hella sick" is by using raymarching. I did my entry using Unity, and I ported it to the web because of a fantastic suggestion by Sami , he said it as a joke, but the more I thought about the idea, the more amazing it became, one thing let to the other and here we are.

After I did the first version, I was thinking about what to add, and after watching a video about Outer Wilds, I got my answer, making an entire planetary system generator. Everything is generated in the fragment shader of the sphere objects that represent them (there is a sphere for each planet, star, and background). For the planet, the terrain and the clouds are done inside the same fragment shader; they are occluded by calculating the depth of each one and setting the fragment result color accordingly.

Special thanks to IƱigo Quilez and Sebastian Lague for their awesome articles and videos on Raymarching.

Prev

Next

Tech Used

Unity

HLSL

URP

ThreeJS

SvelteJS

GLSL

Available Here!

Planetary System generator

Final Version of the project

Planet generator

Port of unity's material + inspector UI

You can test this version HERE .

Unity - Planet generator

Unity's version of the planet generator