1
$\begingroup$

I'm making a game which involves the player walking around a forest, and so I need to randomly distribute trees from the sapling tree generator all over it. The plane is huge so I can't simply place them manually. It would also be ideal to change the seed of the tree for each tree created. I'm familiar with python so a script would be acceptable. Thanks!

$\endgroup$
6
  • $\begingroup$ Particles are what you're looking for, I think $\endgroup$ Jun 28 '15 at 20:54
  • $\begingroup$ @GiantCowFilms how would I use this to do it? $\endgroup$
    – Jacob_
    Jun 28 '15 at 20:55
  • $\begingroup$ I'm not entirely sure, since I don't work in the game engine much $\endgroup$ Jun 28 '15 at 20:55
  • $\begingroup$ @GiantCowFilms Okay, well I'll see if it works $\endgroup$
    – Jacob_
    Jun 28 '15 at 20:56
  • $\begingroup$ @GiantCowFilms oh it seems I can't use particles in the game engine $\endgroup$
    – Jacob_
    Jun 28 '15 at 20:57
0
$\begingroup$

Another way to do it is with particles. The particle system would duplicate a specific tree object and distribute it. There is a button in the modifiers tab (if a particle system is present for the object) that makes all the particles into individual oobjects. I won't provide specific step by step instructions on how to set up the particle system, but I hope that works. However, on most cases Python script would be preferable for what you want. You'll probably to distribute multiple tree models to provide variations, and you'd need a Python script for that.

EDIT: well now I see the comments under the question. This is probably useless. XD

$\endgroup$
1
  • $\begingroup$ Actually it's still useful, the modifiers tab part helps @TheMinecraftMan757 $\endgroup$
    – Jacob_
    Jul 2 '15 at 16:13
0
$\begingroup$

I'd recommend the Asset Sketcher commercial addon on CG Cookie Market. Perhaps you can modify it to randomize the Sapling seed value.

$\endgroup$
0
$\begingroup$

Use Python. Get the list of verts in the terrain then iterate through them and randomly assign each coordinate as covered or empty. Covered ones get a tree or bush object or the like. I built exactly this a while back. Let me know if you'd like an example script.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.