Generating Terrain Data

I decided to go with an icosahedronĀ for the base shape of my planets. With a simple library of functions to procedurally generate the shape and different sizes and levels of tessellation. Here are some images of some shapes i can generate with the function.

Though now I need to get some work done on generating the terrain height data. For the time being I am sticking with a base Perlin noise implementation and simply modifying the data generated to get different effects. Though ran into a little issue as I am using a cube texture to map my terrain data onto my planets. So I needed to use 3D perlin noise instead of 2D so that the edges of the cube texture match up more easily, as they could factor there neighbours in 3 dimensions maintaining a nice smooth effect.

Below are some examples of modifications made to the original Perlin noise data to get different effects. Except the first, which is just a normal Perlin noise image.

Advertisements

Spherical Terrain Dev Plan

Got pretty hyped for no mans sky and decided to see what i can do in terms of creating spherical terrain. Been reading up on methods used for Kerbal space program and there use of geomipmapping with 6 terrain planes to create there planet. But instead I am going to take a different approach and use a tessellation shader, with cube-map height data, using GLFW (an OpenGL library) with C++.

I am primarily going to keep this simple andĀ focus primarily on rendering and generation of these planets. With not much of a worry on collision detection or anything else. I want my goal to be able to manage the detail on these planets dynamically and aim to get multiple planets within the same scene.