Campbell Barton
1df683a38b
more python 2.3 compat, should be the last of it.
2008-10-21 09:08:46 +00:00
Campbell Barton
ff2fcdf34e
py 2.3 compat for lightwave_import and wizard_curve2tree
2008-10-21 00:21:02 +00:00
Campbell Barton
caa7566ee2
wizard_curve2tree was opening FBX wiki docs. leaf dupliface object was being offset each time the script ran.
2008-05-02 12:27:05 +00:00
Campbell Barton
711306c2ba
added a help link to wiki docs for curve2tree, fixed some bugs in flt_toolbar
2008-04-06 17:11:14 +00:00
Campbell Barton
0eb018919a
fix for wrong rotation between branch joins
2008-04-05 10:55:18 +00:00
Campbell Barton
8fdfd4cc4c
PyAPI - setting a buttons string value crashed. suspect this is a 64bit problem since replacing the string length of int, with Py_ssize_t or long prevented the crash. worked around the problem by removing the PyString_AsStringAndSize command.
...
wizard_curve2tree - removing id properties didnt work. exit button used a callback it didnt need to.
2008-04-04 23:12:20 +00:00
Campbell Barton
ad7a03ef84
minor fix
2008-01-24 22:43:42 +00:00
Campbell Barton
f4e2005933
UV texture blending was being used when materials were disabled.
2007-12-07 11:56:51 +00:00
Campbell Barton
141e279d70
wizard_curve2tree.py - bounding twig mesh didnt work if it had some transformation.
...
buttons_shading.c - premul button was overlapping movie buttons
2007-12-01 22:00:09 +00:00
Campbell Barton
a4c17c7c88
anim.c, buttons_object.c, readfile.c, BKE_blender.h - dupliFace scale option, needed for leaves.
...
modifier.c, BKE_modifier.h - flag for modifiers to say they use pointcache, also new func modifiers_usesPointCache
renamed //pointcache to //blendcache_blendfilename so blendfiles in the same dir dont conflict, and other to show this dir isnt limited to pointcache only (nodes way want to use this)
wizard_curve2tree.py - better defaults for pretty tree's
2007-11-30 10:38:59 +00:00
Campbell Barton
6649ba74d6
- better weighting for fill twig placement
...
- curve direction isnt used anymore - just make the small end the last.
2007-11-29 14:41:33 +00:00
Campbell Barton
d6ce9e4abe
curve re-meshing had some errors when making joins, now collapse surrounding overlapping segments when adding joins to allow room for the join, joint rotation was also wrong between branches.
2007-11-28 15:26:02 +00:00
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