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

theory request for random forest

Postby Seven » Mon Jan 03, 2011 10:51 pm

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.
Seven
 
Posts: 596
Joined: Mon Nov 14, 2005 2:03 pm

Postby macron12388 » Mon Jan 03, 2011 11:09 pm

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.
macron12388
 
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Postby Seven » Mon Jan 03, 2011 11:13 pm

yes, exactly what i was looking for. thanks for the info.
Seven
 
Posts: 596
Joined: Mon Nov 14, 2005 2:03 pm

Postby macron12388 » Mon Jan 03, 2011 11:31 pm

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.
macron12388
 
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm


Return to Game Programming

Who is online

Users browsing this forum: No registered users and 0 guests