*
* *
*
scene.org
Log in:
login for 1 year
No account? register here

Scene.org is hosted and supported by:
Scene.org is sponsored by:
* forum - #coders

*
Topic:  Procedural generation tutorial?
* Posted by aeridus Tuesday 26 September 2006 - 19:29 
I became interested in procedural generation fter hearing that Spore uses it extensively... are there any decent tutorials on the topic? So far, all I have been able to find are generic references to using noise, fractals, and nodes to generate 3d images.

I'm mainly a C++ programmer and I do know OpenGL basics at least. Right now I'm not worried about how big the program ends up being but I do want to have as much of the graphics be procedurally generated as possible with very little pre-data (ie maybe a single variable equation for each type of object).

Eventually I want to make a nifty animated 3d fractal that zooms into a world of fractaled housing, strange creatures, and the like.

* Posted by sojourner Wednesday 27 September 2006 - 23:32 
procedural generation is half art, half maths and usually requires crazy optimisation and customisation :-)

It's not a matter of finding "a tutorial" but more a matter of deciding what it is you want to generate. For a whole planet, I'd recommend this process (I've played around with it, it's slow but gives good results):

http://local.wasp.uwa.edu.au/~pbourke/modelling/planets/

for plants and trees, etc, try L-systems. They're a way of encoding fractal properties of plants, and you can write an interpreter to rebuild the plants from the rules quite easily in an afternoon.

With modifications, you could use the same ideas to create animals fairly easily. Working out how to animate them will be the trick, maybe labeling limbs as legs or arms and seeing what happens when you try to put the legs on the ground?

There's no 'quick' way to make an entire world, it's a process of discovery of the rulesets involved in every feature you add. Have fun ;-)

*