Commit Graph

8057 Commits

Author SHA1 Message Date
Ton Roosendaal
cfe1756571 Bugfix #5037
Clear transform (ALT+G/R/S) in Pose sometimes didnt work, for example when
armature is being controlled by other armature. Caused by double depsgraph
flushing.
2006-10-31 20:48:10 +00:00
Ton Roosendaal
da8e2749bc Small fix in calculating correct cycle offset for cycling ActionStrips.
This float precision is usually headaches :)
2006-10-31 18:24:27 +00:00
Erwin Coumans
92fd043346 update Bullet 2.x with latest changes, notice that the integration is not finished yet, and GameBlender is still using extern/bullet. 2006-10-31 18:19:57 +00:00
Ton Roosendaal
35d6c6e695 Two wonderful new NLA & Armature editing features!
- FORWARD CYCLING & MATCHING

Up to no now, adding multiple actions in NLA with walkcycles required to
animate them standing still, as if walking on a conveyor belt. The stride
option then makes the object itself move forward, trying to keep the foot
stuck on the floor (with poor results!).
This option now allows to make walk cycles moving forward. By
indicating a reference Offset Bone, the NLA system will use that bone to
detect the correct offset for the Armature Pose to make it seamlessly going
forward.

Best of all, this option works as for cyclic Action Strips as well as for
individual Action Strips. Note that for individual strips, you have to set
the strip on "Hold". (Might become automatic detected later).

Here's an example edit image for NLA:
http://www.blender.org/bf/nla_match-cycle.jpg
And the animation for it:
http://download.blender.org/demo/test/2.43/0001_0150_match.avi
Blender file:
http://download.blender.org/demo/test/2.43/mancandy_matching.blend

Using this kind of cycling works pretty straightforward, and is a lot
easier to setup than Stride Bones.

To be further tested:
- Blending cycles
- matching rotation for the bones as well.

- ACTION MODIFIERS (motion deformors)

The above option was actually required for this feature. Typically walk
cycles are constructed with certain Bones to be the handles, controlling
for example the torso or feet.
An Action Modifier allows you to use a Curve Path to deform the motion of
these controlling bones. This uses the existing Curve Deformation option.
Modifiers can be added per Action Strip, each controlling a channel (bone)
by choice, and even allows to layer multiple modifiers on top of each other
(several paths deforming motion). This option is using the dependency graph,
so editing the Curve will give realtime changes in the Armature.

The previous walkcycle, controlled by two curves:
http://download.blender.org/demo/test/2.43/0001_0150_deform.avi
Blender file:
http://download.blender.org/demo/test/2.43/mancandy_actiondeform.blend

Action Modifiers can be added in the NLA Properties Panel. Per Modifier you
have to indicate the channel and a Curve Object. You can copy modifiers from
one strip to another using CTRL+C (only copies to active Object strips).

Setting up a correct Curve Path has to be carefully done:
- Use SHIFT+A "Curve Path" in top view, or ensure the path is not rotated.
- make sure the center point of the Curve Object is at the center of the
  Armature (or above)
- move the first point of the curve to the center point as well.
- check if the path starts from this first point, you can change it using
  (in Curve EditMode) the option Wkey -> "Switch Direction"
- Make sure alignment uses the correct axis; if the Armature walks into
  the negative Y direction, you have to set in Object Buttons, "Anim settings"
  Panel, the correct Track option. (Note; option will probably move to the
  Modifier later).

This is a good reason to make such paths automatic (on a command). Is on the
todo list.

Also note this:
- the Curve Path extends in beginning and ending, that's (for now) the default,
  and allows to use multiple paths. Make sure paths begin and end horizontal.
- Moving the Curve in Object Mode will change the "mapping" (as if the landscape
  a character walks over moves). Moving the Curve in Edit Mode will change the
  actual position of the deformation.
- Speed (Ipos) on paths is not supported yet, will be done.
- The Curve "Stretch" deform option doesn't work.
- Modifiers are executed *after* all actions in NLA are evaluated, there's no
  support yet for blending multiple strips with Modifiers.
- This doesn't work yet for time-mapping...

This commit is mostly for review by character animators... some details or
working methods might change.
This feature can also be used for other modifiers, such as noise (Perlin) or
the mythical "Oomph" (frequency control) and of course Python.

Special thanks to Bassam & Matt for research & design help. Have fun!
2006-10-31 15:51:57 +00:00
Jens Ole Wund
52c20fecba softbody update -> self collision search takes 1/3 of the time here
this one should work nice -->
http://www.wund.homepage.t-online.de/hidden/sb_col_must_3_0.blend
2006-10-30 22:47:41 +00:00
Peter Schlaile
e8a58eb0f9 == Sequencer ==
Bugfixes: Fixed partially bug #5030
Added patch: #4992 Basic Transforms
 This adds basic transform capabilities (rotate, scale, shift) to the
 sequencer.
2006-10-30 22:28:06 +00:00
Campbell Barton
55d1618990 check for devide by zero error 2006-10-30 16:01:38 +00:00
Jiri Hnidek
e944ed2f4a - bug fix #5141, blender doesn't crash, when you try to unsubscribe twice
from verse node in outliner
2006-10-30 14:59:30 +00:00
Jiri Hnidek
b17ce5e24a - bug fix: brecht's fixing of warning caused one bug, ... one "break;"
was missing in code ... blender crashed, when it was connected to
   verse server with bitmap node
2006-10-30 12:24:22 +00:00
Jens Ole Wund
65677de02c msvc6 adding transform_snap to project 2006-10-30 08:39:38 +00:00
Campbell Barton
8177125b0f An arg was left in that should have been removed, raised an error for reflect MTL files. 2006-10-29 19:56:52 +00:00
Tom Musgrove
a991d0d6f2 =rename append=
renamed the file menu item append  to append/link for clarity, thanks to Juho Vepsäläinen (bebraw)
2006-10-29 16:51:50 +00:00
Tom Musgrove
d1e1851722 =render window zoom with mousewheel and pgup pgdwn=
adds additional shortcuts to zoom on the render window, patch by Onur Yalazi (onuryalazi)
2006-10-29 16:31:36 +00:00
Matt Ebb
ddbfb04642 * Changed the Curve Modifier to have it's own X/Y/Z axis deform direction
settings, rather than using the object's TrackX/Y/Z/etc buttons.

 This is good for two reasons: a) having the settings over in the object buttons
 before was terribly unintuitive and hidden, now it's more visible how to
 control the deformation, and b) now if you have more than one curve modifier,
 they can have their own settings, instead of being forced to use the object
 level data.
2006-10-28 16:48:56 +00:00
Matt Ebb
3e0c45440d * Simple patch 5058 from gsrb3d to use constants instead of magic numbers for
theme drawtypes
2006-10-28 13:21:02 +00:00
Ton Roosendaal
129cab4137 New Curves Widget option: curves can get extrapolated extension.
Especially for Compositing it was annoying that colors always got clipped
in the 0.0-1.0 range. For this reason, extrapolated Curves now is the
default. Old saved files still have horizontal extrapolation.

Set the option with 'Tools' menu (wrench icon). This is a setting per
curve, so you might need to set all 4 curves for an RGBA curves widget.
2006-10-27 20:27:13 +00:00
Ton Roosendaal
a7d3a58ba9 Serious bugfix for compositing; using Groups could crash if one of the
input nodes was 'passing on' the buffer (because it didn't operate on the
image). That's for example for Blur with size 0 or for Translate node.
This passed-on buffer then got freed inside the group...

Solution now is just a malloc. Better system should be devised, with
reference counting or so. Thanks Ivan Hoffmann for the sample file!
2006-10-27 19:52:41 +00:00
Kent Mein
76ff13de42 more bugs found thanks to klockwork
all of these are just check a var to make sure it points to something before
using them.

Kent
2006-10-27 18:24:10 +00:00
Brecht Van Lommel
43dc73ce79 Fix for bug #5128:
Missing texture preview update for MinX/MaxX/MinY/MaxY settings
of an image texture.
2006-10-27 17:05:22 +00:00
Kent Mein
4657db2a38 More bugs found thanks to klockwork
mallocn.c  check malloced memory before using it.
ssp_blas2.c free memory that wasn't but should have been.

Kent
2006-10-27 15:00:31 +00:00
Nathan Letwory
45c1f23f19 Apply patch #5127 by Joseph Eagar (joeedh)
* This addresses the long command-line problem when building with SCons/MingW on windows through a dosbox (cmd.exe).

My test buildpath was: C:\Documents and Settings\nathan\My Documents\blender\build\win32-mingw
Should be rather long enough, don't you think?

/Nathan
2006-10-27 09:01:42 +00:00
Nathan Letwory
a782b2179b fix for #5135
* potentially a NULL-pointer could be referenced, causing a segfault.
2006-10-27 08:12:18 +00:00
Brecht Van Lommel
dd3d85c77d UV editor:
- When in 2D image paint mode or mesh editmode, draw a shadow mesh
  to more clearly indicate the UV's are not editable.
- While in editmode the UV's displayed are now updated as the mesh is
  edited, whereas before it would draw the UV's of the mesh before
  entering editmode.
2006-10-27 00:43:18 +00:00
Brecht Van Lommel
40d4d86055 Bugfix: alpha values written in image paint were wrong. 2006-10-26 23:42:04 +00:00
Brecht Van Lommel
5376df2689 Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
unintialized variables in the verse code, verse_session.c:451 and
verse_object_node.c:339, those are properly initialized now.
2006-10-26 23:34:44 +00:00
Brecht Van Lommel
47f579f514 Add a stub to make blenderplayer compile with verse enabled. 2006-10-26 22:36:29 +00:00
Kent Mein
7fdf2a2303 more bugs found thanks to klockwork
I basically added some checks to see if we have a buffer before trying to
actually use them.

Kent
2006-10-26 18:58:07 +00:00
Andrea Weikert
06d047ddfa ==== MSVC 7 project files ====
- added transform_snap.c
2006-10-26 17:39:06 +00:00
Ton Roosendaal
9f77785d7c Coding work while on the trip to london (based on Plumiferos wishlist);
- Icon previews for Images were created always for old files, which made
  browsing (menus) incredible slow. Added a minor change in the flow, so
  icons only get created when the user invokes loading images.
  Andrea; you might check this, probably not al cases are covered yet?

- Compositor: the 'File Output' node now has a min/max frame for which it
  writes files

- Compositor: fixed a very bad bug (even in 2.42a release) that made the
  depsgraph for nodes not work... while editing, only the nodes that change
  should be recalculated, but accidentally all of them were done each time.
2006-10-26 10:13:16 +00:00
Martin Poirier
f0dcd2db75 == Transform ==
Embryon functionnality for snapping.

- Only snaps to grid on translations (grab)
- Transform constraints are supported but header display is wrong.
- Can be turned on/off in the Object/Mesh header menu under Transform Properties (tentative spot, will have to integrate better and in other object type menus too)
- Can be turned on/off during transform with ` (Back Quote, also tentative)

This is, of course, very much Work in Progress.

This implements part of the structural ideas for the transform cleanup I've been juggling around with.
2006-10-25 23:57:00 +00:00
Martin Poirier
2556254e92 == 3D View ==
Customizable Grid Subdivisions

This commit adds a numbut to the View Properties panel that lets you specify how the grid is subdivided.

This affects snapping in translations, obviously.

Default: 10 (behavior doesn't change)

That means people still stuck in feet and inches (shudders) can set it to 12 and have 1 unit = 1 foot.

That also means you can work in "heads" when doing body proportions or whatnot (don't think of it as being limite to "CAD" uses).
2006-10-25 23:34:24 +00:00
Martin Poirier
07ce603299 Cleanup.
Missing include for ListBase. Wasn't a problem until someone try to include this without including ListBase (manually or through something else). Safe now.
2006-10-25 23:19:40 +00:00
Martin Poirier
a3cff50ef6 LocEulSizeToMat4 arith function.
Creates a 4x4 matrix from location, size and euler angles components.

Coded by Joshua Leung (aligorith) for one of his patches. Integrating right now because it's useful in and of itself.
2006-10-25 23:15:09 +00:00
Kent Mein
5fdd9bcb9e Another klockwork patch.
Check to make sure BOP_newEmptyMesh returns a mesh before trying to use it.

Kent
2006-10-25 19:47:21 +00:00
Campbell Barton
80ffbee6f7 was missing a return of len, so scn.objects.context was always returning 0 2006-10-25 13:33:08 +00:00
Campbell Barton
9b7125fafc added the option to rename objects to their DupGroups name. 2006-10-25 01:32:46 +00:00
Kent Mein
00b2d4f052 Another bug found by klockwork.com
This one is just a simple test to make sure a malloc works before using
the variable allocated.

Kent
2006-10-24 16:42:12 +00:00
Kent Mein
0360be49f5 This patch is the first of many to follow that deals with various
problems reported by klockwork.com who was very nice and has offered to
provide free source code analisys for us.

This one deals with freeing memory for an object when there is an
error.  (The function allocated memory intending to return it but
then ran into problems, and was forgetting to free it before it returned
NULL)

Kent
2006-10-24 15:17:39 +00:00
Ton Roosendaal
9d67a597bc Irregular shadow fix: the MemArena module didn't give callocs, only malloc.
Made nice crashes that way... but not in !@%@$ OSX because it seems to
clear memory unwanted. Solve dit with adding API call in MemArena to default
to callocs.

Also removed malloc() from MemArena, replaced with MEM_mallocN().
2006-10-24 15:17:14 +00:00
Ton Roosendaal
da12c9571b Bug provided by Plumiferos team on conference:
In some cases faces were skipped from rendering, when using multiple
RenderLayers. Was caused by a "don't render" flag hanging. Error was
introduced with the "All Z" RenderLayer option.
2006-10-24 14:14:20 +00:00
Hans Lambermont
b5fbb186df - add -lXi to prevent "undefined reference to `XGetExtensionVersion'..."
- remove obsoleted<=4.0 freebsd compatibility
2006-10-24 13:34:15 +00:00
Ton Roosendaal
f3615cf228 Bugfix: commit of Campbell june 20, for fly mode, didn't check for the
G.vd->camera pointer. If not set, a view change can crash.

Reported & shown by Ivan!
2006-10-23 16:15:23 +00:00
Erwin Coumans
44d16f0562 Added refactored Bullet 2.x library. Important: these files are not part of the Blender build yet. First, the integration will be updated to make use of the new Bullet version. Then all build systems needs to be updated.
The refactoring didn't leave a single file the same, all filenames and classes have bt prefix, methodnames start with lowercase, a single headerfile can be included, and also a single include path.
Plan is to make use of this Bullet 2.x version in extern/bullet2 within the coming weeks, then extern/bullet can be discarded/ignored/content removed.
2006-10-23 02:54:30 +00:00
Campbell Barton
e459764b4b I was impossible to set a render window back to being a non render window without changing the TexFace image.
now the cross will unset the render window and use the texface if its there, cross again removes the image as useual.
2006-10-22 12:46:54 +00:00
Campbell Barton
0e569035c7 made mesh getFromObject also copy the meshes flag 2006-10-22 02:43:04 +00:00
Campbell Barton
23eb8b7a1f added the option to poly reduce all visible selected objects 2006-10-21 19:38:42 +00:00
Jens Ole Wund
88455e8d5c bug fix
in softbody aerodynamics
(should zero a vector which is only added to in function call)
thanks michael
2006-10-20 23:02:47 +00:00
Jiri Hnidek
137d9e5f29 - bug fix: get rid of "verse client name len: 16 ..." memory of client
name have to be deallocated after calling verse_client_name() function
2006-10-20 10:24:14 +00:00
Campbell Barton
a43bfad9e5 removed this script since Briggs ported it to C 2006-10-20 00:17:34 +00:00
Campbell Barton
6fcae7b5d4 added TwoSide to texface specials menu
added a menu for texface copy - Ctrl+C in Face Mode
2006-10-19 23:21:54 +00:00