video thumbnail 22:23
Coding Adventure: Terraforming

2021-05-29

[public] 478K views, 73.7K likes, 134 dislikes audio only

channel thumbSebastian Lague
4K

I got a bit tired of my simple heightmap-based planets and decided to experiment with generating them using the Marching Cubes algorithm instead, so that I could add a 'terraforming' ability for shaping the world with caves and tunnels and so on. I hope you enjoy!

Project files are available here:

https://github.com/SebLague/Terraforming

If you’d like to support me in creating more videos, I have a Patreon page over here: https://www.patreon.com/SebastianLague

Have a look at these videos if you're interested in learning about how the atmosphere and clouds were created:

Atmosphere: /youtube/video/DxfEbulyFcY

Clouds: /youtube/video/4QOcCGI6xOU

Chapters:

0:00 Intro

1:05 Marching Cubes Algorithm Refresher

2:32 Looking at the Code

3:42 Making a Sphere!

4:53 Floating Rocks

7:20 Chunk Woes

9:48 The Mistake

11:31 Terraforming is Easy!

12:26 A Simple Water Shader

16:28 Adding Atmosphere

17:30 Some Fluffy Clouds

18:54 Terrain Colouring, and Sticky Lights!

20:23 The Expedition

21:23 Outro

Music:

Heart Calligraphy by Cody Martin

Wonderland by Shimmer

Autumn Wind by Yehezkel Raz

Hall of the Mountain King by Kevin MacLeod (composed by Edvard Grieg)

It Will Come Back by The Stolen Orchestra

Amber by the Stolen Orchestra

Nightingale by Emorie

Into the Light by Emorie

Animated Adventure by Andy Eliison


Intro
/youtube/video/vTMEdHcKgM4?t=0
Marching Cubes Algorithm Refresher
/youtube/video/vTMEdHcKgM4?t=65
Looking at the Code
/youtube/video/vTMEdHcKgM4?t=152
Making a Sphere!
/youtube/video/vTMEdHcKgM4?t=222
Floating Rocks
/youtube/video/vTMEdHcKgM4?t=293
Chunk Woes
/youtube/video/vTMEdHcKgM4?t=440
The Mistake
/youtube/video/vTMEdHcKgM4?t=588
Terraforming is Easy!
/youtube/video/vTMEdHcKgM4?t=691
A Simple Water Shader
/youtube/video/vTMEdHcKgM4?t=746
Adding Atmosphere
/youtube/video/vTMEdHcKgM4?t=988
Some Fluffy Clouds
/youtube/video/vTMEdHcKgM4?t=1050
Terrain Colouring, and Sticky Lights!
/youtube/video/vTMEdHcKgM4?t=1134
The Expedition
/youtube/video/vTMEdHcKgM4?t=1223
Outro
/youtube/video/vTMEdHcKgM4?t=1283
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Clouds 1,119,677 views
/youtube/video/4QOcCGI6xOU
Coding Adventure: Atmosphere 944,338 views
/youtube/video/DxfEbulyFcY