Commit Graph

53000 Commits

Author SHA1 Message Date
Martin Poirier
45e14ed270 small debug code and cursor change on start. 2007-11-14 21:26:22 +00:00
Andrea Weikert
a219d6e238 - fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption
Aligorith: please check, I think fix is quite obvious though.
2007-11-14 21:19:49 +00:00
Ton Roosendaal
c3bbd543c7 Small feature added to new "show bone paths around cfra":
- after a insert-key (autokey mode) it updates paths.
2007-11-14 16:50:51 +00:00
Ton Roosendaal
fa8032ce31 Bugfix in MeshDeform file reading, should check for NULL pointer case... 2007-11-14 16:20:19 +00:00
Ton Roosendaal
0ca299439c Bugfix #7686
Render, Ortho, lamphalo position was off a bit due to missing correction
factor.
2007-11-14 10:20:13 +00:00
Martin Poirier
166cc3110d Fixing up angle based subdivisions.
Adding symetry detection (right now, only primary symetries and only used to determine bone orientation).
Fixing bugs (infinite loops) in length based subdivisions.
Adding number of post processing passes parameter
2007-11-14 01:57:17 +00:00
Matt Ebb
96285bd30a * Visualise the Map Old/Map New setting in the timeline with a stippled overlay in the stretched section 2007-11-14 01:13:30 +00:00
Matt Ebb
a1c5b3b51d * New feature on compo scale node: "Scene Size %"
This option sets the relative scaling factor to the amount set in the 
scene "100%/75%/50%/25%" buttons. It's useful when you've got a fixed 
background image, and want to do preview renders at a lesser 
percentage, so you don't have to go and change the scale node each 
time you change the %.

Also removed unnecessary use of a global from texture node.
2007-11-13 23:53:58 +00:00
Brecht Van Lommel
2f76b49bc1 Bugfix for endian bug in mdef file writing.
Also an unrelated warning fix.
2007-11-13 18:50:57 +00:00
Campbell Barton
d376b0630b ==Python API==
mesh.pointInside(vec)  wasnt working in all cases. (own mistake)
2007-11-13 15:32:27 +00:00
Joshua Leung
470a69388f == Peach Feature Requests (Bone-Path Drawing) ==
* Added a new option to only calculate a certain number of frames before/after the current frame instead of defining a frame range. This is useful in certain cases on longer timelines, to be able to view the paths for certain regions quicker.

* When inserting a keyframe, if a bone already has path drawing on, the path for that bone will get automatically recalculated. More testing is required to see if there are any more cases where this would be useful. Also, a global setting to turn this on/off would be a good idea.

Todo (requested but not yet implemented):
* Parts of path before/after current frame could get drawn with different colours
2007-11-13 11:54:20 +00:00
Chris Want
e66f325dd7 ==Mirror Modifier==
Support for using the axes of a different object as the line of mirror
symmetry for a mirror modifier. As a nice consequence, this allows
"clipping" to arbitrary planes in editmode.

A fun example of using a couple of mirror modifiers and an array
modifier to easily make a nice flower type model is here:

http://bebop.cns.ualberta.ca/~cwant/chocolateC05.blend
2007-11-13 06:56:55 +00:00
Juho Vepsalainen
66338575d6 = Changed Icosphere max to 8 and fixed Remove Doubles =
This commit changes icosphere maximum to 8 (was 500 before).
Also made Remove Doubles button found in the Buttons Window work again.
2007-11-12 12:54:37 +00:00
Ton Roosendaal
9c7a4a16bf Bugfix #7756
Sequencer: changing the Scene strip length (Ckey) crashed.
This is very confused code here... ancient allocation issues. :)
2007-11-12 11:45:48 +00:00
Ton Roosendaal
da7175476d Bugfix #7735
Spothalo sometimes gave black pixels. Error was using floating point
32 bits precision checks where double should be used.

(10e-7 vs 10e-16)
2007-11-12 09:37:46 +00:00
Brecht Van Lommel
7c717db075 Mesh Deform Modifier
====================

Forgot to uncomment line again for the weight threshold before I committed,
this should save some time and memory space.
2007-11-12 09:12:37 +00:00
Joshua Leung
89317afbdf Patch #7767: Constraint Subtargets can now target anywhere on a bone, not just the head or tail
Patch by: Roland Hess (harkyman)

For example, a constraint can be sub-targeted at the 50% (or 31.2% or 85% etc.) point of its target bone, giving you enormous rigging flexibility and removing the need for complex contraptions to do such things as:

- A bone whose base slides only between to points on a rig (CopyLoc with a variable, animated subtarget point)
- Bones that attach to multiple points along another bone (CopyLocs, each with a different head/tail percentage)
- Bones that need to stretch to a point midway between specific spots on two other bones (old way: too crazy to mention; new way: stretch bone between points on end bones, then another stretch to the midpoint of the first stretch)

It is only used for the constraint types for which it is relevant: CopyLoc, TrackTo, StretchTo and MinMax, TrackTo, and Floor.

Notes:
- This is accessed by the Head/Tail number-slider. 
- This value can be animated per constraint
- The old "Copy Bone Tail" option for the CopyLoc constraint has been automatically converted to 1.0 Head/Bone values for the affected constraints
- In the code, this value is in the bConstraint struct, so it is available for all constraints, even though only a few implement it.
2007-11-12 04:17:03 +00:00
Brecht Van Lommel
7f2e43968a Mesh Deform Modifier
====================

Dynamic binding support. This means that the mesh can move _within_
the cage and still deform correct. If the mesh goes out of the cage,
don't expect correct result. Must be enabled with the 'Dynamic'
option, because it is slower and consumes more memory.

This is useful to use e.g. the cage mesh for main deformations and
still have shape keys for facial deformation working.
2007-11-11 22:54:14 +00:00
Joilnen Leite
8f684083cf dropped some unused lines, if that was some new feature witch I no found mentions in svn logs please to commit
for trunk when ready
2007-11-11 16:56:22 +00:00
Ton Roosendaal
3d250856fb Proper code for bugfix revision 12365 (which was uncommitted today).
Old log Message:
-----------
bug fix, when opening blender with a file (by double clicking or from the 
command line) - the initial undo state would be set to the default scene.
So holding Ctrl+Z would go back to the default .B.blend rather then the 
file that the user opened.
2007-11-11 16:13:27 +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
2abb50d1ea Exclude generated images when checking if an image is already loaded, it can be very confusing when you don't appear to have the image loaded anywhere. 2007-11-10 19:56:06 +00:00
Campbell Barton
90b4ed9543 added buttons in the Transform Properties for changing curve handle types, (Similar to how Metaballs can be selected) for easier access then H,Shift H, V keys 2007-11-10 15:31:41 +00:00
Andrea Weikert
38d12b3c8d Bugfix #6797: Relative paths load problem on new file (fix included)
- brought back the check for a valid relative base when selecting.
- kept the check for when file is saved too and warning message is printed to console instead of popping up.
Also fixed BLI_split_filedir overwriting parameter passed as const char*
2007-11-10 11:45:25 +00:00
Campbell Barton
f02a746f56 ==Python API==
added .smooth setting to CurNurb's

so you can do....
for curNurb in Curve.Get('foo'): curNurb.smooth = True
2007-11-10 11:05:44 +00:00
Andrea Weikert
f9e35056af == imagebrowser ==
* bugfix: calling imagebrowser with relative path results in non-existing dir
* cleanup: removed unneeded BIF_filelist_appenddir function
* added check for valid relative base when activating imagebrowser (like in filebrowser)
2007-11-10 09:11:42 +00:00
Joshua Leung
234bb41906 CopyRot Constraint and Transforms:
Now, when rotating along local axes of an object/bone with a copy-rot constraint that has offset on, the results are more predicatable. However, doing so with global axes is still in CrazySpace (TM).
2007-11-10 02:53:19 +00:00
Campbell Barton
6b1158c146 mistake in last commit 2007-11-09 16:05:04 +00:00
Ton Roosendaal
072cb52a79 Feature: transform manipulator (align normal option) aligns with bezier
handles now. Needed & useful for modeling trees here...
2007-11-09 16:02:31 +00:00
Campbell Barton
d1dbf41f6c PyTuple_Pack dosnt work with python 2.3 - removed 2007-11-09 15:56:41 +00:00
Ton Roosendaal
62f8e6fc23 Quick added feature: the "do not get scaling from parent bone" option.
It's next to the 'hinge' button, a small 'S'. No more space here... will
make it nicer inferface later. :)
Let's first see if this works as expected.
2007-11-09 14:58:55 +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
Martin Poirier
eeb9e1486d Still nothing to see here <shifty eyes>
This fixes up angle based subdivisions, adds embedding post processing methods (before, only average was there, added smooth and sharpen).

More parameters are controllable through the UI.
2007-11-08 22:03:04 +00:00
Brecht Van Lommel
7294d19d66 Bugfix:
Issue with dual quaternion scaling + vertex group influence.
2007-11-08 18:02:15 +00:00
Martin Poirier
4b38620d3f Fix for bug [#7741] new colorband for weightpainting overlaps with verse settings 2007-11-08 15:57:18 +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
Juho Vepsalainen
b2a972b4cd Fix for bug #7697 Appending screen crashes when appended screen is accessed:
This commit fixes the issue by disabling access to screens via the path input field.

Note that appending screens might actually be a useful feature to implement at some point.
2007-11-08 13:49:11 +00:00
Campbell Barton
40f871c07f * new stamp option to stamp forground sequence strip name.
* made stamp filename optional
* renamed weightpaint "Filter" to "Blur"
* made the defailt weightpaint opacity 1.0 rather then 0.2 so when you select 1.0 weight you can paint it with without multiple clicks.
2007-11-08 13:02:59 +00:00
Joshua Leung
0100ebe230 Bugfix #7682: Constraint.InsertKey works odd for PoseBones
Constraint.InsertKey was inserting keyframes for the wrong action-channel. It was doing so for the active bone, not the owner of the constraint.
2007-11-08 09:49:49 +00:00
Joshua Leung
45f72036a5 Patch #7722: no 'Auto IK' for solitary (unconnected) bone
'Auto IK' is a great feature, however when solitary unconnected bone (without connected child bones) is grabbed it can't be moved because of IK. This can be really annoying. Preventing 'Auto IK' for solitary bones would improve user-experience by making mixing of FK and IK  more convenient while using 'Auto IK'.

Patch by Teppo Kansala (teppoka).
2007-11-08 08:27:21 +00:00
Joshua Leung
3f6d993dce Patch #7760: X-Axis-Mirror support for 'make bone parent'
This patch by Teppo Känsälä (teppoka) makes parenting bones with Ctrl-P support the X-Axis-Mirror option for Armatures. It will cause the mirror-bone of the selected bone to also get parented. i.e. if "bone.R" was selected and being parented, "bone.L" would also get parented.

I've made an addition to this patch, which means that if the bone that acts as the parent also has a mirror-bone (i.e. when parenting "lowerArm.L" to "upperArm.L", "lowerArm.R" gets parented to "upperArm.R"). Otherwise, they both get parented to the same parent bone (i.e. a parent bone that doesn't belong on either side such as "upperSpine")
2007-11-08 08:06:50 +00:00
Daniel Genrich
d4e881761d Introduced a selfmade AIMEX (adaptive implicit-explicit condition into force calculation for jacobi matrices -->results in ca. 15% speedup 2007-11-08 03:31:52 +00:00
Campbell Barton
574744bf42 New Curve function in the curve specials menu - "Smooth Radius" this smooth's the radius of selected curve points to unselected or endpoints. useful when changing the taper of a long curve
with many points (think treetrunk), it would be nice to take into account distance on the path when doing the curve interpolation.
Also moved added undo call's that were missing for 2 of the other curve specials.
2007-11-08 00:06:48 +00:00
Martin Poirier
e7c4bad8e9 Update from school work. 2007-11-07 21:45:35 +00:00
Martin Poirier
4cae0a0ff9 Fix for bug [#7741] new colorband for weightpainting overlaps with verse settings
I only have that branch checked out here, so that's why I'm committing there.

I'll merge into trunk when I get back home.
2007-11-07 21:09:40 +00:00
Joseph Eagar
b4ec6efb41 =Python API bugfix=
Scene.update(full=1) was pretty useless as it didn't actually evaluate the
depsgraph DAG.  This meant, for example, that re-evaluating the parenting
tree for an armature pose could only be done by redrawing the view (which
evaluates the depsgraph). scene_update_for_newframe() is now called when Scene.update is in "full" mode; to prevent firing off newframe scriptlink events, scriptlinks are
temporarily disabled while scene_update_for_newframe() is being called.
2007-11-07 18:52:23 +00:00
Campbell Barton
50e5c9d1c2 own silly error, was reusing an existing flag for the draw curve handles setting. 2007-11-07 13:02:50 +00:00
Ton Roosendaal
2480173125 Small fix for feature 'custom weight paint range': the range was not
initialized on starting Blender.
2007-11-07 11:14:52 +00:00
Martin Poirier
ec13425eab Initial commit for Harmonic Skeleton generation.
This is very much a work in progress commit to allow me to work outside of home.

While it does somewhat work, I wouldn't recommend anyone to use it.
2007-11-07 00:28:45 +00:00
Martin Poirier
0de103c1cd Filling in branch from trunk 2007-11-06 22:29:20 +00:00