Commit Graph
100 Commits
Author SHA1 Message Date
erwin.coumans f9ad5cf587 fixes in serialization, should fix non-Windows platforms. 2010-01-30 21:31:56 +00:00
erwin.coumans 4fcea85c01 Changed options to BT_TRIANGLE_CONVEX_BACKFACE_MODE ,BT_TRIANGLE_CONCAVE_DOUBLE_SIDED and BT_TRIANGLE_CONVEX_DOUBLE_SIDED.
Note that double sided options are experimental, single sided is recommended, and backfacing is default
2010-01-30 10:44:16 +00:00
erwin.coumans fbc4089e3f add btAdjustInternalEdgeContacts options for BT_TRIANGLE_CONVEX_BACKFACE_MODE (defaults to front facing) and BT_TRIANGLE_CONCAVE_SINGLE_SIDED 2010-01-30 10:21:40 +00:00
erwin.coumans 01b66a6799 fixes in serialization (don't serialize shapes multiple times), hull shape issue,
fix InternalEdgeDemo compilation using GLUT
2010-01-30 06:55:39 +00:00
erwin.coumans 08f597454a minor fix for InternalEdgeDemo 2010-01-30 03:59:58 +00:00
erwin.coumans e311597a7b added InternalEdgeDemo and fixes for btInternalEdgeUtility 2010-01-30 03:48:57 +00:00
erwin.coumans 8616ea07d8 copy glut*.dll next to executable using cmake postbuild step
re-add CollisionInterfaceDemo to cmake
2010-01-29 17:47:17 +00:00
erwin.coumans 37f6df2c32 added serialization support for gimpact mesh
improved cmake build system for updating the serialization structures
2010-01-29 02:50:34 +00:00
erwin.coumans 701bc64ab7 re-enable the GenericJointDemo for CMake 2010-01-29 00:46:59 +00:00
erwin.coumans ae0e78efd8 add support for serialization/writing DNA on big endian machines
fix for swapping endianness for nested array of structures
2010-01-28 10:56:38 +00:00
erwin.coumans 0814473528 autogenerated MSVC projectfiles using a patched cmake-2.8 because of this pdb issue
See patched cmake build here http://gamekit.googlecode.com/files/cmake2.8_patched.zip
2010-01-28 00:50:13 +00:00
erwin.coumans a082716fe2 SerializeDemo only loads the testFile.bullet by default (making it a handy .bullet file viewer)
Also note that pressing the '=' key while running any of the demos will create/serialize a physics snapshot to testFile.bullet
2010-01-28 00:22:26 +00:00
erwin.coumans 485d1a338e fix btCompoundShaps serialization of child shapes
added ConcaveDemo to cmake
added LinearMath/btSerializer.h to btBulletCollisionCommon.h
2010-01-27 23:37:46 +00:00
erwin.coumans 7a445d70b7 fix bug in serialization buffer allocation btAlignedAlloc(16,totalSize); should be btAlignedAlloc(totalSize, 16);
added cmake-autogenerated MSVC 2008 projectfiles in msvc/2008
2010-01-27 22:24:07 +00:00
erwin.coumans 725411a1f3 added a warning to all serialization structures:
///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
2010-01-27 02:41:38 +00:00
erwin.coumans cd15b314c1 revert minor local change 2010-01-27 02:16:17 +00:00
erwin.coumans 00f58e5a91 added basic serialization for several constraints including btPoint2PointConstraint, btHingeConstraint, btSliderConstraint, btConeTwistConstraint, btGeneric6DofConstraint
(no motor support or advanced settings yet)
added btStaticPlaneShape serialization
Added toggle in cmake for BenchmarksDemo to enable/disable graphics rendering
2010-01-27 02:13:56 +00:00
erwin.coumans 7003823bed minor tweak to BenchmarkDemo to enable toggling between console/graphical output
Disable island manager for 3000 falling boxes: we need to add some batching rather then running thousands of single-body islands
2010-01-26 08:32:39 +00:00
erwin.coumans e6922f2af6 revert accidental commit of btSerializer.h 2010-01-26 02:25:48 +00:00
erwin.coumans 44565d20f4 added serialization support for btCompoundShape, btCapsuleShapeX/Z, btCylinderShapeX,Z
make some serialization methods const
prepare for constraint serialization
2010-01-26 02:24:03 +00:00
erwin.coumans 2f44eabd7d fix, no argument to setZero 2010-01-25 23:41:22 +00:00
erwin.coumans 8bab40b49b initialize inertia to zero 2010-01-25 23:39:55 +00:00
erwin.coumans 362a0faf0f re-add 64bit serialization structures 2010-01-25 21:59:58 +00:00
erwin.coumans a7a6ab8835 Add BulletWorldImporter: it takes the in-memory data from BulletFileLoader and instantiates objects in a BulletDynamicsWorld.
Note that BulletFileLoader is has no dependencies on BulletDynamics/BulletCollision.
Also added a custom build step to copy asset (.bullet and .obj file) into the executable folder
Made a few 'char*' 'const char*' to avoid compiler warnings
2010-01-25 21:58:32 +00:00
erwin.coumans b68f2710cd change link order, hopefully fixes some link errors on systems that need strict order of libraries (gcc/linux)
Thanks elLolo for the report, see http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=4635
2010-01-25 19:50:30 +00:00
erwin.coumans e7ff71d99b add support for double precision and 64bit serialization (and compatibility between all versions)
fix some issue in serialization of nested array data
add some tesing files
2010-01-25 19:42:51 +00:00
erwin.coumans 5d8e6dc3f3 improved btTriangleMeshShape/btBvhTriangleMeshShape serialization 2010-01-24 16:48:14 +00:00
erwin.coumans 9d7d1c3983 more work on serialization, initial for btTriangleMeshShape/btBvhTriangleMeshShape (only for floating point vertices, integer indices) work-in-progress 2010-01-23 20:59:41 +00:00
erwin.coumans 5e85d43b0b more Bullet serialization (uncompleted triangle mesh saving, work-in-progress) 2010-01-23 02:13:25 +00:00
erwin.coumans 5378cf4c8a more work on Bullet serialization (added support for btConvexHullSupport) 2010-01-23 00:58:47 +00:00
erwin.coumans 0f707603f1 more work on serialization, work-in-progress 2010-01-23 00:04:58 +00:00
erwin.coumans 76eccc39fc more work on serialization (work-in-progress) 2010-01-22 03:36:58 +00:00
erwin.coumans e899845fc1 fix type in CMake build files 2010-01-22 00:19:25 +00:00
erwin.coumans 26a056e629 More work on serialization and BulletFileLoader 2010-01-22 00:15:33 +00:00
erwin.coumans 50aa82a240 for now use btScalar as type for serialization (need to look further into it) 2010-01-21 00:47:34 +00:00
erwin.coumans 90ecf8ccc3 fix some recent compile issues 2010-01-21 00:34:30 +00:00
erwin.coumans fbc0d86cf6 updated binary serialization structure DNA (type/size/name info) 2010-01-21 00:23:41 +00:00
erwin.coumans 6af9f9434f worked a bit more on the serialization, and added a preliminary SerializeDemo. 2010-01-21 00:17:18 +00:00
erwin.coumans 901ff7a4f8 remove readblend, it will be replaced by Serialize 2010-01-20 22:50:37 +00:00
erwin.coumans b010233e7b Only use a system-wide vectormath_aos.h on CELLOS_LV2 or if USE_SYSTEM_VECTORMATH
(otherwise use the included version in Bullet/src/BulletMultiThreaded/vectormath
2010-01-20 22:46:56 +00:00
erwin.coumans 01351ff76f removed jam-2.5 sources 2010-01-20 22:21:06 +00:00
erwin.coumans 6b89f028bf add newlines to files, thanks to tasioga for the patch
http://code.google.com/p/bullet/issues/detail?id=334
2010-01-20 21:33:35 +00:00
erwin.coumans 099c36a71e Add a new flag btCollisionObject::CF_DISABLE_VISUALIZE_OBJECT to give control over what objects are drawn using the debug drawer
This solves Issue 238 , thanks to  Linzner for the suggestion
Remove some warnings from GL_DialogDynamicsWorld.
2010-01-20 19:38:04 +00:00
erwin.coumans ae6c59848f fix OSX build 2010-01-20 04:52:07 +00:00
erwin.coumans 50a3c32a5f Added preliminary binary serialization code in btCollisionWorld.cpp, with example in Bullet/Demos/BasicDemo.cpp
(work-in-progress, some initial working version should be ready very soon, for Bullet 2.76)
2010-01-20 01:00:39 +00:00
erwin.coumans 677a0ca700 Removed Jam+msvcgen generated msvc projectfiles. Will move over to cmake build system for Bullet 2.76. 2010-01-20 00:59:39 +00:00
erwin.coumans 9bcc19a98f enable Box2dDemo for Win32 app. 2010-01-19 23:37:14 +00:00
erwin.coumans 8da244b443 remove a few warnings in DemoApplication 2010-01-19 23:29:19 +00:00
erwin.coumans 7b41af1765 Don't use GLUT by default under Windows, but a Win32 App instead. All demos have to be fixed (only basic demo works now). Also on Mac OSX, we plan to use cocoa instead of Glut. 2010-01-19 22:59:49 +00:00
erwin.coumans 5d3ba1daa6 fix compile issue, and add BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp/h to CMakeLists.txt/Makefile.am 2010-01-19 20:12:45 +00:00
erwin.coumans 96d73d642d fixes in debug drawer: always use rgba color with each component in range [0..1]
use sphere/box rendering of debug drawer
Thanks accodejockey for the report: See http://code.google.com/p/bullet/issues/detail?id=280
Also see http://code.google.com/p/bullet/issues/detail?id=279
2010-01-19 19:38:18 +00:00
erwin.coumans c6df06c6a1 Added btDbvtBroadphase::setAabbForceUpdate to always update the aabb (skip optimizations), to address this issue (helps with occlusion culling)
///http://code.google.com/p/bullet/issues/detail?id=223

Also added a few missing 'virtual' keywords (the functions were virtual already because of the base class)
2010-01-19 19:06:47 +00:00
erwin.coumans b57314c590 Added write access to implicitShapeDimensions, this allows to change the dimensions of a box, capsule etc.
See also request here: http://code.google.com/p/bullet/issues/detail?id=325

Also added a warning. This warning also applies to all methods that change the collision shape:

"changing a collision shape while the body is in the world is not recommended,
it is best to remove the body from the world, then make the change, and re-add it
alternatively flush the contact points, see documentation for 'cleanProxyFromPairs'"
2010-01-19 06:34:39 +00:00
erwin.coumans 67133c403d remove the LinearMath/ prefix for includes within the LinearMath directory
Thenks tasioga for the patch, see http://code.google.com/p/bullet/issues/detail?id=333
2010-01-19 06:13:44 +00:00
erwin.coumans 4280f54ccf Get rid of some warnings, mainly unused parameters/variables.
Thanks sparkprime for the patch, see http://code.google.com/p/bullet/issues/detail?id=330
2010-01-19 06:10:27 +00:00
erwin.coumans 086f80b206 Provide the index of the btCompoundShape child hit during a rayTest, available as "LocalShapeInfo.m_triangleIndex"
Thanks sparkprime for the patch. See http://code.google.com/p/bullet/issues/detail?id=332 and
http://code.google.com/p/bullet/issues/detail?id=214
2010-01-19 05:50:14 +00:00
erwin.coumans ab91e6a8b5 First version of btInternalEdgeUtility to filter internal edge collisions.
See also http://code.google.com/p/bullet/issues/detail?id=27 for issue description and an example how to use this (a modified version of Bullet/Demos/ConcaveDemo)
This demo will be committed to Bullet/Demos/ConcaveDemo later.
2010-01-16 01:57:40 +00:00
erwin.coumans 8a1a509e10 fix setConvexConvexMultipointIterations feature (broken in a recent commit) 2010-01-12 03:18:49 +00:00
erwin.coumans c26f5e4b6e apply patch to allow soft body rayTest. Minor change in patch: test for current hitfraction, so only report hits closer than current closest hit fraction.
Thanks to Benoit Bolsee for the patch, see Issue 311
http://code.google.com/p/bullet/issues/detail?id=311
2010-01-06 00:41:03 +00:00
erwin.coumans 63bb1bab94 fixes to make VC6 compiler (and its users) happy 2009-12-22 21:27:27 +00:00
erwin.coumans ac3d52d81b bugfix in aabb expansion, causing the convexSweepTest to fail in certain cases
(when the AABB is not symmetric around the origin)

Thanks to fishboy82 for the report and fix:
See http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=4484
http://code.google.com/p/bullet/issues/detail?id=322
2009-12-22 21:19:41 +00:00
erwin.coumans 71a7da86e2 Use CreateEventA instead of CreateEvent to avoid breaking unicode builds.
Thanks  tom@sickheadgames.com for the report/fix, see Issue 320
2009-12-21 23:57:54 +00:00
erwin.coumans 1b6a4e1285 Don't re-define M_PI but use SIMD_PI instead
Thanks philiplowman for the report, See Issue 268
2009-12-21 23:55:09 +00:00
erwin.coumans b5218f3ca7 removed normalize (btAcos has clamping) and removed assert in btAcos. 2009-12-21 23:43:59 +00:00
erwin.coumans db25e21fde added isZero and fuzzyZero to btVector3
Thanks jazztickets for the report, see Issue 145
2009-12-21 23:13:11 +00:00
erwin.coumans b0e6e2f412 Expose vehicle maxSuspension force (instead of hard-coded 6000 value).
Thanks blakflow for the patch, see Issue 290
2009-12-21 22:59:12 +00:00
erwin.coumans 9fa2460933 Provide verbosity control in BulletColladaConverter, see Issue 228
Thanks SkewMatrix for the patch

Fix a crash in BulletColladaConverter, when bodies were created outside of the Collada converter,
Thanks Jan Ciger for the patch, see Issue 306
2009-12-21 22:55:32 +00:00
erwin.coumans d68521803f updated vectormath (minor fixes, including a bugfix in storeXYZ) 2009-12-19 02:08:44 +00:00
erwin.coumans fa778a649c Avoid introducing virtual method to non-virtual classes, just for serialization 2009-12-18 22:05:11 +00:00
erwin.coumans 7eff49286c Avoid introducing virtual method to non-virtual classes, just for serialization
Applied a LHS fix (although no real impact on performance on PS3), thanks to holorose see Issue 321
2009-12-18 22:04:58 +00:00
erwin.coumans 4f2ad3a3ad applied patch for compound shape in SpuGatheringCollisionTask, see Issue 313
http://code.google.com/p/bullet/issues/detail?id=313

Thanks Bbilz for the report and fix!
2009-12-18 01:20:57 +00:00
erwin.coumans db63dcd9b4 Applied patch for autotools library names, thanks to Chrisian van Brussel, see Issue 319
http://code.google.com/p/bullet/issues/detail?id=319

This change doesn't affect cmake, the main supported build system in Bullet.
2009-12-18 01:16:17 +00:00
erwin.coumans 6bf3988837 SetLocalScaling propagates to btCompoundShape children now. Note that this issue might affect shared child shapes.
See also Issue 96
http://code.google.com/p/bullet/issues/detail?id=96

Thanks chucksspencer for the patch
2009-12-18 01:13:33 +00:00
erwin.coumans fcd2b93a22 fix in box-box contact generation: choose better contact point location (along contact normal) when objects are swapped.
move debugDrawWorld to btCollisionWorld.
improved CollisionInterfaceDemo, show how to perform a closest point query for objects that are not in the collision world.
removed a bit of garbage from the debug drawer
2009-12-18 00:54:52 +00:00
erwin.coumans 6425af9a6c make RenderTexture.h compile on double precision mode 2009-12-13 22:26:11 +00:00
erwin.coumans 443d38366f remove Gpu2dDemo Gpu3dDemo MiniCL_VectorAdd demos from CMake build system (it is not properly supported on most platforms anyway) 2009-12-13 21:39:47 +00:00
erwin.coumans 0c85c74bae removed stack allocator (was unnecessary/unused)
Thanks to Brecht for the report: http://code.google.com/p/bullet/issues/detail?id=303
2009-12-13 20:48:52 +00:00
erwin.coumans d7a07e9745 Make 'randomizeConstraints' optional, switched on by default (to keep existing behaviour)
Thanks Benoit for the report: http://code.google.com/p/bullet/issues/detail?id=315
2009-12-13 20:37:09 +00:00
erwin.coumans 6536d8cc31 Added option to install 'Extra' libs, turned off by default (BulletMultiThreaded, OpenGL, COLLADA_DOM, libxml,BulletColladaConverter)
Thanks xenonofarcticus, for the patch: http://code.google.com/p/bullet/issues/detail?id=294
2009-12-13 20:30:29 +00:00
erwin.coumans 0a6f7b271d make relative contact breaking threshold optional (use dispatcher->setDispatcherFlags(0) to turn off feature) 2009-12-13 20:22:21 +00:00
erwin.coumans 8444d0e5c4 Fix shapekey swapping issue with triangle meshes, see http://code.google.com/p/bullet/issues/detail?id=316
Revert btHashKeyPtr and introduce btHashPtr (to avoid breaking API/COLLADA Converter), see http://code.google.com/p/bullet/issues/detail?id=318
Disable separating distance util (it just costs CPU cycles and is disabled by default in the API anyway)
2009-12-13 15:40:21 +00:00
erwin.coumans 91f1e8117b Add serialization for btRigidBody (all work-in-progress) 2009-12-09 14:11:13 +00:00
erwin.coumans 3edd806b88 Binary serialization in the .bullet file format (work-in-progress) 2009-12-08 18:02:37 +00:00
erwin.coumans eea73bc76a more fixes to get cmake 2.8 to create Xcode projects 2009-11-17 03:09:14 +00:00
erwin.coumans f4c4e91904 more cmake fixes 2009-11-17 03:03:27 +00:00
erwin.coumans d96818d994 minor fixes in cmake build system, they caused troubles with CMake 2.8 and Xcode 2009-11-17 02:45:37 +00:00
erwin.coumans f59ad619a2 Disable BulletMultiThreaded, Gpu2dDemo, Gpu3dDemo, MiniCL_VectorAdd, they are currently not supported for 64bit platforms. 2009-11-06 00:36:30 +00:00
erwin.coumans 992c5eafa4 improvements in slerp
thanks to Tully Foote:

http://code.google.com/p/bullet/issues/detail?id=140

minor warning fix in btHashMap.h
2009-11-03 06:22:51 +00:00
erwin.coumans 836234696d applied patch removing some virtual calls in 'findUnions'
thanks to holorose for the patch
http://code.google.com/p/bullet/issues/detail?id=295
2009-11-03 06:06:56 +00:00
erwin.coumans 4c3af9c95f use LIB_SUFFIX to install under lib${LIB_SUFFIX}, for example /usr/lib64
Thanks to brumahe for the patch
http://code.google.com/p/bullet/issues/detail?id=174

compile BulletMultiThreaded also on  64 bit
2009-11-03 06:01:00 +00:00
erwin.coumans 73250b4be2 make the menus compile on both (Snow) Leopard and iPhone 2009-11-03 05:25:48 +00:00
erwin.coumans 5acda2d06c move an __SPU__ conditional around the virtual methods, we need some of the other inline methods. 2009-10-21 19:47:52 +00:00
erwin.coumans d07b7ef3fa added a few methods for better vector_math compatibility with PS3 SDK version 2009-10-20 20:36:58 +00:00
erwin.coumans f3525c3a86 make the btAcosf/btAsinf fix multi-line to make it easier to put breakpoints.
fix a memory leak issue with ColladaConverter (keep track of the btTriangleMesh containers)
2009-10-09 23:53:18 +00:00
erwin.coumans 703582f4fa apply fix for btAcosf/btAsinf (numerical issue causes values of X become slightly larger than 1 or smaller than -1, causing NaNs)
manually add some missing files to msvc projectfiles for now
fix in box-box collision detector, preventing it to fail in some rare cases
remove redundant line in btHingeConstraint, thanks to teravus
fix mouse drag camera rotation issue (modulo 360 instead of 180)
2009-10-09 23:35:00 +00:00
erwin.coumans 7b4bfcbcab some compile fixes in debug font rendering 2009-09-29 02:12:40 +00:00
erwin.coumans ebd44c1cd2 updated new DialogDynamicsWorld GUI to compile and run on Mac OS X. 2009-09-26 19:58:37 +00:00
erwin.coumans 2f4f468f4d Created basic physics-based OpenGL menu dialog system, with toggle/text and slider control. 2009-09-26 01:44:09 +00:00
erwin.coumans a482ebb7ab added missing global callback reference 2009-09-24 16:39:10 +00:00
erwin.coumans da4a1b14b5 Add support for target motion and slip/cfm for both friction directions.
It can be handy for effects such as powered conveyor belt effect or sideways slipping tyre friction.
2009-09-18 07:48:15 +00:00