Introduction
I have been working on implementing the tree model described by Jason Weber and Joseph Penn into Blender. This model has proven popular and is used in the tree generator Arbaro and the Blender 2.49 plugin Gen3.
Download Location
http://projects.blender.org/tracker/download.php/153/469/27226/17302/add_curve_sapling_0_2_4_OSX_Fixed.zip
Installation Instructions
- Download the above file and unzip it into your Blender Add-Ons folder (…/blender/2.58/scripts/addons or some such)
- Start Blender and go to FILE -> USER PREFERENCES, in the window that opens click on the Add-Ons tab.
- Click Add Curve in the list on the left.
- Check the box next to the ‘Sapling’ add-on.
- Now in the 3D view, go to Add -> Curve -> Add Tree
- A tree is added and the options are in the tool shelf (T-KEY)
- Have fun playing around with the options!
Wiki
http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Curve/Sapling_Tree
Tracker
http://projects.blender.org/tracker/index.php?func=detail&aid=27226&group_id=153&atid=469
Version 0.2.4
- Added rectangular leaves with UV mapping
- Fixed tracker URL
Version 0.2.3
- Added wiki and tracker URLs
- Fixed usage of Matrix.Rotation
Version 0.2.2
- Fixed preset path to work with user defined script location (code thanks to Sanne).
- Fixed limit import to work correctly and not export limit import value.
- Fixed radius calculation issue to correctly implement the weeping willow preset.
- Fixed presets to have all parameters correct in the preset file.
- Minor code improvements.
Version 0.2.1
- Updated to 2.58 API
- Added the ability to start the tree at an angle to the ground via startCurv
- Fixed an issue where, even if the seed value was the same, the tree generated would be different
- Fixed calculation of upward attraction for correct implementation
- Added presets for CA Black Oak and Weeping Willow.
Version 0.2
Version 0.2 of Sapling has now been uploaded and can be found here. The following changes have been made to this version:
- Automatic armatures have been added so it is possible to generate an armature and bones for the whole tree easily. This includes the leaves which also have vertex groups to make sure they stay attached to their branches.
- Automatic armature animations have also been included to add wind to a tree automatically.
- GUI updated to make it smaller, a drop down box within the panel now allows access to each section of tree parameters. They are in the recommended order of editting.
- PruneRatio has been added which allows for adjusting the amount of pruning applied.
- A better visualisation of the pruning envelope has been added to make it easier to see the shape that you are forcing the tree to take on.
- Leaf generation has had some corrections which should also speed it up.
- Comments on the code have been added for those interested.
Cheers,
Truman
Version 0.1
Hi All,
I have been working on implementing the tree model described by Jason Weber and Joseph Penn into Blender. This model has proven popular and is used in the tree generator Arbaro and the Blender 2.49 plugin Gen3.
I am happy to announce that ‘Sapling’ is ready for a first release (v0.1) and can be found here. This was written using Blender 2.56.6 r36007 (RC2).
In order to use the script follow these steps:
- Download the above file and place it in your Blender Add-Ons folder (…/blender/2.56/scripts/addons or some such)
- Start Blender and go to FILE -> USER PREFERENCES, in the window that opens click on the Add-Ons tab.
- Click Add Curve in the list on the left.
- Check the box next to the ‘Sapling’ add-on.
- Now in the 3D view, go to Add -> Curve -> Add Tree
- A tree is added and the options are in the tool shelf (T-KEY)
- Have fun playing around with the options!
There are a few things to note:
-
You can adjust the quality of the tree at any time using the ‘Preview U’ and ‘Bevel Resolution’ option in the Object Data section of the properties panel.
-
The following options are disabled by default to speed up editing:
[LIST] -
You must tick the ‘Bevel’ box to see the actual tree.
-
You must tick the ‘Leaves’ box to generate the leaves.
-
You can change ‘Levels’ to see only the level you are editing (and the ones below it).
-
You must tick the box ‘Prune’ if you want to enforce a shape on the tree.
-
The tree which is created by default is the ‘Quaking Aspen’.
[/LIST]
Also, there are some elements of the model which are not implemented: -
Flaring of the trunk is not yet supported, I am currently looking into this.
-
Periodic tapering of the branches is not supported and is unlikely to be due to limitations of using curves for the branches.
-
Wind sway is not yet implemented but is the next item on the to-do list.
The default output of the script, with bevelling and leaves enabled (plus some quick materials) is shown below:
This tree has about 180k verts but as described above, this can be adjusted.
If there is enough interest I might create a tutorial explaining all the options and how to use them.
Please feel free to leave any comments and suggestions as well as bugs to I can try to get them out of the way quickly.
Cheers and enjoy,
Truman