Erwin Coumans
3cac11a3a2
Last (hopefully) soft body fixes:
...
Enable soft body collision clusters by default.
Add option to 'disable collision' button between soft body and rigid body connected by constraint (option was already available between two rigid bodies)
2008-10-11 20:19:04 +00:00
Erwin Coumans
64a0bcd10a
remove constraints from world, if not done yet
2008-10-11 19:32:53 +00:00
Erwin Coumans
17c391b429
bugfix: add Ghost support for soft bodies, so that they don't collide with ghosts, and can be ghost themselves.
2008-10-03 21:42:19 +00:00
Erwin Coumans
56b560bb6c
Move the Solaris workaround in btScalar behind the sun define, to only make sun and apple ppc slower:
...
#if defined (__sun) || defined (__sun__) || defined (__sparc) || (defined (__APPLE__) && ! defined (__i386__))
Also includes a fix to uninitialized variable (can cause failing collisions).
If possible, report all changes to extern/bullet2 to http://code.google.com/p/bullet/issues/list
2008-10-03 20:51:56 +00:00
Kent Mein
0eaccf881b
Solaris was having problems with sqrtf and friends again.
...
I changed sqrtf to sqrt in elbeem
in bullet2 I added defines found in floatpatch.h eventually
we should make a "floatpatch.h" that all of blender can use.
Kent
2008-10-03 13:16:10 +00:00
Kent Mein
0110133cf7
Maybe not needed, I was running into some problems though
...
and noticed dos line endings in a bunch of files so ran
dos2unix on everything in bullet2.
Erwin, I noticed there are a few files that do not have
license info in them, couple of quick examples are: btDefaultMotionState.h
btHashMap.h btQuickprof.cpp
could you take a look at add where needed? If you want I can give a list
of files I think should get it added and or just add the standard one
say the one in src/btBulletCollisionCommon.h
Kent
2008-10-02 16:52:39 +00:00
Erwin Coumans
808d6197cf
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.
2008-09-30 23:34:25 +00:00
Erwin Coumans
09f79a8e9f
add setUnscaledRadius for btSphereShape
2008-09-30 22:05:12 +00:00
Erwin Coumans
0b622fc07f
added anisotropic friction support for Bullet. Both for static and dynamic objects
2008-09-29 03:09:03 +00:00
Erwin Coumans
b6405b970c
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)
2008-09-27 00:36:18 +00:00
Erwin Coumans
1e0cfcfd3a
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
2008-09-26 23:20:31 +00:00
Erwin Coumans
17d9f2eda9
fixed soft body collision against concave triangle meshes.
2008-09-26 21:49:26 +00:00
Erwin Coumans
73119b840a
avoid adding degenerate faces to a Bullet soft body
2008-09-26 21:27:33 +00:00
Brecht Van Lommel
dff3d418d4
Bullet build system fixes: add gimpact to the makefiles, and fix
...
blenderplayer linking for scons.
2008-09-26 16:43:50 +00:00
Joshua Leung
06a5e9b58a
scons/mingw linking fixes with bullet - adjusting priorities to find libs
2008-09-26 08:40:35 +00:00
Nathan Letwory
a349a3201e
* 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 :)
2008-09-26 08:05:18 +00:00
Erwin Coumans
9d3c77ec62
support concave soft bodies, preliminary. could be used for cloth too. need vertex pinning/constraint attach to other objects.
2008-09-26 06:25:35 +00:00
Erwin Coumans
a1bef84ea8
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)
2008-09-26 02:27:59 +00:00
Erwin Coumans
3b09c0b0d5
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:
http://bulletphysics.com/ftp/pub/test/index.php?dir=blender/&file=soft_test.blend
2008-09-24 03:12:10 +00:00
Erwin Coumans
d2d56e3058
bugfix for [ #7006 ] Sleeping Objects losing Ghost Constraint
...
Bullet logic bug in (de)activation/island management: deactivated 'fantom' objects do merge islands, in particular when connected by constraints. (fantom = object with collision detection but no collision response).
2008-09-23 05:00:00 +00:00
Erwin Coumans
1c29d02305
BGE real-time soft bodies, step 2 / 3: create a btSoftBody. Next step is hooking up / deform graphics mesh and choose collision shape.
...
Note: feature is still disabled.
2008-09-21 15:17:50 +00:00
Erwin Coumans
deba5ab9a7
encountered some issue with the btDbvtBroadphase, switch of a deferred collision feature.
2008-09-21 01:13:54 +00:00
Erwin Coumans
2941f755f7
attempt to support negative local scaling for convex hull, box,sphere, cylinder, cone and btScaledBvhTriangleMeshShape in Bullet.
2008-09-20 23:45:45 +00:00
Erwin Coumans
877d70b14a
fixed sphere-sphere collision: contact points were not properly removed/refreshed.
2008-09-20 22:34:54 +00:00
Campbell Barton
7e6c1e1091
needed these changes to get bullet building with cmake and linking with scons
2008-09-18 00:10:12 +00:00
Erwin Coumans
80f22a9e60
added another missing file, btHashMap
2008-09-17 20:02:20 +00:00
Erwin Coumans
8b73f35141
added src/LinearMath/btConvexHull.cpp
2008-09-17 19:58:16 +00:00
Erwin Coumans
015a42079c
Please add extern/bullet2/src/LinearMath/btConvexHull.cpp to your build system!
...
Reverted back to original Bullet version.
2008-09-17 19:47:26 +00:00
Campbell Barton
bbdcd3a082
rev 16569 broke building.
...
Looks like bullets Extras/ConvexDecomposition is missing from blenders source.
comment functions so it builds for now.
2008-09-17 11:23:28 +00:00
Erwin Coumans
651c0e4861
Applied some fixes from Bullet: issues with btDbvtBroadphase, and btSoftBody, and better fix for 64-bit issue in btCompoundCollisionAlgorithm.
2008-09-17 02:30:19 +00:00
Erwin Coumans
ae418491dc
Preparation for real-time soft bodies for the game engine, step 1 out of 3. This should be harmless/non-intrusive.
...
Please make sure each build system include extern/bullet2/src/BulletSoftBody/* and extern/bullet2/src/LinearMath/btConvexHull.*
2008-09-17 01:49:47 +00:00
Nathan Letwory
73c8d76ba4
* make BulletSoftBody own small lib to make sure bullet libs don't grow too large for our beloved scons/mingw users.
2008-09-16 21:23:56 +00:00
Erwin Coumans
0c77a178da
add BulletSoftBody to SConscript and Makefile
2008-09-16 21:09:24 +00:00
Campbell Barton
ce41cfa40a
bullet wasnt building on 64bit linux
2008-09-13 12:07:36 +00:00
Erwin Coumans
7f293488d1
Upgrade to latest Bullet trunk, that is in sync with Blender/extern/bullet2. (except for one define 'WIN32_AVOID_SSE_WHEN_EMBEDDED_INSIDE_BLENDER')
...
In case someone reads those SVN logs: you can enable some extra broadphase SSE optimizations by replacing WIN32_AVOID_SSE_WHEN_EMBEDDED_INSIDE_BLENDER by WIN32 in extern/bullet2/src/BulletCollision/BroadphaseCollision/btDbvt.h
Thanks to Benoit Bolsee for the upstream patch/contribution.
Removed some obsolete files, they were just intended for comparison/testing.
2008-09-13 07:06:43 +00:00
Benoit Bolsee
13b0cf94d5
Bullet patch for compound ray cast. The patch is filed in Bullet patch tracker for inclusion in later revision. If it is not included, apply manually extern/bullet2/bullet_compound_raycast.patch
2008-09-11 20:09:07 +00:00
Daniel Genrich
85deff9c30
svn merge -r 16334:16347 https://svn.blender.org/svnroot/bf-blender/trunk/blender + also added missing files from bullet-2.71alpha0 archiv + fixed compile errors
2008-09-03 10:55:46 +00:00
Erwin Coumans
1926e84650
Finally upgraded to latest Bullet subversion, about to release 2.71. Some recent changes in extern/bullet2 need to be re-applied, will check with Benoit. Ray tests in 0_FPS_Template.blend is broken, didn't figure out why yet.
...
HELP BUILD SYSTEM MAINTAINERS: Please help with updating all build systems: the newly added files need to be added. Note that the src/SoftBody has been added for future extension of real-time soft bodies.
2008-09-03 02:27:16 +00:00
Benoit Bolsee
f6bdba8351
Bullet patch: option to return true face normal, complete triangle information and broad phase filter. This patch is needed to support enhanced ray cast function in the BGE. I have proposed it to the Bullet forum for inclusion in the next Bullet version.
2008-08-27 19:16:21 +00:00
Benoit Bolsee
4b9f5b2710
BGE Bullet fix: physics debug representation of cone shape does not take Up axis into account. Use Bullet 2.69 code to fix that bug.
2008-08-21 14:07:24 +00:00
Chris Want
5d0a207ecb
Patch from GSR that a) fixes a whole bunch of GPL/BL license
...
blocks that were previously missed; and b) greatly increase my
ohloh stats!
2008-04-16 22:40:48 +00:00
Ken Hughes
05152b7db0
Missed reverting one extra assignment.
2008-02-03 02:09:06 +00:00
Ken Hughes
0a27a31970
Clean-up for various gcc warnings under linux.
2008-02-03 01:33:35 +00:00
Daniel Genrich
fd877543d1
New: Collision Modifier and Cloth can be at any position on the modifier stack. BUT everytime the vertices count change, they will free themselves and internal build new (they rely on vertex count). Should be no problem anymore with e.g. subsurf modifier before collision modifier (tested). Fix: applied a patch from schlaile to get my bullet additions compiled with gcc 3.3
2008-01-30 14:01:05 +00:00
Daniel Genrich
77685023ca
Initial commit of cloth modifier from branch rev 13453
2008-01-29 21:01:12 +00:00
Erwin Coumans
f0de3124ce
reverted to old hinge constraint, it breaks several tests/demos
2007-08-05 17:44:32 +00:00
Jiri Hnidek
ee593409e3
updated scons build system, neccesary after erwin's commit
2007-07-16 09:09:01 +00:00
Erwin Coumans
71550bd3c6
removed "btHingeConstraint::" prefix, in btHingeConstraint::btHingeConstraint(btRigidBody& rbA,const btVector3& pivotInA,btVector3& axisInA);
2007-07-06 20:29:26 +00:00
Erwin Coumans
f256efdb34
fixed issue with kinematic objects
2007-07-06 04:30:25 +00:00
Erwin Coumans
376be529bb
synchronized to latest version of Bullet. added btConeTwistConstraint (useful for ragdolls etc)
2007-07-06 03:12:31 +00:00