Commit Graph

30 Commits

Author SHA1 Message Date
Campbell Barton
07a2f7013a fixed bug that only happened when a curve had 2 points in the same place 2007-11-27 22:09:42 +00:00
Campbell Barton
ee40a913a5 minor errors fixed 2007-11-27 21:19:58 +00:00
Campbell Barton
044b78c83b new function object_is_libdata - checks ob->id.lib but also accounts for proxy's.
Object panels were using object_data_is_libdata, which meant linked obdata could not have object settings changed.

curve2tree 
- option to face leaves up or down
- random pitch and roll options
- place 2 leaves on a point for denser leaves
- random seed entry so you can get reproducible results
2007-11-27 19:23:26 +00:00
Campbell Barton
38e3abae83 reference leaf object rather then group (which wasnt working and only used the last object). for dupli - leaves 2007-11-27 13:08:20 +00:00
Campbell Barton
2a743951fc * Improved Fill Twigs, they now join to make a continues skin like other branches.
* Improved dupli-leaf placement - (should be good enough to use for final renders)
2007-11-27 11:57:18 +00:00
Campbell Barton
a29f082728 new twig type that gives more even results - "Fill Twigs" option 2007-11-25 20:49:38 +00:00
Campbell Barton
a038363124 mesh_wire.py - gave an error with no faces,
wizard_curve2tree.py - didnt work with no bevel object
Curve.py - ext1, ext2 didnt reference the interface names.
2007-11-22 16:30:14 +00:00
Campbell Barton
0d6d89a27b wizard_curve2tree - mistake while debugging.
buttons_shading.c - short names for world settings were not needed.
2007-11-22 14:10:51 +00:00
Campbell Barton
413c24c746 initial support for leaves as duplifaces as well as some a bugfix for loading settings 2007-11-21 16:07:47 +00:00
Campbell Barton
307ad085fc wizard_curve2tree.py - always use active object (local view was messing up the context)
Mesh.c - mesh.faces.extend([..., smooth=True]) - smooth keyword argument, in a number of places was looping through all faces just to smooth them.
mesh_skin.py - smooth by default
2007-11-21 11:53:30 +00:00
Campbell Barton
3a8328784e made twig taper a float rather then a bool, added type conversion when loading settings. 2007-11-21 09:46:08 +00:00
Campbell Barton
80357d7f28 initial leaf support (need to use in production, at the moment its really simple)
Option to generate variation's - This modifies the original shape to make a variation on the original.
2007-11-19 14:00:48 +00:00
Campbell Barton
e0fb0a1783 wizard_curve2tree - more twig options
- gravity (like particles)
- follow parent (like gravity but use the parent normal)
- limit the number of twigs on each branch
- limit the radius that a twig may be placed on a branch
- trim the base of branches in a way that better deals with small branches on large branches
2007-11-17 01:17:23 +00:00
Campbell Barton
ad700ba24f * wizard_curve2tree.py - Automatic alpha blended, textured image joins using material textures and UV layers. Also added some detail options and made it easier to get low poly results.
* Mesh.c bugfix, "mesh.verts = None" didn't set the mesh->mselect pointer to NULL, wizard_curve2tree so would crash when in editmode.
* Texture.py - MTex.uvlayer doc was missing
* buttons_shading.c - Stencil tooltip was stupid.
2007-11-16 14:47:31 +00:00
Campbell Barton
07110e83fd - bounding meshes with loc/size/rot didnt work.
- better sorting of twigs (for recursive twigs)
- An option to lengthen child twigs.
2007-11-13 21:32:53 +00:00
Campbell Barton
1ece8b81cb - new UV scaling option works better for big/small branches.
- Can constrain twigs to only grow in a bounding mesh. And an option to prune twigs that grow out.
2007-11-13 16:50:43 +00:00
Campbell Barton
924f7e5146 Tree Wizard.
'Twigs' - branch's added to the existing, made from blending existing branches into new ones.

Some user settings for scale, orientation randomness, number of twigs and recursive twigs.
2007-11-12 23:19:33 +00:00
Campbell Barton
828eba4842 Loop in parents cant happen anymore, better dealing with segments with more then 4 children. print timing stats. 2007-11-11 21:14:44 +00:00
Campbell Barton
3a90b35db8 Undoing 'undo' fix 12365, it didn't work the same on mac's, Ton would like to fix the bug himself.
Tree From Curve,
- report error when nurbs or poly curves are used.
- don't throw errors when >4 branch's per segment are used. also try deal with this better. though no nice solution exists.
- default speed is 10x slower then before.
2007-11-11 15:18:53 +00:00
Campbell Barton
b7d3a8786a Rewrote the part that converted blenders curves into branches,
Was converting into a mesh and then doing location checks, to figure out what the radius should be and then interpolating. this was the slowest part of the script and it made a mesh every time.

Now use blenders bezier interpolation function and calculate points like blender does.

fixed a driver syntax error for the Z axis (typo)
2007-11-10 20:00:15 +00:00
Campbell Barton
250d473180 better segment collapsing (check for radius/angle difference)
remove vert groups from existing mesh when its being reused
2007-11-09 23:06:31 +00:00
Campbell Barton
57edc9f480 branch cap ends, UV scale options, Automatic update option added. as well as some bugs fixed. 2007-11-09 16:51:24 +00:00
Campbell Barton
42a2b662d3 saving and loading of settings per tree, also added a way to get unique animation using object locations in drivers 2007-11-09 12:19:10 +00:00
Campbell Barton
ddf2336084 curve2tree - animation settings - speed and magnitude
Python api - texture.evaluate can now accept tuples of numbers as well as vectors
2007-11-09 10:29:19 +00:00
Campbell Barton
95661081f9 tree branch bones can now animate using drivers that reference textures, so animation can be controlled from clouds, noise settings after being created. still need to add user preferences for animation speed and magnitude. 2007-11-09 01:35:00 +00:00
Campbell Barton
8e377cfe75 Branch's now have weights assigned to the mesh and an armature modifier applied so the bones effect the tree. 2007-11-09 00:05:15 +00:00
Campbell Barton
0da704af0d automatic armature generation follows branch's 2007-11-08 22:13:40 +00:00
Campbell Barton
3c3256c6f1 bug fix with trimming intersecting branches, added setting for branch joint smoothing. some speedups 2007-11-08 20:25:56 +00:00
Campbell Barton
4482f3b2e8 user interface added for 'Tree from curves' tool.
renamed Filter to Blur to Filter for #define as well
2007-11-08 15:41:11 +00:00
Campbell Barton
3275821759 (work in progress commit) - tree wizard, makes a subsurfed skin from curves. also adds UV's (and soon bones)
needs a user interface.
2007-11-07 21:39:23 +00:00