Commit Graph

12883 Commits

Author SHA1 Message Date
Campbell Barton
fd98d38672 fix for valgrind warning - strcpy was trying to copy to/from the same value (aparently this can corrupt the value in some cases)
Fixed problem where hidden curve handles could still be transformed.
2007-10-25 20:30:18 +00:00
Daniel Genrich
f2cbe4e76b svn merge -r 12382:12391 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-25 16:42:17 +00:00
Campbell Barton
5007d95572 ==Curve Editing==
Curve select lasso and border didnt work with hide handles enabled.

Hiding handles was using the scene->selectmode variable, but looking at this now, I see there are places where selectmode is compared with 
SCE_SELECT_VERTEX, EDGE, FACE etc. as well as being.
Better to use a global flag, same as G_DRAWFACES.
This is not good since anyone using this in the few days will have an invalid selectmode variable. simple way to fix is to change modes, so do_versions shouldnt be needed.
2007-10-25 15:23:52 +00:00
Brecht Van Lommel
a9590ffaa7 Fix for pole target commit, broke blenderplayer compile. 2007-10-25 15:19:06 +00:00
Daniel Genrich
41b1505f83 svn merge -r 12347:12382 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-24 17:20:53 +00:00
Daniel Genrich
916cd17778 Fixed some bugs in bounding volumes, still some crasher in new cloth modifier 2007-10-24 17:13:13 +00:00
Brecht Van Lommel
30be716fc8 Pole Target for IK
==================

This adds an extra target to the IK solver constraint to define the
roll of the IK chain.

http://www.blender.org/development/current-projects/changes-since-244/inverse-kinematics/

Also fixes a crashes using ctrl+I to set an IK constraint on a bone
due to the recent constraints refactor.
2007-10-24 14:58:31 +00:00
Campbell Barton
05768a38e5 ==Image Stamp - Patch by GSR==
When using non opaque background, some overlap lines appear
due to filling some pixel lines twice. Before it did not matter
as only opaque bg was allowed, and it even compacted the text
a bit. The fix spreads a bit the lines to overcome the issue.
As a plus no text should touch the top edge ever (slashes did,
for example).

Compare:
http://www.infernal-iceberg.com/blender/stamp-alpha-overlap.png
http://www.infernal-iceberg.com/blender/stamp-alpha-cleanup.png
2007-10-24 08:45:23 +00:00
Campbell Barton
94dfb616a9 Patch by GSR #7628, I also added alpha for text background.
The list of changes (some are fixes):
- Properly horizontally centered tags in all fields (bug?).
- File area does not have trailing space and has leading "File " at
start instead (probably a bug).
- Small separation between to time related fields, space saving.
- Removed colons, for consistency and space saving again.
- Frame field is zero aligned for higher visual stability.
- Marker name shows a rarer name, "<none>" (using <> is typical for cases
in which there is nothing: <none>, <empty>, <blank>, etc).
- Top area for misc info that can be really long (file, note and render date).
- Bottom area for more constantly changing but short ones (marker, SMPTE,
frame, camera and scene).
- Only render date moves a line (when note field is not used), and frame one
moves if no SMPTE (still in same line, so no big jump), for extra visual
stability (marker is fixed, assuming most people would show frame and or
SMPTE).
- ISO 8601 date format for render date, localization independant.

Comparision images:
http://www.infernal-iceberg.com/blender/stamp-original.png
http://www.infernal-iceberg.com/blender/stamp-cleanup.png
2007-10-23 22:51:50 +00:00
Daniel Genrich
8bca9e5977 Another WIP commit. Building up bounding volume API 2007-10-23 22:38:07 +00:00
Joshua Leung
cf8032f315 == PyConstraints - Now working again ==
I've finally traced down the causes of several of the bugs which caused PyConstraints to work incorrectly (or not at all).

* Freeing is now done using BLI_freelistN inside the pycon_free function, instead of looping through the targets ourselves. This fixes all of those Memblock free: pointer not in list errors.
* BPY_pyconstraint_update now correctly creates/frees the constraint's targets as needed. Previously, it was creating/removing the wrong number of targets. Also, pyconstraints no longer get disabled when using armatures (not bones)
* The panel drawing was also not working right, as there were still some offset issues.
2007-10-23 08:23:57 +00:00
Joshua Leung
bf68055b93 Compiler warnings silencing - mostly uninitialised vars 2007-10-23 06:24:29 +00:00
Mal Duffin
9e0cecc337 ConvertToMesh for text ( and possibly curves ) was generating the wrong normals - the fact that the generated model was being set to double sided helped hide this.
To test for this in Blender, just add text, TAB out of edit mode, then convert to mesh ( ALT+C ), and press P for the game engine.  Alternatively select Textured Draw Mode.  You'll notice that the text is only visible from the back.  This patch reverses this, to be more correct.

Based on discussions on IRC, I'm now trying to fix another aspect of the extrude code - the fact that the faces at the front and back of the extruded curve face the same way ( ie one of them will be wrong ).  I'll keep working on this, but if someone can help out, feel free!
2007-10-23 00:02:29 +00:00
Daniel Genrich
0a0b976b41 svn merge -r 12294:12347 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-22 23:05:09 +00:00
Daniel Genrich
5a6ffd8441 WIP commit, (just in case my HD breaks down). Don't expect anything to work. Code crashes and sim doesn't work ;) 2007-10-22 22:50:32 +00:00
Chris Want
03650fcf0b == CMake ==
Fix by Stéphane SOPPERA to find bmfont includes.
2007-10-22 20:54:19 +00:00
Hamed Zaghaghi
21eb3e11e0 2d-Filters feature and actuators. 2007-10-22 20:24:26 +00:00
Campbell Barton
2dee6b04c7 stub added by Hamed Zaghaghi in the ge branch, (fix own error) 2007-10-22 16:16:16 +00:00
Ton Roosendaal
0361b80525 Missing check for constraint target (ct->tar) caused crash.
Caused in Joshua's work on constraint, committed yesterday.
2007-10-22 14:30:40 +00:00
Campbell Barton
81effa9e2f small changes suggested by ton ans gsr 2007-10-22 13:26:47 +00:00
Joshua Leung
2cc41ad890 == Action/NLA Transform ==
Added a new auto-snapping mode: snap to nearest marker. 
This mode can be toggled using the ALTKEY.
2007-10-22 05:32:17 +00:00
Joshua Leung
f721ce13fb == Action Constraint ==
Now the Action Constraint can be applied to Objects as well as Bones!
2007-10-22 02:43:07 +00:00
Joshua Leung
6422a740c2 == Constraints System - Recode 2 ==
Once again, I've recoded the constraints system. This time, the goals were:
* To make it more future-proof by 'modernising' the coding style. The long functions filled with switch statements, have given way to function-pointers with smaller functions for specific purposes.
* To make it support constraints which use multiple targets more readily that it did. In the past, it was assumed that constraints could only have at most one target.

As a result, a lot of code has been shuffled around, and modified. Also, the subversion number has been bumped up.

Known issues:
* PyConstraints, which were the main motivation for supporting multiple-targets, are currently broken. There are some bimport() error that keeps causing problems. I've also temporarily removed the doDriver support, although it may return in another form soon. 
* Constraints BPy-API is currently has a few features which currently don't work yet
* Outliner currently only displays the names of the constraints instead of the fancy subtarget/target/constraint-name display it used to do. What gets displayed here needs further investigation, as the old way was certainly not that great (and is not compatible with the new system too)
2007-10-21 23:00:29 +00:00
Hamed Zaghaghi
e979e6ee4d to solve blenderplayer build error 2007-10-21 21:47:10 +00:00
Peter Schlaile
477a8c30fa == Core ==
Fixed fixup code in readfile, that makes old files load with
correct FPS.
2007-10-21 19:19:53 +00:00
Daniel Genrich
dfd9c71b56 Code comments add to collision interface 2007-10-21 17:20:31 +00:00
Daniel Genrich
5bd2f5b08e Fixed read/writing of blendfiles with collision modifier (saving not supported itm), also changed naming 2007-10-21 16:53:25 +00:00
Daniel Genrich
c8fe3c95a3 Forgot some new file for seperated collisions 2007-10-21 16:39:07 +00:00
Daniel Genrich
8dbc71020c Disabled Cloth collision detection because of almost complete rewrite/seperation of the collision system like we discussed on the sprint. You can enable position caching/collision object now then enableing it as an deflection object. Problem: Some GUI glitch in the modifier stack, please help :) 2007-10-21 16:38:13 +00:00
Andrea Weikert
c4218a810c added missing include dir from stampinfo patch to msvc project files and SConscript file. 2007-10-21 16:17:33 +00:00
Campbell Barton
969c3e1cf6 change in the include for stamping (image.c needs to call font drawing) 2007-10-21 15:48:09 +00:00
Peter Schlaile
a0390e5cc3 == Core ==
This adds fractional FPS support to blender and should finally
make NTSC work correctly.

NTSC has an FPS of 30.0/1.001 which is approximately 29.97 FPS.
Therefore, it is not enough to simply make frs_sec a float, since
you can't represent this accurately enough. 
I added a seperate variable frs_sec_base and FPS is now 
frs_sec / frs_sec_base.

I changed all the places, where frs_sec was used to my best knowledge.

For convenience sake, I added several macros, that should make life
easier in the future:

FRA2TIME(a) : convert frame number to a double precision time in seconds
TIME2FRA(a) : the same in the opposite direction
FPS         : return current FPS as a double precision number 
              (last resort)

This closes bug #6715 
Standard framerates not supported / breaks sync -- 23.967 29.967 etc.

https://projects.blender.org/tracker/?func=detail&aid=6715&group_id=9&atid=125

Please give this heavy testing with NTSC files, quicktime in/export
and the python interface.
Errors are most probably only spotted on longer timelines, so that is
also important.

The patch was tested by Troy Sobotka and me, so it most probably should
work out of the box, but wider testing is important, since errors are
very subtle.

Enjoy!
2007-10-21 15:42:08 +00:00
Campbell Barton
46deddcc62 Image Stamping patch by Diego (and peach request)- stamps image info into metadata and optionally
draws into the
frame.

This patch includes some changes I made...   
* use blenders bitmap fonts (rather then own fonts)
* select font size
* user interface layout changes
* Marker as another image stamp option

Also added some new API calls   
BMF_GetFontHeight(font);
BMF_DrawStringBuf(...);  - so we can draw text into an imbuf's image buffer.
get_frame_marker(frame) - get the last marker from the frame.
IMB_rectfill_area(...) - fill in an image buffer with a rectangle area of color.

TODO - draw stamp info in 3d view, at the moment it just displays in the animation.
2007-10-20 16:17:27 +00:00
Daniel Genrich
f44b09b7eb svn merge -r 12208:12294 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-18 23:27:31 +00:00
Daniel Genrich
5b019072a8 Springs are in a dynamic list now, New function cloth_add_spring() for easier access to spring handling, cleared up names, functions, code. Collisions can be enabled/disabled for cloth objects now 2007-10-18 23:12:30 +00:00
Jens Ole Wund
d407f5ae81 added point to edge collision in case point to face missed
/* special hidden feature! shrink to fit */
if (G.rt > 500){
	scale = (G.rt - 500) / 100.0f;
}
-- shrink a T shirt to fit .. evil grin
-- by the way i did set up the rule 'if any *outer object* hits no *inner* will be regarded' ... pretty poor IMHO .. well but it works
2007-10-18 22:47:55 +00:00
Brecht Van Lommel
e844ee5e54 Bugfix:
The roll of a B-Bone relative to a previous regular bone was not matched
correctly.
2007-10-17 17:53:59 +00:00
Campbell Barton
4fa17b2eb4 pyconstraints doTarget function was getting an uninitialized matrix. 2007-10-15 14:19:11 +00:00
Brecht Van Lommel
565316909e Bugfix:
Object constraints with a driven influence ipo were not being evaluated
properly. The code for adding the depsgraph relation and updating without
time changes was simply missing.
2007-10-15 10:36:30 +00:00
Ken Hughes
ff5fd2eb38 Tools
-----
Bugfix #7493:  boolean difference operator was being applied in the wrong
order (difference modifier worked correctly).
2007-10-14 20:58:57 +00:00
Brecht Van Lommel
4f96108137 Fix for error in recent b-bone rest pose commit. 2007-10-10 23:36:58 +00:00
Campbell Barton
e59bf9fa6f initial splitting of egde/face response 2007-10-10 09:33:34 +00:00
Brecht Van Lommel
87b186e6e7 Make B-Bones not deform in rest position by default.
B-Bones already deformed the mesh in the armature rest position, which is
unconvenient. For backwards compatibility existing .blend files still have
a button for the old behavior enabled.

(peach feature request)
2007-10-10 09:00:47 +00:00
Matt Ebb
2062aa6838 * Fix for NLA with Map Old/Map New
NLA wasn't getting the correct strip start/end times when Map 
Old/Map New was being used. This fixes it and makes the animation
get scaled properly.
2007-10-08 09:24:29 +00:00
Daniel Genrich
0efce1fa79 Merge with trunk: svn merge -r 12182:12207 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-04 11:22:54 +00:00
Daniel Genrich
626edd8de8 New: Collision detection for inter-timestep-collisions for edge-edge contacts. 2007-10-04 00:19:59 +00:00
Daniel Genrich
265572744e New: Collision detection for inter-timestep-collisions for triangle-point contacts. No response yet though. 2007-10-03 22:43:26 +00:00
Daniel Genrich
62107985dd Recoded cache, fixed some crashes there 2007-10-03 13:58:05 +00:00
Daniel Genrich
179a1b5bbc Compile fix for bug on OSX reported by Jens Verwiebe 2007-10-02 16:55:10 +00:00
Daniel Genrich
a5db16f913 Fixed crash with ipo'ed collision object 2007-10-02 09:47:08 +00:00