Commit Graph

541 Commits

Author SHA1 Message Date
erwin.coumans
48526b720c Fixes in Dynamica that let's Maya Plugin playback the simulation using Maya 2009 (used to only work with previous version).
Thanks to Lawrence Chai from Disney Animation for the contribution.
2009-01-07 23:38:27 +00:00
erwin.coumans
e80feca36b Big work-in-progress refactoring of the constraint solver:
1) Add fast branchless SIMD support for constraint solver (Windows only until we get other contributions).
See resolveSingleConstraintRowGenericSIMD in Bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
resolveSingleConstraintRowGenericSIMD can be used for all constraints, including contact, point 2 point, hinge, generic etc.

2) During this refactoring, all constraints support the obsolete 'solveConstraintObsolete' while we add 'getInfo1' and 'getInfo2' support.
This interface is almost identical interface to Open Dynamics Engine, to make it easier to port Dantzig LCP solver.

3) Some minor refactoring to reduce huge constructor overhead in math classes.
2008-12-01 06:41:25 +00:00
erwin.coumans
82047e601e updated Bullet sequential impulse constraint solver, so it matches 100% ODE PGS quickstep solver innerloop, mainly by renaming variables... 2008-11-26 00:27:35 +00:00
rponom
09aa2dbbe7 CPU implementation of btCudaBroadphase added.
It is called bt3DGridBroadphase and btCudaBroadphase is now derived from it rater than from btSimpleBroadphase
Test of bt3DGridBroadphase was added to CDTestFramework
2008-11-25 03:16:11 +00:00
erwin.coumans
bdea80f2ca added missing Jamfile 2008-11-20 08:10:05 +00:00
erwin.coumans
50344c4a23 Add support for broadphase acceleration of convex cast (re-use rayTest implementation with an added aabb min/max, zero for rays)
Add Concave Convexcast demo back in AllBulletDemos, and tweaked it a bit.
Fix view frustum of ForkLiftDemo (caused picking to fail)
Removed innerloop profiling for ray and convex casts, it hurts performance.
Set default #aabb's in CDTestFramework to 8192
2008-11-19 00:38:29 +00:00
erwin.coumans
615b7fbe94 removed unused files, accidently copied wrong license header in them. 2008-11-18 01:39:00 +00:00
erwin.coumans
dc8692ba94 Added IBM Cell SDK 2.x software_cache to Bullet/Extras. There is an option to enable it for the BulletMultiThreaded Cell version.
See USE_SOFTWARE_CACHE in Bullet\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\SpuGatheringCollisionTask.cpp
It improves the Bullet midphase collision detection (triangle/vertex fetch)
The license is CommonPublicLicense-1.0, see included license docs.
2008-11-18 01:33:30 +00:00
erwin.coumans
50f475feb5 moved a few Extras projects into Extras/obsolete. 2008-11-17 21:05:22 +00:00
erwin.coumans
dcf3f96869 Raise number of objects to 16384, move all objects at 0.01 speed, to show worst case behaviour (and CUDA benefits) 2008-11-15 23:44:40 +00:00
erwin.coumans
972d3be247 Disable Bullet SAP by default (initialization takes too long, will speed that up later), just compare btDbvt, CUDA and OPCODE broadphases 2008-11-15 23:06:12 +00:00
erwin.coumans
183dcb0ce4 fixed uninitialized variable, thanks to Roman 2008-11-15 00:45:04 +00:00
rponom
b8b2d8f69b Test for btCudaBroadphase added 2008-11-15 00:22:17 +00:00
rponom
afec653726 New version of btCudaBroadphase compatible with Bullet and better performance 2008-11-15 00:21:09 +00:00
erwin.coumans
352aed528e Added specialKeyboardUp handler to GLUI (why was it missing?)
Some cleanup for ForkLiftDemo
Enable textures for ConcavePhysicsDemo, 
Added scaling to BasicDemo to show small objects (20 centimeter)
Removed demos from 'AllBulletDemos': less (clutter) = more
2008-11-13 07:33:25 +00:00
erwin.coumans
055c82ce08 disable raycast accelerator in Bullet, for better sweep and prune performance comparison (Bullet SAP) 2008-11-12 22:59:26 +00:00
erwin.coumans
9516e505a7 fix broken build
Add btCompoundShape export support for BulletColladaConverter. 
Thanks to JamesH for the report/request:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=12&t=2840
2008-11-12 22:25:23 +00:00
erwin.coumans
5feea39803 Fix compilation for MSVC 6.0 for Bullet and COLLADA DOM.
Fix issues with btDbvt: use ATTRIBUTE_ALIGNED16
Removed several places where variable was declared within for statement: for (int i=0; should be int i; for (i=0
2008-11-12 18:37:05 +00:00
erwin.coumans
444fbfeb40 add obsolete 'getPoints' to be backwards compatible (breaks MayaPlugin) 2008-11-12 16:53:06 +00:00
erwin.coumans
0384562db0 removed bloated reference docs, will add them in a separate package 2008-11-10 22:26:16 +00:00
erwin.coumans
3c0ca0d931 Fix btSoftBody issue, so it can interact with btCollisionObject and btGhostObject (and not just btRigidBody and btSoftBody)
Thank for the report mi076 http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2823

remove legacy.c from libxml
removed #include <math.h> from btQuadWord.h , it should be centralized in btScalar.h (to allow easier replacement with fastmath.h etc)
2008-11-10 20:33:14 +00:00
erwin.coumans
2daf428386 updated CMake support: remove Lib prefix, to facilitate Apple Framework support, add App prefix for demos
See discussion here: http://code.google.com/p/bullet/issues/detail?id=129
2008-11-06 06:54:35 +00:00
erwin.coumans
108c88af41 Applied Cmakelist patch, adding Apple Framework support
Disable libxml LIBXML_MODULE_EXTENSION
Fixed include path in btConeTwistConstraint (it should be relative to src folder, not using ../../ )
Thanks to ejtttje, http://code.google.com/p/bullet/issues/detail?id=129
2008-11-06 06:02:38 +00:00
erwin.coumans
d25d264e77 Improved CharacterDemo/KinematicCharacterController, dynamic objects will bounce off.
Don't create a todo list for doxygen by default (the chaotic todo's would confuse most developers)
Improve support for small objects, by having dynamic contact breaking thresholds. Still needs small internal timestep and some GJK improvements.
2008-11-05 03:28:10 +00:00
erwin.coumans
8e51049359 Added btAxisSweep3::resetPool, to avoid non-determinism due to unsorted linked-list, thanks to Ole K., See http://code.google.com/p/bullet/issues/detail?id=126
Fixed recently introduced issue: can't re-use stack as member variable (to reduce memory allocs) in btDbvt, due to recursion.
remove btGjkEpa.* from Makefile.am, Makefile and CMakeLists.txt
avoid division-by-zero in ODE boxbox contact reduction
2008-11-04 09:37:31 +00:00
erwin.coumans
434ea22868 added src folder, due to btAlignedObjectArray dependency (removed STL)
Thanks to slackydeb for the report here:
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2787
2008-10-31 01:28:13 +00:00
erwin.coumans
3b5d21ab50 added src folder, due to btAlignedObjectArray dependency (removed STL)
Thanks to slackydeb for the report here:
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2787
2008-10-31 01:23:53 +00:00
erwin.coumans
487cc1cdf1 avoid a lot of dynamic allocations in btDbvt/btSoftBody (re-use stack)
add Maya 2009 to Dynamica msvc projectfiles
2008-10-29 06:27:40 +00:00
erwin.coumans
ce5df7cf47 pass vectors by reference 2008-10-29 02:41:08 +00:00
rponom
7837e653c1 Particle index comparison bug fixed 2008-10-29 00:43:27 +00:00
rponom
309a12836d more CUDA work 2008-10-28 23:25:59 +00:00
erwin.coumans
28e580c203 removed STL usage of Extras/ConvexBuilder and replaced by btAlignedObjectArray
fixed several warnings, thanks to sparkprime
added comments patch for linear math, thanks to Tully Foote
2008-10-28 18:52:46 +00:00
erwin.coumans
003b6fa669 removed some warnings, as reported here:
http://code.google.com/p/bullet/issues/detail?id=123
Thanks sparkprime
2008-10-27 20:20:28 +00:00
erwin.coumans
6f28170422 Removed obsolete btPoint3: use btVector3 instead 2008-10-27 19:56:48 +00:00
erwin.coumans
44b44429fa fixed minor build issues for IFF lib 2008-10-27 01:56:10 +00:00
erwin.coumans
ffcfd84fc8 added build files for iff library (binary Interchange File Format) 2008-10-27 00:22:35 +00:00
erwin.coumans
82448a3942 minor IFF.h changes to migrate from .c to .cpp 2008-10-27 00:05:32 +00:00
erwin.coumans
14ba3eaff7 rename from .c to .cpp, and updated 23 year old IFF source code (1985) 2008-10-26 23:47:35 +00:00
erwin.coumans
2a721c7489 Updated original EA-IFF-85 files to read and write Interchange File Format files.
Plan is to convert COLLADA XML into IFF, for faster, more compact and easier to read and parse files.
Reading/writing code is a few hundred lines of code, instead of COLLADA-DOM and libxml combo.
So it would be suitable as a run-time format for platforms ranging from iPhone to PlayStation 3.
Relevant physics data (and perhaps other data) will be converted from COLLADA -> IFF. 
We could call the resulting files COLLADA binary IFF -> CLIFF.
2008-10-26 23:04:43 +00:00
nicola.candussi
557ff39996 added image for the Nail constraint 2008-10-21 10:37:43 +00:00
erwin.coumans
c508711108 remove GIMPACT and added new dNailConstraint files to Dynamica Maya plugin projectfile 2008-10-21 04:35:30 +00:00
nicola.candussi
b95810245f Added constraint framework, and the nail contraint 2008-10-20 10:43:18 +00:00
nicola.candussi
05cc5656bb fixed the compilation errors due to GIMPACT directory move 2008-10-13 17:26:31 +00:00
erwin.coumans
374e97fa8b even more build system changes. 2008-10-11 06:11:26 +00:00
erwin.coumans
e4ed38e7f6 more build system changes, to reflect Gimpact/BulletMultiThreaded move from Extras to src 2008-10-11 05:52:45 +00:00
erwin.coumans
22a79e61b1 updated Jamfile build system for reorganized files/folders 2008-10-11 05:23:00 +00:00
erwin.coumans
512c0f167e moved Extras/Gimpact to src/BulletCollision/Gimpact
moved Extras/BulletMultiThreaded to src/BulletMultiThreaded
(build systems will be updated soon)
2008-10-10 19:48:36 +00:00
erwin.coumans
9ad17dda22 Add aabbMin/aabbMax to broadphase proxy, and improve rayTest performance.
Todo: use broadphase acceleration structure (btDbvtBroadphase etc) for ray test
2008-10-10 17:32:52 +00:00
erwin.coumans
10d103b50e Disable TEST_NON_VIRTUAL debugging for btGjkPairDetector
Reverted BulletMultiThreaded, there are some performance issues to be resolved.
2008-10-08 20:59:26 +00:00
john.mccutchan
e499a13572 Copy the cached local AABB for ConvexHullShape instead of recomputing it. 2008-10-08 16:59:55 +00:00
erwin.coumans
288df0df65 don't include cfloat by default, it breaks OSX and Linux build 2008-10-06 06:00:35 +00:00
erwin.coumans
2998d2a8f3 Added ReadBlend, a data extraction API for Blender's .blend files
This can come in handy, to author physics data for Bullet from Blender, and directly get the physics data straight from the .blend file

Thanks a lot to Adam D. Moss, to digg up this code and make it available under the MIT license
It was mentioned several years ago in this thread:
http://archives.seul.org/linuxgames/Apr-2005/msg00002.html
2008-10-06 03:53:51 +00:00
erwin.coumans
b281057337 made shape construction virtual, to allow destruction of memory of btCollisionShape 2008-10-04 01:11:40 +00:00
erwin.coumans
23b2767100 add support for exporting static plane shape in ColladaConverter. 2008-10-03 23:58:55 +00:00
john.mccutchan
9e8410dbae Add libgimpact, libgimpactutils, libglui, libconvexdecomposition, soft body demo, all bullet demos to autotools build 2008-10-03 23:01:04 +00:00
john.mccutchan
e431450620 Initial support of Autoconf / Automake build system
Now running ./autogen.sh and ./configure will produce both Makefiles built from Autoconf and Automake 
as well as Jam build files.
2008-10-02 22:23:01 +00:00
erwin.coumans
425376a416 Update MayaPlugin projectfiles, to compile for Maya 8.5, when available. If multiple Maya versions are installed, the include path order is Maya 2008 -> 8.5 -> 8.0 2008-10-02 01:29:10 +00:00
erwin.coumans
0ca2eef022 FIX: use btScalar instead of float, otherwise double precision build breaks
FIX: make Maya plugin compile for Maya 8.0
FIX: btDbvt SSE doesn't compile for double precision builds
2008-10-02 01:17:18 +00:00
erwin.coumans
9f28b2bc12 Improve damping formula in btRigidBody::applyDamping
Thanks to sparkprime, see http://code.google.com/p/bullet/issues/detail?id=74
Fixed btCompoundShape/btCapsuleShape/btGImpactShape for missing m_shapeType, and added an assert in DemoApplication::localCreateRigidBody for invalid shape types.
2008-09-30 00:34:58 +00:00
john.mccutchan
f3b417df6c Modification to SPU collision detection and ray cast code to share implementation of GJK, EPA, Minkowski penetration depth solver, voronoi simplex solver across multi-threaded and non-multi-threaded versions. 2008-09-29 22:48:44 +00:00
nicola.candussi
e0d1c1d057 fixed the bug were the first object created was translated back to the
origin
2008-09-24 12:40:15 +00:00
nicola.candussi
965ef932e9 fixed rotation and translation issues for mesh and hull collision shapes 2008-09-22 18:07:39 +00:00
erwin.coumans
a5da7347db changed order in link libraries, math should go last 2008-09-22 14:33:39 +00:00
nicola.candussi
106b18813e copying the initial* to position and rotation for rigid body arrays in the
first frame
2008-09-22 10:41:56 +00:00
erwin.coumans
255de503e0 renamed OBJ to COLLADA 2008-09-22 02:12:35 +00:00
erwin.coumans
3d64413ec2 Add Dynamica Bullet installer script for NSIS Nullscript scriptable install system 2.39 for Windows.
Assumes Microsoft Visual Studio 2005 installed in the default location, and BulletMayaPlugin.mll compiled.
2008-09-22 02:01:09 +00:00
nicola.candussi
90cb458129 2008-09-20 10:25:30 +00:00
erwin.coumans
a7c83d01b9 Added ReleaseDll and DebugDll configurations for MSVC projectfiles.
Fixed the MayaPlugin projectfile, using those ReleaseDll/DebugDll projects.
2008-09-20 00:47:04 +00:00
erwin.coumans
97766f45e6 updated MSVC projectfiles: added colladaExport.*, drawUtils.* and BulletColladaConverter, COLLADA_DOM and libxml.
Note: Bullet libs need to be switched to Multithreaded DLL run-time: we should add additional configurations for plugins!
2008-09-19 08:05:55 +00:00
erwin.coumans
c30a8bf154 added COLLADA Physics export. import will follow soon.
Note that the exporter/importer doesn't handle GIMPACT and btStaticPlaneShape yet.
2008-09-19 07:14:48 +00:00
erwin.coumans
ff46ceb519 make MayaPlugin work under Mac OSX (intel/x86), build/install:
make -f Makefile.mac
make install -f Makefile.mac

It assumes Maya is installed in the default location, and plugin will install in default /Users/Shared/Autodesk/maya folder.
2008-09-19 00:47:56 +00:00
nicola.candussi
a45ef86d92 2008-09-17 11:54:59 +00:00
erwin.coumans
1346c95205 reverted back to newer btDbvtBroadphase, and applied Nathanael's fixes. 2008-09-13 08:06:39 +00:00
erwin.coumans
50daff0848 added install.bat used for the Windows release, and updated docs to add instruction videos and link to the forums for support. 2008-09-12 21:22:30 +00:00
id0x1234
147b6c8975 -Divide speed by 10 for more useful results as recommended by Pierre Terdiman.
-Using shared speed value.
2008-09-11 11:32:38 +00:00
erwin.coumans
32ab5d3691 fix crash in Maya plugin, trying to access elements in a zero-length positions/rotations array. 2008-09-11 00:57:53 +00:00
erwin.coumans
62f6c16fe3 Added documentation and sample scenes for MayaPlugin
Thanks to Walt Disney Studios.
2008-09-06 00:41:46 +00:00
erwin.coumans
82b64b0565 exclude BulletMultiThreaded from 64-bit builds 2008-09-05 20:56:50 +00:00
erwin.coumans
bfe4c2da55 updated projectfiles for OSX demo 2008-09-05 01:43:25 +00:00
erwin.coumans
359c84d3b3 Fix previous commit, accidently removed some aabbMin/aabbMax assignments.
move margin calculation for aabb before basis transform.
2008-09-05 00:26:02 +00:00
erwin.coumans
4f1a015b41 Added CUDA link + usage info for btCudaBroadphase demo. 2008-09-04 23:28:49 +00:00
erwin.coumans
aef74321d7 Added btCudaBroadphase, some early research & development work to accelerate Bullet using CUDA
Re-uses the NVidia particle demo.
2008-09-04 23:24:11 +00:00
erwin.coumans
d8a5bf2c9c Calculation of bounding box: margins should be added before basis transform.
Disable btSphereBoxCollisionAlgorithm, it is broken.
More fixes for btSimpleBroadphase
Moved quickstep to Extras/quickstep folder, so developers don't get confused which constraint solver is default.
2008-09-04 22:53:24 +00:00
erwin.coumans
5334611f48 Added MSVC 2005 project and solution. Removed glutInit/GLUT dependency. Fixed minor bug (return of non-existing variable c) 2008-09-04 22:35:08 +00:00
nicola.candussi
5d2720d267 Added "real" unique ids to the nodes 2008-09-04 12:39:11 +00:00
nicola.candussi
21b0ccfcc2 2008-09-02 09:44:59 +00:00
erwin.coumans
932de57d4c Updated CDTestFramework with the OPCODE Array SAP test.
Thanks Pierre Terdiman for the latest update.
2008-09-01 18:46:57 +00:00
erwin.coumans
1fbeedc7b9 added a #define around unaligned DMA in SpuFakeDma.cpp 2008-08-29 00:49:31 +00:00
john.mccutchan
32bf51aa47 Fixed memory leaks in ConvexDecomposition and ColladaConverter libraries
Added ConvexDecompositionDemo to CMake build
2008-08-28 17:36:50 +00:00
nicola.candussi
d78a46fea2 First MayaPlugin, still need to fix the makefiles and get unique ids for
the Maya nodes.
Got rid of boost dependencies.
Cleaned up mvl library
2008-08-25 15:11:33 +00:00
erwin.coumans
c66b5531a3 Fix memory leak, see http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2500&p=9848 2008-08-19 15:40:21 +00:00
id0x1234
2db430ca4f +Changed process/thread priority for more accurate benchmarking.
+btDbvt benchmarking can be enable/run in main()
2008-08-14 23:44:39 +00:00
erwin.coumans
7bf65e95f4 add patch for Havok 5.5 to add COLLADA Physics conversion 2008-08-01 05:15:50 +00:00
erwin.coumans
bc73c91a39 Converter from Havok .hkx to COLLADA Physics .dae files. Patch for SimpleLoadDemo.cpp. Requires Havok 5.5 SDK, free for download from Intel website. 2008-08-01 04:57:26 +00:00
erwin.coumans
af4520801b + Fix btSubsimplexConvexCast
Thanks to Nacho, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2422)
Fix in rendering, GL_STENCIL
+ btTriangleIndexVertexArray indices should be unsigned int/unsigned short int,
+ Made InternalProcessAllTriangles virtual, thanks to 
Both thank to Fullmetalcoder, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2401
+clamp impulse for btPoint2PointConstraint
Thanks to Martijn Reuvers, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2418
+ Free memory of bvh, pass in scaling factor (optional)
Thanks to Roy Eltham, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2375
2008-07-31 19:44:28 +00:00
erwin.coumans
9cd83c004b + add dummy getcwd/getenv for PS3 compatibility
+ disable HAVE_SIGNAL_H 0 for LibXML
+ removed unused variable in btCollisionWorld
+ removed unused variable in btSequentialImpulseConstraintSolver
2008-07-28 23:15:43 +00:00
erwin.coumans
3ca977e39f Patch by Nathanael Presson: (needs some more work, some of the demos don't show properly (RayCaster, CollisionInterfaceDemo,'g' key is already occupied in ConcaveDemo etc)
btDbvtBroadphase:
- Fixed a performance issues reported by 'reltham'
- Added btDbvtBroadphase::optimize() for people who want good performances right away or don't do dynamics.
- fixed compilation issues when DBVT_BP_PROFILE was set.

btSoftBody:
- Fixed singular matrix issues related to polar decomposition (flat meshes).

DemoApplication:
- Shadows (enable/disable through 'g' or DemoApplication::setShadows(bool)).
- Texture can be enable/disable through 'u'

CDFramework:
- fixed compilation issues.
2008-07-28 04:33:55 +00:00
erwin.coumans
016db0b3c5 Bind the SplitImpulse button to SimulationParameters and use the Objective-C SplitImpulse variable
Thanks to Shamyl Zakariya for the OSX Interface Builder help!
2008-07-16 23:58:23 +00:00
erwin.coumans
6f8b396575 use different namespace for SPU version of btGjkEpa2 to avoid name clashes. 2008-07-14 17:19:50 +00:00
erwin.coumans
8f3e9603f3 + fixed issue related to temporary/root collision shape in btCollisionObject
+ normalize plane normal input for btStaticPlaneShape
+ fixed issue related to swapped collision detectors (SphereTriangleDetector in particular)
Thanks a lot to Andrey Tuganov for reporting the issue and his reproduction case ( http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2143 )
2008-07-11 05:39:31 +00:00
erwin.coumans
b66e5350d0 rename HasHit method to hasHit
rename AddSingleResult to addSingleResult
moved collision filtering for btCollisionWorld::rayTest and btCollisionWorld::convexSweepTest from argument to the callback needsCollision
2008-07-09 23:30:21 +00:00
erwin.coumans
2c224b41c5 bump up the version to 2.70, and add (non-working) button for OSX template 2008-07-09 05:13:18 +00:00
erwin.coumans
dcd57f333b + improved KinematicCharacterController
+ improved btSubsimplexConvexCast, btContinuousConvexCollision and btGjkConvexCast to support configuration that start in touching/penetration, required for 'sliding'.
+ added files to CMakeLists.txt for CharacterController
+ bump up version to 2.70 (preparation for beta)
2008-07-09 00:08:49 +00:00
erwin.coumans
b6af86bd98 need to include <windows.h> before glut.h (issue with glui.h) 2008-07-03 23:24:56 +00:00
erwin.coumans
dbc464f831 Applied patch from Alex Silverman, to swap the partId/triangleId correctly.
http://code.google.com/p/bullet/issues/detail?id=54
Thanks for the patch!
2008-06-26 23:52:39 +00:00
erwin.coumans
e854a5133b add support for non-power-of-2 dma sizes (for small dma transfers)
add setBroadphase
2008-06-24 02:15:06 +00:00
erwin.coumans
d16c1b615f pass in reference to actual contact point in cache, rather then temporary value, should fix issue 53
http://code.google.com/p/bullet/issues/detail?id=53
Thanks Alex Silverman for reporting and suggested fix
Changed addContactPoint to lowercase
2008-06-22 03:30:55 +00:00
erwin.coumans
8634b6ba14 fixed a few issues with BulletColladaConverter/ColladaConverter.cpp, related to constraints. 2008-06-05 05:09:47 +00:00
erwin.coumans
35083aae4a moved predictUnconstraintMotion to SPU 2008-06-04 02:39:37 +00:00
erwin.coumans
8827d5dbfb undo btQuadWord changes, added integration in parallel SpuSampleTask 2008-06-04 02:01:41 +00:00
erwin.coumans
5e3777ddd2 added sample task, for multi threading tests
added union vec_float4 m_Vec128; for btVector3 for SPU and PPU.
2008-06-03 21:24:34 +00:00
erwin.coumans
d49aeb9dff + improved split impulse constraint solver option
+ improved friction warm starting
+ made constraint solver configuration more consistent (moved m_solverMode into btContactSolverInfo)
+ reset timing in CDTestFramework after initialization (SAP init destorts timings)
+ make it easier to change default sizes for stack allocator in btDefaultCollisionConfiguration
2008-05-29 03:33:32 +00:00
erwin.coumans
3726af466e removed obsolete files, make CDTestFramework compile again 2008-05-25 07:32:44 +00:00
erwin.coumans
f8e5481612 Added method to collect all persistent contact manifolds, given a btBroadphasePair (collision algorithm)
virtual	void	getAllContactManifolds(btManifoldArray&	manifoldArray)
See Demos/CharacterDemo/CharacterDemo.cpp for example usage of getAllContactManifolds
Added btDbvtBroadphase to btBulletCollisionCommon.h headerfile
Enable soft body vs concave (albeit slow)
Improved contact point debug rendering (moved from constraint solver into debugDrawWorld)
2008-05-24 04:23:00 +00:00
erwin.coumans
561066af75 + make compound versus soft body work (soft body uses interpolated transform)
+ fixed issue with persistent manifold, warmstarting values were not initialized properly
+ don't clear manifold in sphere-sphere collision (need warmstarting)
+ added support for 'split impulse', decouple positional error correction from velocity correction
This avoids adding momentum due to penetration correction, it can be tuned using following variables:
solverInfo.m_splitImpulse = true/false (disable/enable)
solverInfo.m_splitImpulsePenetrationThreshold (below this value, baumgarte/mixed velocity/penetration is used (cheaper, looks more plausible)
solverInfo.m_linearSlop (less jitter, when small amound of penetration is allowed)
2008-05-23 09:05:37 +00:00
erwin.coumans
ea86559480 removed some warnings 2008-05-21 23:29:35 +00:00
erwin.coumans
0b48b1c76b Added Mac OSX XCode project with Cocoa userinterface (wrapping GLUT) for Bullet demos
Thanks to TomorrowPlus for the constribution!
2008-05-18 00:38:17 +00:00
erwin.coumans
d9e7058ff2 Softbody improvements, thanks to Nathanael 2008-05-17 12:39:16 +00:00
erwin.coumans
649709dc2d updated build files 2008-05-10 19:24:39 +00:00
erwin.coumans
bd97c5e569 Fixed warnings in Bullet/src core library
Thanks Martijn Reuvers from Two Tribes B.V. (www.twotribes.com) for the patch

To make this work more visible, suppress warnings in external libraries in Extras (COLLADA_DOM, libxml and glui contain many warnings)
Added PreprocessorDefinitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE to vcproj files
2008-05-10 18:00:21 +00:00
john.mccutchan
3268cab6d7 Add EPA penetration depth solver support to bullet multithreaded.
Update SubSimplexConvexCast algorithm used in bullet multithreaded.
2008-05-06 00:44:18 +00:00
erwin.coumans
25c5d0d57a +Added btDbvtBroadphase, this very fast/efficient broadphase is based on Dynamic AABB tree (btDbvt).
+SoftBody improvements by Nathanael Presson:
+Add tetrahedralization
+Add support for tearing/slicing cloth and deformable volumes. Uncomment the line in Bullet/src/BulletSoftBody/btSoftBodyHelpers.h: //#define	BT_SOFTBODY_USE_STL	1
2008-05-05 23:19:21 +00:00
john.mccutchan
bce0047986 Add a destructor to ColladaConverter.
Two minor fixes to ColladaConverter as well.
2008-04-28 21:53:10 +00:00
erwin.coumans
1139c06a4d more soft body preparations, moved some parts from Demo/SoftBody to src/BulletDynamics/SoftBody
moved Extras/ConvexHull/btConvexHull.* to src/LinearMath/btConvexHull.*
removed btCollisionObject::m_internalOwner, replaced it by m_internalType. This should not affect external API (it was clearly marked as internal)
2008-04-10 20:00:41 +00:00
erwin.coumans
03d846add0 cleanup of Stan Melax ConvexHull utility, all memory allocations go through btAlignedAlloc/btAlignedFree, instead of new/delete.
It can be moved into Bullet/src now.
2008-04-10 05:36:17 +00:00
john.mccutchan
7066c43d79 Fix normals being lost in batch raycaster 2008-04-08 22:47:36 +00:00
erwin.coumans
2ee866e37f fix in partId/triangleId, thanks Alex 2008-04-08 22:28:02 +00:00
erwin.coumans
bfe6774399 removed unused structure 2008-04-08 21:14:14 +00:00
erwin.coumans
daf293c43e don't try to include <pthread> if USE_PTHREADS is not defined 2008-04-08 02:13:05 +00:00
erwin.coumans
c1a10fd1fe Add support for part/triangle id for GIMPACT.
Thanks Alex Silverman:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2032
2008-04-07 19:37:04 +00:00
erwin.coumans
8ddbf12f1a only move 10% of objects
added relative path to Bullet projectfiles (math/collision)
2008-04-02 19:22:08 +00:00
erwin.coumans
1ef4c721a0 CDTestFramework, OPCODE, ICE redistributed under the ZLib License, with permission of Pierre Terdiman
Added Bullet SAP/MultiSAP support by Erwin Coumans (BulletSAPCompleteBoxPruningTest.*)
AABB tree broadphase by Nathanael Presson (btDbvt.*, DbvtTest.*)
2008-04-02 18:05:36 +00:00
john.mccutchan
ba27e0522b Add posix thread backend to BulletMultiThreaded. Contributed by Enrico. 2008-04-01 18:32:41 +00:00
erwin.coumans
64df6edf39 reverted DISABLE_CELL_DMA_READ_ONLY
commented out printf
2008-04-01 00:29:21 +00:00
erwin.coumans
b12c52efa8 removed AlternativeCollisionAlgorithms, and moved btBoxBoxDetector from Extras into Bullet core collision detection
Re-distribute ODE box-box under the ZLib license as part of Bullet, with permission of Russell L. Smith.
2008-03-30 20:54:14 +00:00
erwin.coumans
a9080f2984 removed quickstep from Extras folder, into Bullet core as optional constraint solver.
Re-distributed under the Zlib license with permission from Russel L. Smith.
2008-03-30 20:51:49 +00:00
john.mccutchan
1464097327 Minor changes to SpuBatchRaycaster
Add DISABLE_CELL_DMA_GET_READ_ONLY define to SpuCollisionShapes
2008-03-28 19:10:46 +00:00
john.mccutchan
d775191eff Fix memory leak in btShapeHull 2008-03-27 21:17:47 +00:00
erwin.coumans
65bb612598 - added quickSort to btAlignedObjectArray (has generally better performance then heapSort)
- replaced all usage of heapSort by quickSort
- finished btMultiSapBroadphase. Still some work to be done to increase performance (faster add/remove from child broadphases. 
  uses currently AABB tree to locate child broadphase (should use grid), and sorted array takes too much time.
2008-03-16 04:30:43 +00:00
john.mccutchan
3b9e114d9b Ensure that the dom is instantiated inside registerRigidBody and registerConstraint.
Add a reset method to the colladaconverter so that the user can reuse the same converter.
2008-03-14 18:46:03 +00:00
john.mccutchan
fde2551637 Implement deRegisterConstraint and deRegisterRigidBody.
Add getName method for querying the dom for the name of a constraint or rigid body.
2008-03-13 20:57:23 +00:00
erwin.coumans
fe5386a5c8 Made the move from sourceforge to googlecode (no svn sync any longer)
Fixed BulletColladaConverter load/save
Removed btTypedUserInfo
Added btHashMap
Fixed btCapsuleShape
2008-03-13 05:16:42 +00:00
ejcoumans
f77a4f1494 use newton-rapson iteration for more precise normalize() method 2008-02-28 07:11:29 +00:00
johnmccutchan
94586390b6 IBM CELL SDK 3.0 fixes 2008-02-28 00:07:00 +00:00
ejcoumans
f51ac89dbe add support for 16bit indices and 3-float vertices (instead of btVector3 which is 4float) in
in btTriangleMesh container and ColladaConverter.

btTriangleMesh now derives from btTriangleIndexVertexArray, so it can be used for meshes on SPU
2008-02-18 04:23:50 +00:00
ejcoumans
9aec3255ef add support for 16bit indices and 3-float vertices (instead of btVector3 which is 4float) in
in btTriangleMesh container and ColladaConverter.

compile issue with PlatformDefinitions in GDC demo.
2008-02-18 01:37:30 +00:00
ejcoumans
a8951e27b3 improved COLLADA Physics export support, add render meshes, instance physics/visual scene 2008-02-17 00:06:30 +00:00
johnmccutchan
b0403a8ee4 Add notes about future optimization possibilities. 2008-02-14 22:15:25 +00:00
johnmccutchan
594963b25d Optimization work on SpuRaycastTask:
For ray vs. optimized bvh mesh traverse tree once for entire packet of rays
Avoid DMAing ray output data until we have a hit
2008-02-14 22:11:56 +00:00
ejcoumans
fe426229a7 Add 16bit indices support for Raycast + add alignment 2008-02-13 22:22:42 +00:00