Jump to content
  • Advertisement
  • entries
  • comments
  • views

Procedural planet textures

Sign in to follow this  


Not enough time, so much to do...

These last few days i've been working on generating procedural heightmaps, materials and textures for my planet renderer. All the parameters are currently hard coded and the code is very messy, but i'm starting to get interesting results:

This is the "material table". Each color encodes a different type of material (blue=water, yellow=sand, green=grass, gray=rock, white=snow, etc..). I've added some basic lighting using the input heightmap to make it easier to see the relief. This is *not* the texture that will be mapped onto the planet geometry: that one will come later and should hopefull have much more details and color variation!

The algorithm currently generates a cube map (with seamless colors between the cube faces), and handles deserts at the equator (center of first image) and ice at the poles (second image). This is for an Earth-like planet, but later planets with very different looks can be created.

Must. Sleep. Now.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!