At the end of the project, I would like to add UI to help user when they want to explore the solar system. The UI consists with 3 function, there are function to determine number of planets, to disable orbit line, and stop planet rotation.
Leave a CommentCategory: Computer Graphics
A category dedicated to Computer Graphics and Interaction at KTH Royal Institute of Technology. All the posts are about the progress work of my project and personal reflection for this course
Create Planet Orbit
To build solar system generator, I need to make the planet to have an orbit and rotate in this orbit. The orbit of the planet usually ellipse and the orbit need to be generated randomly. Also, the planet need to rotate in its axis, so we need a function to achieve this work. To draw the orbit we use Line…
Leave a CommentBuild Random Planet
In this case, I would like to build a random planet. Right now the system still needs user to build each of the planets. As part of procedural generation, I need to build unique planet that different with each other. As the result, I need to access all variable to build the planet and use Random.Range syntax to create random…
Leave a CommentAdd Ocean Depth Shader
In this part, I add Ocean depth shader to distinguish different depth of the ocean. To make this happen, I need to add a new parameter in colorsettings.cs script to determine the gradient color of the ocean. And in the previous code, we start to calculate the elevation from the ocean to the max elevation. Right now, we need to…
Leave a CommentAdd Biomes Effect
The biome effect will give different color on different height in the planet. Like picture below, I can put three different color to make 3 different biomes. To make this happen we need to create different color generator. In previous color generator, we only focus on gradient color, right now we put tint color to set the biome color. public float…
Leave a CommentAdd Shader to The Planet
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 Comment