This is not directly Panda 3D related, but maybe some people are still interested in that. I wrote this little script for 3dsmax, it basiclly creates a simple tree.
Update: Now it is actually directly Panda3D related.
EasyTree Generator for Panda3D.
Tree Generator for 3D Studio MAX.
Tree models in EGG-Format.
You can create all kinds of trees and you have quite some control over the amount of detail, so it will work for realtime aswell. The trees are normal poly objects, so they are easily tweaked, if you're picky. They also come with a UV-set, so you can just throw a bark-texture on it and it should look kinda fine.
The controls for the tree are pretty self explanary:
Height is the height, radius is the radius of the trunk. Generations says how often branches, well, branch. Radius- and length-drop define how much the branches become thinner and shorter. A 0.5 value here makes a child branch half as thick or long as its parent. Spread angle and -rotation define how the branches spread out. The lower the values here, the straighter the tree will be. Spread Randomness and Rotation Randomness make it look more random, less straight. Segments and sides finally define the detail amount on the branches.
The function "rollDice" creates random values that produce more or less natural looking trees.
- Code: Select all