11 years agoBGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)
Benoit Bolsee [Wed, 1 Oct 2008 07:55:02 +0000 (07:55 +0000)]
BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)

Implementation of the PHY_IPhysicsController::SetMargin(),
GetMargin(), SetRadius() and GetRadius() for Bullet and Sumo
to allow resetting the Near sensor radius. For bullet use
the new setUnscaledRadius() function to change sphere radius.

In pPreparation of a Fh constraint actuator:
- Add KX_IPhysicsController::GetRadius()
- Fix implementation of KX_BulletPhysicsController::GetVelocity()
  (velocity at a point in geometric coordinate)
- Don't try to set velocity on static object (Bullet will assert)
- Add KX_GameObject::GetVelocity() for C access to local velocity

11 years agoUpdate MSVC project file for Bullet soft body. Strange, I though I already fixed...
Benoit Bolsee [Wed, 1 Oct 2008 07:04:10 +0000 (07:04 +0000)]
Update MSVC project file for Bullet soft body. Strange, I though I already fixed them.

11 years ago+ hook up a few more parameters, that can be useful for Bullet soft bodies
Erwin Coumans [Wed, 1 Oct 2008 06:36:17 +0000 (06:36 +0000)]
+ hook up a few more parameters, that can be useful for Bullet soft bodies
+ work-in-progress to hook up cluster constraints (they are better than node/vertex pinning, because they maintain a proper world coordinate system)

11 years agoBugfix #17721: Action Strips added from scripts don't work properly unless at least...
Joshua Leung [Wed, 1 Oct 2008 00:14:28 +0000 (00:14 +0000)]
Bugfix #17721: Action Strips added from scripts don't work properly unless at least one strip has already been added by hand.

Synced the behaviour of the PyAPI when adding strips with the behaviour of UI.

11 years agoBugfix #17717: IPOs / Sequencer / Markers: deleting an IPO delete also selected markers
Joshua Leung [Wed, 1 Oct 2008 00:02:06 +0000 (00:02 +0000)]
Bugfix #17717: IPOs / Sequencer / Markers: deleting an IPO delete also selected markers

Final attempt at solving this problem. This time I've decided to separate the 'delete markers' from the 'delete keys' hotkeys, as it proved to be too problematic for users.

The new hotkey for deleting markers is "Shift-XKEY". (or Shift-Delkey)
P.S. I know that 'Shift' is usually used for 'add' operations, but this will have to do for now...


Also, rearranged button order in Timeline header a bit to group keyframing buttons together more.

11 years agoadd support for Bullet soft body constraints against a Bullet rigid body, as well...
Erwin Coumans [Tue, 30 Sep 2008 23:34:25 +0000 (23:34 +0000)]
add support for Bullet soft body constraints against a Bullet rigid body, as well as 'fixing' it. Just use the existing rigid body joint to use it. For now, it searches the closest node/vertex to the pivot. So you can use multiple constraints/joint to attach a cloth, soft body etc.

11 years agoadd setUnscaledRadius for btSphereShape
Erwin Coumans [Tue, 30 Sep 2008 22:05:12 +0000 (22:05 +0000)]
add setUnscaledRadius for btSphereShape

11 years agoFix for bug #17691: edgesplit was crashing on windows on large meshes
Brecht Van Lommel [Tue, 30 Sep 2008 17:06:41 +0000 (17:06 +0000)]
Fix for bug #17691: edgesplit was crashing on windows on large meshes
due to stack overflow.

11 years agoKeyframing:
Joshua Leung [Tue, 30 Sep 2008 12:30:56 +0000 (12:30 +0000)]

- More cleanups, to move the return of success from insertkey to take into account results of 'only needed' keying option
- Added a 'better' test for size of area than the previous one (for use with the keyframing buttons in the TimeLine)
- Moved the checks for Action/IPO editors to commonkey_context_get() so that the keyframing buttons in TimeLine could also consider using these editor's keyframing methods too

11 years agoA few cleanups in keyframing.c
Joshua Leung [Tue, 30 Sep 2008 12:03:31 +0000 (12:03 +0000)]
A few cleanups in keyframing.c
- Added missing update calls for buttons window keyframing. This should get rid of all those sporadic update problems (using a different keyingset would result in no curve being added)

11 years agoBugfix:
Joshua Leung [Tue, 30 Sep 2008 11:52:59 +0000 (11:52 +0000)]

Keyframing from Buttons Window was broken for Materials/Lamps/Worlds due to a mixup regarding the correct adrcodes for texture-slots.

11 years agoAction Editor:
Joshua Leung [Tue, 30 Sep 2008 10:54:12 +0000 (10:54 +0000)]
Action Editor:

* Grease Pencil Mode - now includes the area-ID into the name string. While the numbers currently don't mean much (though they do make it easier to distinguish between views to more than before), they could become handy if/when PyAPI access to Grease Pencil data comes into handy

* Copy + Paste bugfixes
- When there was a collapsed group, it was impossible to get the keyframes in the keyframe summary to be copied too. This fix shouldn't cause any problems with other things...
- Feature to allow pasting to any channel without doing name matching was not working

11 years agoFix for bug #13624: knife cut with vertex snapping was broken.
Brecht Van Lommel [Tue, 30 Sep 2008 07:01:37 +0000 (07:01 +0000)]
Fix for bug #13624: knife cut with vertex snapping was broken.

11 years agoFix for bug #17302: subsurf + particle size vertex groups did not
Brecht Van Lommel [Tue, 30 Sep 2008 06:12:47 +0000 (06:12 +0000)]
Fix for bug #17302: subsurf + particle size vertex groups did not
work correct, also refactored some code here to make it more clear.

11 years agoWITH_ELBEEM diabled wasnt working with cmake
Campbell Barton [Tue, 30 Sep 2008 05:05:50 +0000 (05:05 +0000)]
WITH_ELBEEM diabled wasnt working with cmake

11 years agomodify BLI_convertstringcode so windows paths are converted from C:\foo.jpg to /c...
Campbell Barton [Tue, 30 Sep 2008 04:08:00 +0000 (04:08 +0000)]
modify BLI_convertstringcode so windows paths are converted from C:\foo.jpg to /c/foo.jpg
since there is C:\ prefix cant exist on a unix system this wont break any files.

11 years ago* free bullet-softbody was using free softbody function.
Campbell Barton [Mon, 29 Sep 2008 23:46:01 +0000 (23:46 +0000)]
* free bullet-softbody was using free softbody function.
* mistake from own changes to curves, new curves were being added with too low resolution.
* removed warnings I added recently

11 years agoFix for part of bug #17521: incorrect uv coordinates for particle
Brecht Van Lommel [Mon, 29 Sep 2008 23:33:27 +0000 (23:33 +0000)]
Fix for part of bug #17521: incorrect uv coordinates for particle
density controlled by a texture.

11 years agoFix for bug #17713: touch/no override for rendering was broken.
Brecht Van Lommel [Mon, 29 Sep 2008 22:31:47 +0000 (22:31 +0000)]
Fix for bug #17713: touch/no override for rendering was broken.

11 years agoFix for bug #17712: fluid button activation crash.
Brecht Van Lommel [Mon, 29 Sep 2008 22:07:13 +0000 (22:07 +0000)]
Fix for bug #17712: fluid button activation crash.

11 years agoAdd 2 items to CTL-A menu: Scale to ObData and Rotation to ObData. These options...
Benoit Bolsee [Mon, 29 Sep 2008 20:13:40 +0000 (20:13 +0000)]
Add 2 items to CTL-A menu: Scale to ObData and Rotation to ObData. These options allows to apply separately the scale and the rotation to the object data. Usefull to physics compound objects that do not support scaling.

11 years agoDo not include manifest file for x64 + Windows, was creating errors on other system
Daniel Genrich [Mon, 29 Sep 2008 18:10:42 +0000 (18:10 +0000)]
Do not include manifest file for x64 + Windows, was creating errors on other system

11 years agoBugfix #17711
Ton Roosendaal [Mon, 29 Sep 2008 17:55:11 +0000 (17:55 +0000)]
Bugfix #17711

SunSky didn't include skycolor in raytrace.
Note: there seems to be  an error in sunsky when looking straight down,
so this option requires raytracing stuff not in outer space. :)

11 years agoBGE patch: fix force application on soft body. Force is applied on each node, it...
Benoit Bolsee [Mon, 29 Sep 2008 17:46:25 +0000 (17:46 +0000)]
BGE patch: fix force application on soft body. Force is applied on each node, it must be reduced by the same extend.

11 years agoresolve some compiler warnings with intel c/c++ compiler
Campbell Barton [Mon, 29 Sep 2008 17:08:11 +0000 (17:08 +0000)]
resolve some compiler warnings with intel c/c++ compiler
* subsurf code had a lot of unused variables, removed these where they are obviously not needed. commented if they could be useful later.
* some variables declorations hide existing variables (many of these left), but fixed some that could cause confusion.
* removed unused vars
* obscure python memory leak with colorband.
* make_sample_tables had a loop running wasnt used.
* if 0'd functions in arithb.c that are not used yet.
* made many functions static

11 years agoUpdated color calculus for sunsky
Ton Roosendaal [Mon, 29 Sep 2008 17:03:24 +0000 (17:03 +0000)]
Updated color calculus for sunsky

- removed ugly clamping function (it was dividing XYZ based on max of
  one of the values)
- added option to use Exposure, this only works for brightness (Y).
  results look very pleasant, foggy and hazy results are possible.
  with exposre==0, no exposure happens for HDR extreme range skies,
  this is how yafray rendered it.
- added menu for choosing color spaces (CIE = modern lcds)

Please review! (and yes i know it's still not in World :)

11 years agoMove Korean file from kr to ko also updated it to newer file.
Kent Mein [Mon, 29 Sep 2008 15:02:20 +0000 (15:02 +0000)]
Move Korean file from kr to ko also updated it to newer file.


11 years ago[#17703] Segfault on fluid activation.
Daniel Genrich [Mon, 29 Sep 2008 14:44:12 +0000 (14:44 +0000)]
[#17703] Segfault on fluid activation.

11 years ago[#17707] Slow Cloth Baking
Daniel Genrich [Mon, 29 Sep 2008 14:20:27 +0000 (14:20 +0000)]
[#17707] Slow Cloth Baking

11 years agoDXF-Exporter script - initial commit
Remigiusz Fiedler [Mon, 29 Sep 2008 14:03:15 +0000 (14:03 +0000)]
DXF-Exporter script - initial commit
 Built on "Stanis Python Library for generating dxf drawing":
v1.25 - 2008.09.28 by migius
 - modif FACE class for r12
 - add mesh-polygon -> Bezier-curve converter (Yorik's code)
 - add support for curves ->POLYLINEs
 - add "3d-View to Flat" - geometry projection to XY-plane
v1.24 - 2008.09.27 by migius
 - add start UI with preferences
 - modif POLYLINE class for r12
 - changing output format from r9 to r12(AC1009)
v1.23 - 2008.09.26 by migius
 - add finish message-box
v1.22 - 2008.09.26 by migius
 - add support for curves ->LINEs
 - add support for mesh-edges ->LINEs
v1.21 - 2008.06.04 by migius
 - initial adaptation for Blender
v1.1 (20/6/2005) by
 - Python library to generate dxf drawings

11 years agoBugfix #17708: layer IPOs doesn't return the correct layer anymore
Joshua Leung [Mon, 29 Sep 2008 11:39:58 +0000 (11:39 +0000)]
Bugfix #17708: layer IPOs doesn't return the correct layer anymore

When doing IPO-cleanup, added two break statements to hopefully optimise the evaluation process a teeny-weeny bit. However, that caused more problems than it was worth!

11 years agoBugfix #17696
Ton Roosendaal [Mon, 29 Sep 2008 10:26:20 +0000 (10:26 +0000)]
Bugfix #17696

- Area lamp with 1 sample still used an offset for the first sample
- Sample buttons were not visible for area without shadow.

11 years agorewiten a if statment
Joilnen Leite [Mon, 29 Sep 2008 09:54:26 +0000 (09:54 +0000)]
rewiten a if statment

11 years agoBugfix #17687
Ton Roosendaal [Mon, 29 Sep 2008 09:50:16 +0000 (09:50 +0000)]
Bugfix #17687

Scaled cameras get orthogonalized on render, and did not get a signal
to refresh the matrix, resulting in wrong display of camera in 3d win.

11 years agoBugfix:
Joshua Leung [Mon, 29 Sep 2008 08:11:26 +0000 (08:11 +0000)]

Recoded pidhash's recent Pad0 (Lastview) commits (r.16802 and r.16810). It was causing major issues with Ortho perspective + rotating the view with the MMB. Setting G.vd->view to -1 was not such a valid way to do so (and also, this didn't play nicely with smoothview).

This feature should now work correctly, though there are still one or two places where it doesn't always seem totally correct yet.
The basic idea of this feature, is that after going into camera mode (Pad0), pressing Pad0 again lets you go back to the view as you had it before entering camera mode.

11 years agodon't crash when trying to make a soft body 'fh' object
Erwin Coumans [Mon, 29 Sep 2008 08:00:38 +0000 (08:00 +0000)]
don't crash when trying to make a soft body 'fh' object

11 years agoClarify that in Bullet, the 'radius' is used for both sphere bounds, but also for...
Erwin Coumans [Mon, 29 Sep 2008 07:17:12 +0000 (07:17 +0000)]
Clarify that in Bullet, the 'radius' is used for both sphere bounds, but also for Fh/Rot Fh.
So even if other bound types are used (such as box etc), the radius will be used for Fh/Rot Fh.

11 years agoAdd Fh/Rot Fh to Bullet.
Erwin Coumans [Mon, 29 Sep 2008 06:58:49 +0000 (06:58 +0000)]
Add Fh/Rot Fh to Bullet.

11 years agofixing a little problem with grid after last view commit
Joilnen Leite [Mon, 29 Sep 2008 04:36:18 +0000 (04:36 +0000)]
fixing a little problem with grid after last view commit

11 years agoUpdate the Bullet/game buttons_bullet, to better reflect usage.
Erwin Coumans [Mon, 29 Sep 2008 04:14:47 +0000 (04:14 +0000)]
Update the Bullet/game buttons_bullet, to better reflect usage.
1) Anisotropic friction works for static and dynamic objects
2) For soft bodies, assume triangle mesh if no bounds a chosen
3) Form factor == inertia scaling factor, it was actually hooked up in Bullet
4) Only show 'radius' if sphere is chosen, or no bounds+dynamics (== sphere bounds)

11 years agoPatch #17500: fixes: multiple IK's on bone + targetless IK
Joshua Leung [Mon, 29 Sep 2008 04:00:42 +0000 (04:00 +0000)]
Patch #17500: fixes: multiple IK's on bone + targetless IK
Submitted by: Teppo Kansala (teppoka)

See patch report for details of fixes.

Note: the patch submitter's test files were quite nice, and would be good to have in our regression suite.

11 years agoadded anisotropic friction support for Bullet. Both for static and dynamic objects
Erwin Coumans [Mon, 29 Sep 2008 03:09:03 +0000 (03:09 +0000)]
added anisotropic friction support for Bullet. Both for static and dynamic objects

11 years agotests for 2d triangle and quad intersection would only work if the points were ordere...
Campbell Barton [Mon, 29 Sep 2008 02:16:18 +0000 (02:16 +0000)]
tests for 2d triangle and quad intersection would only work if the points were ordered clockwise.
now return 1 for clockwise, -1 for counter-clockwise and 0 for no intersection.

11 years agoUpdates to with some hotkeys I've added/changed over past few releases...
Joshua Leung [Mon, 29 Sep 2008 00:47:21 +0000 (00:47 +0000)]
Updates to with some hotkeys I've added/changed over past few releases (note, this doesn't cover all of them yet)

11 years agoAdding last view feature for PAD0
Joilnen Leite [Mon, 29 Sep 2008 00:44:33 +0000 (00:44 +0000)]
Adding last view feature for PAD0

11 years agoSecond try at committing IPO code cleanups...
Joshua Leung [Sun, 28 Sep 2008 23:17:44 +0000 (23:17 +0000)]
Second try at committing IPO code cleanups...

11 years agoA previous commit by me (16701) broke keyed- and none-physics particles or at least...
Janne Karhu [Sun, 28 Sep 2008 19:53:37 +0000 (19:53 +0000)]
A previous commit by me (16701) broke keyed- and none-physics particles or at least made them do funny things.

11 years agoBugfix, irc report from slw_sl:
Ton Roosendaal [Sun, 28 Sep 2008 17:05:58 +0000 (17:05 +0000)]
Bugfix, irc report from slw_sl:

Instert "avail" on object without ipo crashed. Null check missing.

11 years agoreverting revision 16784 that broke compilation. Aligorith, please fix and recommit
Martin Poirier [Sun, 28 Sep 2008 15:37:37 +0000 (15:37 +0000)]
reverting revision 16784 that broke compilation. Aligorith, please fix and recommit

11 years agofix header text
Remigiusz Fiedler [Sun, 28 Sep 2008 13:51:30 +0000 (13:51 +0000)]
fix header text

11 years agoIPO System - Code Cleanup and Commenting:
Joshua Leung [Sun, 28 Sep 2008 12:01:41 +0000 (12:01 +0000)]
IPO System - Code Cleanup and Commenting:

Went through and commented all the code in ipo.c, tidying up formating and coding style in places, and also rearranging to have a more logical order in some places. There shouldn't be any major issues arising from this commit.

11 years agomake gui backwards compatible with this weeks softbody blend files
Erwin Coumans [Sun, 28 Sep 2008 03:17:45 +0000 (03:17 +0000)]
make gui backwards compatible with this weeks softbody blend files

11 years agoenable -noaudio option, so it actually works (and doesn't get overwritten by a game...
Erwin Coumans [Sun, 28 Sep 2008 03:07:13 +0000 (03:07 +0000)]
enable -noaudio option, so it actually works (and doesn't get overwritten by a game flag). audio initialization delays startup of game engine 2 seconds
add -nojoystick commandline option: it takes 5 seconds everytime to start the game engine, while there IS no joystick.

In other words: blender -noaudio -nojoystick improves workflow turnaround times for P - ESC from 7 seconds to 1 second!

Improved Bullet soft body advanced options, still work-in-progress. Make sure to create game Bullet soft bodies from scratch, it is not compatible with last weeks builds.

11 years agoCommiting fftw lib into extern for ocean patch
Daniel Genrich [Sun, 28 Sep 2008 02:17:05 +0000 (02:17 +0000)]
Commiting fftw lib into extern for ocean patch

11 years agoBGE patch: create new BulletSoftBody data block to store bullet soft body specific...
Benoit Bolsee [Sat, 27 Sep 2008 21:52:20 +0000 (21:52 +0000)]
BGE patch: create new BulletSoftBody data block to store bullet soft body specific parameters.

Previously we tried to share the parameters with the
blender render soft body but there were too many differences.

MSVC project files updated.

11 years agoCleaned up unused variables and functions.
Ian Thompson [Sat, 27 Sep 2008 19:57:32 +0000 (19:57 +0000)]
Cleaned up unused variables and functions.

11 years agoGlobal Clipboard Patch (17370)
Ian Thompson [Sat, 27 Sep 2008 19:47:38 +0000 (19:47 +0000)]
Global Clipboard Patch (17370)
Text, ID names and RGB colours in the interface are now copied to and pasted from the system clipboard allowing them to be copied from and pasted into the text editor. Colours are encoded as floats in the form [r.rrrrrr, g.gggggg, b.bbbbbb] making them easy to use in Python scripts.

11 years agoFixed recent changes to text editor which broke building with MSVC and also cleaned...
Ian Thompson [Sat, 27 Sep 2008 19:20:32 +0000 (19:20 +0000)]
Fixed recent changes to text editor which broke building with MSVC and also cleaned up some compiler warnings. (Actually, Benoit seems to have beaten me to it, but I found moving the #includes worked without undefining INT)

The header button is great but it didn't function for 2 seconds between clicks due to the old code waiting between modification checks. Fixed that now too :)

11 years agoFix compilation problem in Windows and update MSVC project files
Benoit Bolsee [Sat, 27 Sep 2008 19:05:00 +0000 (19:05 +0000)]
Fix compilation problem in Windows and update MSVC project files

11 years agotext editor changes
Campbell Barton [Sat, 27 Sep 2008 15:32:28 +0000 (15:32 +0000)]
text editor changes
* out of sync text dosnt automatically popup a menu anymore since it was too easy to click on it without intending to, moved this to an alert button on the header.
* "_" character was acting as a delimiter, but in python its not.
* renamed "File" to "Text" (so as not to confuse with blenders file menu)
* added redraw_alltext function to remove many duplicate loops where every text display is redrawn.

11 years agolinear ipo curves were still using their handles to calculate an extrapolated value.
Campbell Barton [Sat, 27 Sep 2008 10:08:19 +0000 (10:08 +0000)]
linear ipo curves were still using their handles to calculate an extrapolated value.
It would only work when the bezier point had its handles set to auto before changing to a linear IpoCurve since the handles were being recalculated during transform.

11 years agoBugfix #17693: Visual Rot Keying Broken
Joshua Leung [Sat, 27 Sep 2008 09:11:44 +0000 (09:11 +0000)]
Bugfix #17693: Visual Rot Keying Broken

The problem was due to a wrong number of IPO-channels getting keyed for the quaternion channels (3 instead of 4). Was a simple copy+paste error.

Also added in check for using "Limit Distance" constraint when using VisualKeying.

11 years ago[#17692] Text Editor Line Number Background theme option
Campbell Barton [Sat, 27 Sep 2008 08:15:10 +0000 (08:15 +0000)]
[#17692] Text Editor Line Number Background theme option
from Dalai Felinto (dfelinto)

11 years agoLots of mingw/gcc compiler warning fixes
Joshua Leung [Sat, 27 Sep 2008 06:49:10 +0000 (06:49 +0000)]
Lots of mingw/gcc compiler warning fixes

11 years agoAuto-Keyframing (per scene):
Joshua Leung [Sat, 27 Sep 2008 06:29:52 +0000 (06:29 +0000)]
Auto-Keyframing (per scene):

Now auto-keyframing can be enabled/disabled per scene (with the insertion mode also stored per scene). The flags used when insertng keyframes are still stored in the user-prefs.

New scenes have their auto-keyframing settings initialised from the user-preferences.

11 years agoKeyframing:
Joshua Leung [Sat, 27 Sep 2008 04:51:42 +0000 (04:51 +0000)]

* Tidied up code a bit to remove an extra var declaration that may have been causing problems with Visual Keying

* Added buttons to Insert/Delete keyframes from current frame into Timeline header. Note that it preferentially works will insert keyframes for a 3d-view (if it exists), otherwise it "should" take the largest area available.

11 years agoforce collision bound type to be convex hull or concave triangle mesh for soft bodies
Erwin Coumans [Sat, 27 Sep 2008 00:36:18 +0000 (00:36 +0000)]
force collision bound type to be convex hull or concave triangle mesh for soft bodies
set collision margin between soft and mesh back to .3, smaller is not useable (yet)

11 years agofixed some outstanding issues with Bullet soft bodies:
Erwin Coumans [Fri, 26 Sep 2008 23:20:31 +0000 (23:20 +0000)]
fixed some outstanding issues with Bullet soft bodies:
1) re-allocate a pool allocator, if one of the soft body collision algorithms is larger than max pool element size
2) manage child shapes properly, and call RemoveReferences on the m_sparsesdf

11 years agofixed soft body collision against concave triangle meshes.
Erwin Coumans [Fri, 26 Sep 2008 21:49:26 +0000 (21:49 +0000)]
fixed soft body collision against concave triangle meshes.

11 years agoavoid adding degenerate faces to a Bullet soft body
Erwin Coumans [Fri, 26 Sep 2008 21:27:33 +0000 (21:27 +0000)]
avoid adding degenerate faces to a Bullet soft body

11 years agoMerge of SimpleDeform modifier from soc-2008-jaguarandi branch
Andre Susano Pinto [Fri, 26 Sep 2008 21:21:20 +0000 (21:21 +0000)]
Merge ... SimpleDeform modifier from soc-2008-jaguarandi branch

11 years agoUpdate MSVC project files
Benoit Bolsee [Fri, 26 Sep 2008 19:38:07 +0000 (19:38 +0000)]
Update MSVC project files

11 years agonurbs surface resolution is now per segment rather then being distributed over the...
Campbell Barton [Fri, 26 Sep 2008 19:00:49 +0000 (19:00 +0000)]
nurbs surface resolution is now per segment rather then being distributed over the whole surface.
This is what 2D do alredy and makes resolution settings more like subsurf level.

- This makes it impossible to have a lower resolution output then the nurbs cage, however this dosnt seem a very useful feature.
- Using the do-versions from recent curve interpolation fix.

Tested with these files.

11 years agoBGE patch: local/global flag to distance contraint actuator.
Benoit Bolsee [Fri, 26 Sep 2008 18:03:14 +0000 (18:03 +0000)]
BGE patch: local/global flag to distance contraint actuator.

Previously the distance constraint actuator was always working
in local axis. The local flag allows to cast the ray along a
world axis (when the flag is not selected).
The N flag works differently in this case: only the object
orientation is changed to be parallel to the normal at the hit

The linear velocity is now changed so that the speed along the
ray axis is null. This eliminates the need to compensate the
gravity when casting along the Z axis.

11 years agoUpdate MSVC project files
Benoit Bolsee [Fri, 26 Sep 2008 17:46:55 +0000 (17:46 +0000)]
Update MSVC project files

11 years agoBullet build system fixes: add gimpact to the makefiles, and fix
Brecht Van Lommel [Fri, 26 Sep 2008 16:43:50 +0000 (16:43 +0000)]
Bullet build system fixes: add gimpact to the makefiles, and fix
blenderplayer linking for scons.

11 years agoMade simple deform limits be relative to BV of object
Andre Susano Pinto [Fri, 26 Sep 2008 16:14:35 +0000 (16:14 +0000)]
Made simple deform limits be relative to BV of object

11 years agoBugfix: the game player did not initialize tiff and quicktime, so loading
Brecht Van Lommel [Fri, 26 Sep 2008 14:54:21 +0000 (14:54 +0000)]
Bugfix: the game player did not initialize tiff and quicktime, so loading
those file formats did not work. Also made sure G.order is initialized as
otherwise some reading tiff goes wrong.

11 years agoFixed a UI bug on shrinkwrap constraint
Andre Susano Pinto [Fri, 26 Sep 2008 13:47:41 +0000 (13:47 +0000)]
Fixed a UI bug on shrinkwrap constraint
Fixed vertexs weights on simpledeform modifier (they weren't working if the modifier was the first on stack, since it wasnt receiving a DerivedMesh with vertex weights)

11 years agoPatch #17346: Align bones in edit mode
Joshua Leung [Fri, 26 Sep 2008 08:51:05 +0000 (08:51 +0000)]
Patch #17346: Align bones in edit mode
Submitted by: Lorenzo Pierfederici (lento)

This patch adds the CTRL-ALT-A hotkey to align bones in armature edit mode.

It works the same way as parenting: selected bones will be aligned with active bone, if only one bone is selected it
will be aligned with its parent (if any)


11 years agoscons/mingw linking fixes with bullet - adjusting priorities to find libs
Joshua Leung [Fri, 26 Sep 2008 08:40:35 +0000 (08:40 +0000)]
scons/mingw linking fixes with bullet - adjusting priorities to find libs

11 years ago* split collision lib into its subparts
Nathan Letwory [Fri, 26 Sep 2008 08:05:18 +0000 (08:05 +0000)]
* split collision lib into its subparts
    -This is to remedy long command-line troubles for scons/mingw users. Hopefully this goes ok on other platforms too :)

11 years agosupport concave soft bodies, preliminary. could be used for cloth too. need vertex...
Erwin Coumans [Fri, 26 Sep 2008 06:25:35 +0000 (06:25 +0000)]
support concave soft bodies, preliminary. could be used for cloth too. need vertex pinning/constraint attach to other objects.

11 years agoAllow Bullet soft bodies to be created using a AddObject actuator. Added a fake world...
Erwin Coumans [Fri, 26 Sep 2008 02:27:59 +0000 (02:27 +0000)]
Allow Bullet soft bodies to be created using a AddObject actuator. Added a fake world coordinate system to game soft bodies, although the vertices are already in world space.
Added Bullet/Gimpact concave collision detection to Blender. If your build system isn't updated yet, please add extern/bullet2/src/BulletCollision/Gimpact/*
This allows moving/dynamic concave triangle meshes (decomposing meshes into compound convex shapes, and using 'compound' shapes is still preferred)

11 years agoSimpleDeform now initializes limit values to the BB when its added to an object
Andre Susano Pinto [Fri, 26 Sep 2008 02:02:02 +0000 (02:02 +0000)]
SimpleDeform now initializes limit values to the BB when its added to an object

11 years agodon't apply vertex transformation for deformable game soft bodies.
Erwin Coumans [Thu, 25 Sep 2008 21:04:41 +0000 (21:04 +0000)]
don't apply vertex transformation for deformable game soft bodies.
set a fake world transform for game soft bodies, based on center of the AABB, so visiblity and some game logic works. note: this world transform is not smooth.

11 years agoFix for [#17677] Blender Crash when Baking Boids
Janne Karhu [Thu, 25 Sep 2008 18:31:01 +0000 (18:31 +0000)]
Fix for [#17677] Blender Crash when Baking Boids
- A check for getting the "better" dm was missing from the boids code. I plan on converting the boids code into using the collision modifier one of these days but hopefully this quick fix will do for now.

11 years agoavoid crash and apply force for soft bodies.
Erwin Coumans [Thu, 25 Sep 2008 17:53:15 +0000 (17:53 +0000)]
avoid crash and apply force for soft bodies.
copy normals for soft body vertices, to get proper lighting

11 years ago[#17679] BGE print statement when start and when finish
Campbell Barton [Thu, 25 Sep 2008 17:43:06 +0000 (17:43 +0000)]
[#17679] BGE print statement when start and when finish
from Dalai Felinto (dfelinto)

would useually not encourage prints in these cases, except its often useful to know if an error happened since you last pressed Pkey and without this you end up needing to manually clear the terminal.

11 years agore-use some Blender soft body settings for Bullet game soft bodies
Erwin Coumans [Thu, 25 Sep 2008 16:48:25 +0000 (16:48 +0000)]
re-use some Blender soft body settings for Bullet game soft bodies

11 years agoBGE patch: add Debug button next to object state. The object state mask will be print...
Benoit Bolsee [Thu, 25 Sep 2008 16:19:07 +0000 (16:19 +0000)]
BGE patch: add Debug button next to object state. The object state mask will be printed at runtime with the debug info as a comma separated list of state numbers (1..30) for each active state bit. The reserved property name __state__ is used for that purpose (users should not create a property with that name).

11 years agoUpdate MSVC project files for blenderplayer
Benoit Bolsee [Thu, 25 Sep 2008 16:13:17 +0000 (16:13 +0000)]
Update MSVC project files for blenderplayer

11 years agoThis is part of the cleanup Campbell wanted :)
Kent Mein [Thu, 25 Sep 2008 15:39:46 +0000 (15:39 +0000)]
This is part of the cleanup Campbell wanted :)

Just getting rid of license_key stuff.

The project files still need to be updated:

Just search for these files in them.


11 years agopatch [#17683] Fix OBJ import line endings
Campbell Barton [Thu, 25 Sep 2008 13:17:56 +0000 (13:17 +0000)]
patch [#17683] Fix OBJ import line endings
from Tom Nixon (greysquare)  for fixing [#17681] .OBj import issues

11 years agoUpdate of the very ancient 2.3 text of blender.html.
Ton Roosendaal [Thu, 25 Sep 2008 11:30:39 +0000 (11:30 +0000)]
Update of the very ancient 2.3 text of blender.html.
Thanks Nathan Letwory for the poke!

11 years agobinreloc include was wrong for make, removed last YESIAMSTUPID
Campbell Barton [Thu, 25 Sep 2008 08:41:11 +0000 (08:41 +0000)]
binreloc include was wrong for make, removed last YESIAMSTUPID

11 years agoimproved game soft bodies, works for objects that are using 'set smooth'
Erwin Coumans [Thu, 25 Sep 2008 03:02:30 +0000 (03:02 +0000)]
improved game soft bodies, works for objects that are using 'set smooth'
use shape matching by default for game soft bodies
store soft body index for game vertices

11 years agoBGE patch: add advanced parameters for SoftBody. Add Rasterizer.drawLine() Python...
Benoit Bolsee [Wed, 24 Sep 2008 22:58:49 +0000 (22:58 +0000)]
BGE patch: add advanced parameters for SoftBody. Add Rasterizer.drawLine() Python function.

11 years agoMade Object-level copy constraints work the same as for bones now too
Joshua Leung [Wed, 24 Sep 2008 11:52:31 +0000 (11:52 +0000)]
Made Object-level copy constraints work the same as for bones now too

11 years agoCreated a KX_SoftBodyDeformer for real-time soft bodies.
Erwin Coumans [Wed, 24 Sep 2008 03:12:10 +0000 (03:12 +0000)]
Created a  KX_SoftBodyDeformer for real-time soft bodies.
Added SetDeformer/GetDeformer() to KX_GameObject.
Store mapping between graphics/soft body vertices (work-in-progress)
Real-time soft body integration is still very premature, but
for a quick preview, see this testfile: