theory request for random forest

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

theory request for random forest

Post by Seven »

assuming that i have a world (1000 x 1000 for argument), how would i go about populating said world with trees in such a manner that it isnt a grid and yet the trees are some normal distance from each other. Not sure i am making sense.... but basically a random forest generator that sets trees not on a grid but much more random....

i would generate these coords, then compare to the terrain height below for the 'Y' coord and them randomly scale the trees.

so far i am setting them all by hand inside the editor, which works ok but it seems that i am missing a method but dont know what to call it.
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

I am currently working on a random world generator, I won't go much into detail but it generates based on biomes,

+Cities
urban
industrial
business
suburban
rural

Look into the Poisson Disc algorithm.
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

yes, exactly what i was looking for. thanks for the info.
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

No problem :) if you have any more questions regarding randomly generated environments/props just ask, like I said I too am working on a large project that has yet to be announced which involves this stuff.
Post Reply