Wednesday, April 23, 2008

Planet Texture Generation Routines


I`ve not posted much recently, but that doesn`t mean that Ive not been thinking and planning new ideas for SpaceUnlimited!

I have great plans for planet texture generation routines, which I am very eager to test out.

I will try to explain...
Basically you have say 10 continent maps (grey scale) X 2sets + 10 Craters/Valley Maps (0-255 grey scale) + 10 surface detail maps (again grey scale)

Final texture for a planet = 2 Random Continent Maps merged with 2 Other Continent Maps + 2 Crater/Valley Maps + 2 surface Details Maps.

using 2 of 10 maps merged = 10+9+8+7+6+5+4+3+2+1 = 55 different basic shapes per map set.
ie Final planet texture possibilities = 55 * 55 * 55 * 55 = 9,150,625

ie Over 9 Million possible planets!!!!!!!! Then use a similar routine for the Colour Maps (by using colour gradient charts instead) ie 20 colour maps = 55 * 55 = 3025 colour charts...

9,150,625 * 3025 = 27,680,640,625 or 27.6 Billion different planets. Generated from 40 greyscale Maps and 20 Colour gradients!

Plus I might add some sort of Fractal generation at some point too.

But basically 27.6 BILLION planets should be just about enough! hehe :-)

I hope I explained it well enough?

Anway to give you an idea here is a Work in progress picture to demostrate the princicple...

If you would like to comment then please head over to out Forums at www.SpaceUnlimitedGame.com and have your say in the development process!

No comments: