So you want to make a procedural grid world in unity like this i’ll tell you how to do that or at least how i did that for my game have you heard of my game by the way or instead so anyway make a unity project create a game Object call it grid attach a script call it grid the grid will be full of cells so make another script call it cell and open it remove a cell will contain information like in my water in my land is represented by this bull is water now open the other script grid it will Contain an array called grid it will have a size let’s go with 100 and it’s full of cells water cells now what let’s make it do something let’s make cubes with this code it draws cubes blue for water green for not water let’s see if it works it works it’s all blue because Everything is water but what if it’s not water now it’s all green because it’s all not water how do we make it procedural purlin noise it’s noise but smoother open your script grid make a 2d array of floats called noise map fill it with purlin noise scaled by some factor Called scale noise map will tell us what’s water and what’s not water we’ll set the water level 0.4 anything under 0.4 is water anything over 0.4 is not water now it looks like this but it’s the same every time we want it to be different not the same so go back add a Random offset to the noise map now it’s different every time wow but it’s not island you are promised islands let’s make islands using a falloff map open grid make an array of floats called falloff map fill it with math it looks like this now subtract the falloff map From the noise map now it looks like this that’s it islands but it doesn’t look nice it doesn’t look like this you were promised this watch part two i don’t like or subscribe have you heard of my game by the way horstead Video Information
This video, titled ‘how to make a procedural grid world in under 2 minutes in unity (part 1)’, was uploaded by IndividualKex on 2021-12-08 06:28:30. It has garnered 68407 views and 2394 likes. The duration of the video is 00:01:41 or 101 seconds.
code: https://github.com/IndividualKex/ProceduralGrid discord: https://discord.gg/eEY75Nqk3C tiktok: https://www.tiktok.com/@individualkex wishlist Orrstead on steam: https://store.steampowered.com/app/693940/Orrstead/ free alpha on itch.io: https://individualkex.itch.io/orrstead