Wednesday, July 22, 2015

terrain - 2d Procedural universe generation


I want to create a flat universe, where at first the whole universe is blank.


That would be represented by a parallax scrolling nebula background image.


What I want to do is represent the planets as disc shaped objects in the universe. They can be of various sizes.


The inside of the discs will consist of a landmass, then outside that will be a body of water and after that air.


what would be the best way to go about creating those tiles procedurally as for example the air would consist of various gases and the land of various minerals and resources.


My first thought is to create texture images and then stamp out the circles out of those textures, but problem is that those textures would have to wrap horizontal and vertically. Is there a fully procedural way of doing this?



Answer




Procedural textures, particularly noise-based ones, can be made to tile. See this thread at GDNet for some discussion, as well as this journal entry. There's also this link, which sounds interesting although I can't speak for its veracity.


As for procedurally generating the world, there's this article written by the guy developing Infinity. His system is 3D but you could probably adapt the techniques easily enough.


There's a whole wiki on procedural content generation, too.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...