video thumbnail 17:19
[Unity] Procedural Planets (E06: simple biomes)

2018-10-22

[public] 83.1K views, 1.98K likes, 7.00 dislikes audio only

In this episode we add simple colour biomes to the planet.

Get the project files for this episode:

http://github.com/SebLague/Procedural-Planets

Note:

Two issues have been pointed out which I'd like to address: (will add these fixes at end of next video)

1) changing resolution causes uv out of bounds error. This can be fixed by checking mesh.uv.Length == uv.Length before assigning the uvs in ConstructMesh method.

2) biome colours appearing in wrong places when zoomed out (on certain devices). To fix this, mipmaps need to be disabled on the planet texture. In the ColourGenerator, replace with:

texture = new Texture2D(textureResolution, settings.biomeColourSettings.biomes.Length, TextureFormat.RGBA32, false);

Support the creation of more tutorials and get early access to new videos: https://www.patreon.com/SebastianLague


create simple biomes by dividing the planet into different colored regions
/youtube/video/Nxr0z6zKhOI?t=1.1799999
tint the biome with a solid color
/youtube/video/Nxr0z6zKhOI?t=53.41
loop through all of the biomes
/youtube/video/Nxr0z6zKhOI?t=155.92
loop through the biomes
/youtube/video/Nxr0z6zKhOI?t=301.62
find all of the points on the unit sphere
/youtube/video/Nxr0z6zKhOI?t=408.64001
loop through all of the terrain faces
/youtube/video/Nxr0z6zKhOI?t=514.06
create a eye noise filter
/youtube/video/Nxr0z6zKhOI?t=700.75897
create a float blend range
/youtube/video/Nxr0z6zKhOI?t=886.66998
create some gradients for the biomes
/youtube/video/Nxr0z6zKhOI?t=1017.649
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 these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague
Introduction to Game Development (Unity and C#) by Sebastian Lague
/youtube/video/_cCGBMmMOFw
Procedural Terrain Generation by Sebastian Lague
/youtube/video/wbpMiKiSKm8