Tree from curves

Info about it here.

It’s bundled with Blender 2.46.

I couldn’t get it to load for a while, then I re-installed Blender 2.46 in a new directory. Apparently, my problem was I had installed Blender 2.46 over my previous version of Blender. I guess you’re not supposed to do that when you update.

Here’s my first try with the script

My first test after watching the video tutorial. Really good script.

http://iluvblender.googlepages.com/BaseTreeWithBranchesAndTwigs.jpg

http://iluvblender.googlepages.com/GrowingTwigsAndLeavesUsingBoundingVo.jpg

http://iluvblender.googlepages.com/TestRenderWithLeaves.jpg

I made one tree myself:

http://i261.photobucket.com/albums/ii52/Programmerer/th_Tree-2.jpg

Click for larger preview. The trunk was made by me, but the twigs, and branches are made with the script;)

here’s a nice effect i got using a sprig of leaves rather than a single leaf

Attachments


heres another with sprigs. i think i’ll try putting berries or fruit on next.

Attachments


CAN you take some screen shots of the setup please so we can understand this more?

I’ll tell you what I did, though I don’t know that’s it’s the standard way.
I added a bezier curve, made it 3D, extruded it a couple of times, then from there, I duplicate a vertex, then extrude it out for a branch, then repeat, subdividing as necessary, until you have your basic tree structure.
Then make a mesh in the shape of the canopy, and place it around your branches. I think how smooth or rough this mesh is, can have a big effect on how your tree comes out. Center it ( I don’t know if you have to, but I did ), and give the object a name. ( I will call this object ‘canopy’ )
Now make a leaf, ( or cluster of them ) and snap it to the curve. Give the object a name. ( I will name mine ‘leaf’ )
Now, this part, I could probably do a better way, but this is how I do it…to get my branch taper correct. I add a bezier circle, then in the ‘bev ob’ field ( in edit button ) of my original curve, I type the name of the bezier circle. The name of the circle is, by default, ‘Curve_Circle’, or something like that. When you do that, your original curve will fill out like a big hose. Scale the circle until it is about the right size for your trunk, and then go back to your first curve, and alt S the points until it’s all tapered about how you want it. When you’re finished, erase the name of the circle from the bev ob field, and your curve will revert to its non-fleshed-out state.
Now you are ready to open up the script, so, open up the script.
So open a script window, go to Wizards>>Tree from Curves
Select your original curve if it’s not already selected, and press ‘fill twigs’, then in the field where it says ‘OB Bound’ type ‘canopy’ ( or whatever you chose to name yours )
now press ‘grow twigs’, and you’ll see that ‘canopy’ is already written in the OB Bound field for the ‘grow twigs’ buttons
Now press ‘generate leaves’, and in the ‘OB’ field of the leaf buttons, write ‘leaf’ ( or whatever you decided to name your leaf )
Now go to the bottom, and press ‘Automatic update’ to see what your tree will look like, and it will probably be too chunky, so, tab into edit mode with your curve, use A to select all points, and hit Alt S, and move your mouse cursor inward a bit to scale down your normals. Then tab back out of edit mode, and hit the ‘automatic update’ button off, and then back on, to see the results.
When youre happy with your settings ( mine were not far from the default settings ) hit the 'generate from selection button, and exit the script by typinf ctrl Q while your mouse cursor is in the script window.
That is all there is to it.

Mmm tasty blender berries

Attachments


This is excellent. Did you manually place the fruit or did you include it in the leaf mesh?

How about bigger render?

I just joined a couple of berries to the leaf cluster that I was using as my leaf object. the script had no problem handling the multiple materials.

My question has been asked on a french forum but nobody has answered. Is there anybody here who have tryed wizard_curve2tree.py on a Mac PowerPC … Tiger 10.4.11 ? I cannot run that script because after having made my curves an error message appears just after i have push on the button : generate from selection … Thanks to anyone who could help …