This part will add color to the planet. To have different color on the continent, I need to calculate the elevation of continent. The elevation will lead to the maximum and minimum value of the elevation. This script below will get value the maximum and minimum value of the elevation. for (int i = 0; i < noiseFilters.Length; i++) { if…
Leave a CommentTag: computer graphics
Add More Noise Filter
In this part, I would like to add another noise filter so this project will have multiple filters to use. The filter we use called ridge noise filter. The function of this filter to add the mountainous effect in the continent. The filter has a similar definition with the picture below. This filter takes the absolute value from the noise. Similar to above…
Leave a CommentNoise Filter to Build Continent in Planet
The continent can be build using noise filter. The noise filter will give random value to the mesh position and will affect the altitude in the sphere. This function will help to build a continent in the sphere. To generate the noise, there is a script called noise.cs Noise.cs /* This file is part of libnoise-dotnet. libnoise-dotnet is free software: you can…
Leave a CommentControl Sphere Size and Color
There are 3 main points in this part. First to control the size of the sphere, second determine the color of the sphere, and third randomly set the color and size of the planet. To control the size we need to get the position of the mesh and change the position based on the radius. The mesh position variable is…
Leave a CommentBuild Sphere From Scratch
The planet we want to build cannot use the 3D sphere provide by Unity. As the result, we need to build the sphere from scratch to control the number of vertices. To build the sphere we used 6 different mesh to build the cube. And normalize it to build the sphere. Basically, in this step, we need to make 2…
Leave a CommentProject Specification Solar System Generator
1. Background There are a lot of different planets in space and each of the planet unique and different whit each other. To build a unique planet, we need a procedural generation algorithm to generate a unique planet. procedural generation algorithm is a technique to generate automatically a complex content [1]. The example of the game that uses procedural generation…
Leave a Comment