Commit Graph

152 Commits

Author SHA1 Message Date
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
a4c205afc0 enable convex separation util, potentially improves performance. set threshold to zero (docs follow)
fix scaling issue with btConvexHullShape
use virtual getSupportingVertex on non-SPU platform
2008-11-06 23:38:18 +00:00
john.mccutchan
9b5df088de Committing height field terrain work from tomva1@yahoo.com 2008-11-06 19:41:31 +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
ff29cb5008 reduce the number of dynamic memory allocations again (using a persistentStack version in btDbvt) 2008-11-04 18:02:41 +00:00
erwin.coumans
807e979597 missed a local stack in btDbvt 2008-11-04 17:54:41 +00:00
erwin.coumans
ee380bcd09 Added CUSTOM_POLYHEDRAL_SHAPE_TYPE,CUSTOM_CONVEX_SHAPE_TYPE and CUSTOM_CONCAVE_SHAPE_TYPE to be used to extend Bullet by custom shapes without modifying source code.
Thanks to Ole K. for the suggestion:
http://code.google.com/p/bullet/issues/detail?id=125
2008-11-04 09:43:34 +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
bcd0f48c28 some doxygen updates, added some comments to classes, fix broken links, rename some prefix some internal GIMPACT collision structures using (for example use GIM_AABB instead of BT_AAABB),
removed obsolete btGjkEpa (it was replaced by btGjkEpa2 ages ago)
2008-11-04 04:01:31 +00:00
erwin.coumans
2a871176d4 fix broken OS X build 2008-10-29 07:01:56 +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
50930cec5c Some performance improvements and fixes related to btVector3 being aligned on SPU.
btQuantizedBvh has a version number, memory layout might be different now (due to aligned btVector3)
reorganized some data members of some classes, to reduce memory footprint
2008-10-29 02:45:43 +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
c5112e68e5 make sure the btDbvtBroadphase doesn't add/remove any pairs, use the btNullPairCache 2008-10-28 05:51:32 +00:00
erwin.coumans
1ff6420ffb Use the add support for double and float triangle vertices. If it has a bad impact on performance, we can hide it behind an #ifdef for double precision vertex support.
Fix btConvexTriangleMeshShape::calculatePrincipalAxisTransform
Both thanks to Ole.

Use our own union to extract a scalar value from an SSE intrinsic (instead of relying on MSVC-only m128_u32
Thanks to BlindSide
2008-10-27 21:36:36 +00:00
erwin.coumans
876009b053 fix two memory leaks, thanks to Benoit and Ole. 2008-10-27 20:24:01 +00:00
erwin.coumans
6f28170422 Removed obsolete btPoint3: use btVector3 instead 2008-10-27 19:56:48 +00:00
erwin.coumans
e6202f58ad 1)Added SCE Physics Effects boxBoxDistance
BulletMultiThreaded/NarrowPhaseCollision makes use of this boxBoxDistance.
Cache some values in src/BulletMultiThreaded/SpuContactManifoldCollisionAlgorithm.cpp, to avoid DMA transfers

2) Added btConvexSeparatingDistanceUtil: this allows caching of separating distance/vector as early-out to avoid convex-convex collision detection.
btConvexSeparatingDistanceUtil is used in src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp and can be controlled by btDispatcherInfo.m_useConvexConservativeDistanceUtil/m_convexConservativeDistanceThreshold

3) Use BulletMultiThreaded/vectormath/scalar/cpp/vectormath/scalar/cpp/vectormath_aos.h as fallback for non-PlayStation 3 Cell SPU/PPU platforms (used by boxBoxDistance).
Note there are other implementations in Extras/vectormath folder, that are potentially faster for IBM Cell SDK 3.0 SPU (libspe2)
2008-10-20 20:12:39 +00:00
erwin.coumans
4cbb3f2e7b Added btGhostObject and btPairCachingGhostObject functionality.
It is a fast way to keep track of overlapping objects in an area, and doing rayTest and convexSweepTest for overlapping objects, instead of btCollisionWorld::rayTest/convexSweepTest.

Updated KinematicCharacterController to use btPairCachingGhostObject.
2008-10-18 01:33:23 +00:00
erwin.coumans
e627f38a28 Removed ray-AABB slopes code again, we are not using it and it is archived in Subversion repo now. 2008-10-16 20:18:23 +00:00
erwin.coumans
675c45f42d some rayTest improvements in btDbvt::rayTestInternal, it avoids/reduces memory allocations during stack allocation (by sharing a persistent m_stack)
and rayTestInternal re-uses precomputed invRayDirection/signs.
also did some performance comparison with different ray-AABB test, from 
http://jgt.akpeters.com/papers/EisemannEtAl07/

In short: it is faster, but it is not clear how to cull ray segments using ray slopes: when rays starts inside the AABB, we get a negative t value, but negatives also get false t-values...
2008-10-16 20:00:47 +00:00
erwin.coumans
60ce828419 Autoformat selection for soft body, btDbvt related classes (no code change, just layout using Visual Studio) 2008-10-15 18:39:27 +00:00
erwin.coumans
cac172d422 Use consistent rayFrom/rayTo API for rayTest for btDbvt and btSoftBody, instead of rayCast/collideRAY(origin,direction). This means RayFromToCaster has a fraction [0..1] instead of distance [0..INF]
Renamed collideRay -> rayTest to reflect change to (rayFrom,rayTo) interface.
Re-use btRayAabb2 function from src/LinearMath/btAabbUtil2.h in btDbvt instead of duplicated implementation.
2008-10-15 18:30:35 +00:00
erwin.coumans
e6c850f13b Fix/improve raycast performance for btBvhTriangleMeshShape (btQuantizedBvh, btOptimizedBvh)
Add raycast acceleration for btAxisSweep3, using btDbvtBroadphase, providing large speedup. Can be disabled in constructor to safe memory.
2008-10-14 20:24:28 +00:00
erwin.coumans
fffca75e9f Make raycast benchmark default, to show improved raycasting performance.
Add rayTest to btBroadphaseInterface, and implement efficient version for btDbvtBroadphase to accelerate raycasting.
btAxisSweep3, btSimpleBroadphase and btMultiSapBroadphase implement brute-force method (as before). For now, it is recommended to use btDbvtBroadphase for fastest world raycast.
2008-10-14 06:23:45 +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
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
d2a282dc07 fixed issue with clamping/quantization in btAxisSweep3,
Thanks to ole.k for report and fix:  http://code.google.com/p/bullet/issues/detail?id=87
2008-09-30 20:58:03 +00:00
john.mccutchan
2b71784c86 Make getShapeType() a non virtual function.
Add localGetSupportVertexNonVirtual, localGetSupportVertexWithoutMarginNonVirtual, getAabbNonVirtual and getMarginNonVirtual methods to convex shape classes
2008-09-29 22:47:05 +00:00
john.mccutchan
41b6eaa87f Change to make serializing btOptimizedBvh/btQuantizedBvh properly deterministic. Contributed by reltham. 2008-09-29 21:17:37 +00:00
erwin.coumans
752eb583d0 some minor work on soft body, to make it easier to integrate into apps. 2008-09-24 02:41:50 +00:00
id0x1234
7a72d76ef2 btDbvtBroadphase, re-enable deferred collide. 2008-09-21 02:23:30 +00:00
id0x1234
323df8f85b btDbvtBroadphase, fixed missed pairs when m_deferred collide was set to false. 2008-09-21 02:21:22 +00:00
erwin.coumans
8ae3f92859 encountered some issue with the btDbvtBroadphase, switch of a deferred collision feature. 2008-09-21 01:15:05 +00:00
rponom
486b172f58 Bug in constructor btHingeConstraint(body, pivot, axis) fixed. Build under MSVC 7.1 fixed 2008-09-19 21:10:01 +00:00
erwin.coumans
c9e5f2df05 fix 64-bit issue, can't cast void* to int. 2008-09-16 06:17:33 +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
3018eb9ebb btDbvtBroadphase is broken, revert temporarily to a previous working version. 2008-09-13 06:25:14 +00:00
id0x1234
a6f47f17d8 Fixed alignment issue in btDbvt::CollideTV 2008-09-12 02:39:33 +00:00
id0x1234
670d7d94fc Fixed SIMD compilation issues under msvc 7 2008-09-12 02:31:43 +00:00
erwin.coumans
bc8ff765b4 SSE gives compile errors on MSVC 7.1 2008-09-11 18:59:35 +00:00
erwin.coumans
732745d06c fix a compiling issue 2008-09-11 18:22:06 +00:00
erwin.coumans
96c7465265 stack variables 'aabb' needs to be 16-byte aligned, when used for SIMD 2008-09-11 16:45:21 +00:00
id0x1234
fe0e2cd266 Improved DbvtBroadphase performance for sleeping world (when no bodies are moving).
Improved DbvtBroadphase velocity prediction.
2008-09-11 15:20:55 +00:00
id0x1234
afcfcb0a5d DbvtBroadphase, fixed slow initialization issue. 2008-09-11 11:41:10 +00:00
id0x1234
c09a664808 Improved speed for 'slow' moving bodies. 2008-09-11 11:26:00 +00:00
id0x1234
8c6788ad6a Improved Dbvt speed slightly. 2008-09-11 11:23:55 +00:00
erwin.coumans
8b3270f22f Added 2 optimizations for the SAP broadphase: check AABB before remove, and a faster 2D overlap test.
Thanks to Pierre Terdiman/OPCODE Array SAP. Performance goes down from 4.6 to 2.9ms for the 8192 Extras/CDTestFramework benchmark.
2008-09-11 07:34:18 +00:00
id0x1234
bb50a2038f (re)Enable SSE by default (using intrinsics) should compile fine under all Intel platforms. 2008-09-07 09:10:43 +00:00
erwin.coumans
103b98de73 disable SSE by default on btDbvt, it breaks build on Windows 64 bit and Win32 Intel compiler. 2008-09-06 16:58:18 +00:00