Commit Graph
100 Commits
Author SHA1 Message Date
erwin.coumans 2049fb2cfa don't initialize damping twice, it is confusing.
See Issue 472, thanks Daniel.
2011-02-27 03:39:31 +00:00
erwin.coumans 4e8596eef5 Added some helper methods for constraints and btMatrix3x3,
Thanks to  francois, See Issue 466

Prevent crash in SoftBodyDemo, when picking constraints and demo-mode switches to next demo.
2011-02-27 03:28:53 +00:00
erwin.coumans e5b5126876 Enable rayTest btDbvt (dynamic aabb-tree) acceleration for btCompoundShape
Thanks to NaN/core13, see Issue 25
2011-02-26 22:19:00 +00:00
erwin.coumans 3f74c62ca4 new getLow/getHigh methods aren't inline, thanks harkon for report and fix, see Issue 484 2011-02-22 01:36:50 +00:00
erwin.coumans ecaf8d2594 Generate a single bullet.h headerfile for serialization, to make it easier to load .bullet files with no dependencies on the Bullet SDK (except Bullet/LinearMath and Bullet/Extras/Serialize/BulletFileLoader)
Added a work-in-progress example how to load a .bullet file using this bullet.h file (and not using the Bullet SDK)
2011-02-21 22:32:12 +00:00
erwin.coumans f19995aeab improvement for btHingeConstraint to deal with large constraint limits, see Issue 479
Thanks promyclon for the report and patch, and Roman Ponomarev for testing.
2011-02-19 20:02:19 +00:00
erwin.coumans 48e89d44dc Applied patch from Blender, see https://svn.blender.org/svnroot/bf-blender/trunk/blender/extern/bullet2/uninitialized_stack_vec.patch
Thanks to Campbell for reporting this
2011-02-10 21:57:04 +00:00
erwin.coumans b4876b22cd Add check for cmake build system so that if the OpenCL library is not found, it will not compile the OpenCL-dependent code (on APPLE)
Thanks to Max for the report and fix in Issue 480.
2011-02-09 00:51:40 +00:00
erwin.coumans cb497b88a6 Avoid division by zero in softbody constraint solving
Thanks majestik for reporting the issue and providing a patch, see Issue 469

Fix bug in findBinarySearch, luckily this method was not used yet.
Thanks snowcat for reporting a fix for this issue:
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=6294
2011-01-30 21:17:18 +00:00
erwin.coumans b37edd81cd temp fix for Issue 473 2011-01-11 00:22:23 +00:00
erwin.coumans 4999fba60e fix some compatibility issues between Bullet / PE / vectormath, introduced a few commits ago 2011-01-07 20:29:34 +00:00
erwin.coumans 9098e82004 BT_USE_DOUBLE_PRECISION was missing from bullet.pc using cmake
Thanks to Sigluy, see Issue 471

Default constructor for btBvhTriangleMeshShape causes NULL dereference, so removed obsolete constructor.
Thanks to exarkun, see Issue 465
2011-01-07 17:50:36 +00:00
erwin.coumans f10846ed7a Added preliminary cmake support for PE branch, Win32 only for now. 2011-01-07 01:48:50 +00:00
erwin.coumans 22ff43e388 removed a minor warning 2011-01-06 02:26:18 +00:00
erwin.coumans 4c3a31077b Applied rolling-influence fix. For backwards compatibility, you can un-comment the #define ROLLING_INFLUENCE_FIX in btRaycastVehicle.cpp
Thanks to Vlad Turchenko for the report and fix, see Issue 468
2010-12-23 02:01:54 +00:00
erwin.coumans cb4ae2f3b9 Fixed typo in comment, thanks Exarkun for the report in Issue 464 2010-12-22 00:05:59 +00:00
erwin.coumans 51dc372993 (de)serialization of softbody joints working now. Resolving Issue 456. 2010-12-16 07:41:00 +00:00
erwin.coumans 4ba9cfa5a4 trim some un-needed data from softbody joint serialization 2010-12-16 02:54:11 +00:00
erwin.coumans dd7ee6919e serialize btGeneric6DofSpringConstraint
serialize btSoftBody::Joint
See also Issue 456
2010-12-16 02:35:44 +00:00
erwin.coumans b52eced793 btDynamicsWorld::addRigidBody(body,group,mask) added
Thanks to Mat for the request, see Issue 462
2010-12-15 19:16:19 +00:00
erwin.coumans 631eeab71e remove/add install-sh and make it executable 2010-12-14 17:14:59 +00:00
erwin.coumans f5d2fceb3e Use resize(0) instead of clear() to optimize the btCompoundCollisionAlgorithm
See Issue 459, thanks to Peter Messmer
2010-12-13 23:37:25 +00:00
erwin.coumans 3e6e8541a8 Manually updated the MSVC 2008 project files to enable loading soft bodies in the Bullet/Demos/SerializeDemo.
You can press '=' key in any of the demos, such as Bullet/Demos/SoftDemo, to dump a testFile.bullet
2010-12-04 01:33:13 +00:00
erwin.coumans ba5012973d Make argument to btDefaultSerializer optional, and use zero by default. This will dynamically allocate data, so there is no need to guess the maximum size anymore.
Remove some cached data from SoftBodyLinkData, to reduce serialization file size.
2010-12-04 01:23:31 +00:00
erwin.coumans 6173a30bce Improved BulletSoftBody serialization, added cluster support. Joints and copying data from GPU back to softbody are the main todo.
Updated the Bullet/Demos/SerializeDemo to load .bullet files with the softbody data.

BulletSoftBody should use getWorldTransform and not getInterpolationWorldTransform
Fix btBulletWorldImporter so that it creates a copy of the index/vertex data, this prevents crashes when deleting the .bullet file with triangle meshes.
2010-12-03 03:11:21 +00:00
erwin.coumans 032c6bfe2c add initial support for soft body / cloth serialization, and updated SerializeDemo to load soft bodies/cloth.
Serializes soft body nodes (vertices), links, faces, tetrahedra, materials, anchors with rigid bodies.
Some todo's are serialization of pose, constraints between soft bodies
2010-12-01 05:55:08 +00:00
erwin.coumans c6524b3fb5 fix for re-scaling a btConeShape
Thanks to promyclon for the report and patch, see Issue 448
2010-11-18 01:03:42 +00:00
erwin.coumans 98d902b7c1 Propagate the allowed penetration through convex cast against a triangle mesh.
Thanks for the report and patch to Paul Dubois, Issue 451
2010-11-18 00:25:04 +00:00
erwin.coumans c49927b4ed Use cylinder inertia tensor, instead of box, by default.
See Issue 427

Expose some internal data for constraints,
Thanks to Francois Sugny, see Issue 420
2010-11-17 23:55:39 +00:00
erwin.coumans bc3b920995 clarified the comments for set/getting of an OpenGL submatrix
Thanks to Mihail Isakov, see Issue 452

Fix sleeping/deactivation issue with kinematic objects, see Issue 442
2010-11-11 22:18:02 +00:00
erwin.coumans 45311c7d42 When using Visual Studio, always use the included Glut distribution, hence GLUT_FOUND = true.
GLUT detection is a todo for MinGW.
2010-10-06 23:37:00 +00:00
erwin.coumans cbeb5864eb Fixes in build systems for autotools and cmake, see Issue 438
Thanks to Daniel KO Listas at the ODE mailing list
Don't build graphics demos when OpenGL or GLUT is not found
CMake will still build the non-graphical HelloWorld demo (output text to console)

Fix linker error: ThreadingDemo requires pthreads on UNIX systems
Thanks to reptor, see also http://bulletphysics.org/Bullet/phpBB3/posting.php?mode=reply&f=9&t=5748
2010-10-06 23:07:00 +00:00
erwin.coumans eefffc2cf2 MiniCL and BulletMultiThreaded respect the LIB_SUFFIX
Thanks to pprkut@liwjatan.at for the report in Issue 436

Remove unimplemented methods in headerfiles,
thanks to csaba.hruska in Issue 437
2010-10-06 00:59:42 +00:00
erwin.coumans 5bb8330b7b Applied patch for several build issues:
+ add empty constructors to make Bullet compile using clang. 
Thanks to Stillmoon for the report and patch, See http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=5730
+ bullet-2.77/Demos/OpenCLClothDemo/cloth.h:103: error: ‘sprintf’ was not declared in this scope
Thanks to pprkut for the report in Issue 435
+ cmake build fails on Unix systems when using BUILD_SHARED_LIBS. Added pthreads to BulletMultiThreaded
Thanks to pprkut for the report in Issue 434
2010-10-04 19:05:56 +00:00
erwin.coumans 77b9181d8b make some getters const,
thanks to Mark for the report in Issue 431
2010-10-02 00:09:01 +00:00
erwin.coumans a061306bd2 fixes in SphereTriangleDetector, needs review/test:
+ remove obsolete comment and code
+ use contact breaking threshold
2010-10-02 00:03:01 +00:00
erwin.coumans 3ccb101ba8 Use AMD_OPENCL_BASE_DIR and NVIDIA_OPENCL_BASE_DIR instead of the environment variables, so that they can be modified afterwards. 2010-09-28 01:07:23 +00:00
erwin.coumans d6cbc28b94 prettify the SoftDemo a little bit, and use 1024x768 for ForkLiftDemo and SoftDemo. 2010-09-22 23:02:47 +00:00
erwin.coumans 7dfba03032 added missing quotes in some of the cmake-autogenerated project files. 2010-09-22 22:04:08 +00:00
erwin.coumans 635ca105c1 use " instead of " 2010-09-22 20:29:27 +00:00
erwin.coumans 22d90f0d64 Added Visual Studio 2005 projects for OpenCL NVIDIA SDK 2010-09-22 20:25:05 +00:00
erwin.coumans 2904abb772 Added Visual Studio 2005 projects for OpenCL NVIDIA SDK 2010-09-22 20:08:17 +00:00
erwin.coumans 2090bed39a Added Visual Studio 2005 projects for DirectX11 DirectCompute DX11ClothDemo 2010-09-22 20:01:58 +00:00
erwin.coumans 85dbda37b4 Added Visual Studio 2005 projects for OpenCL AMD/Stream SDK 2010-09-22 19:46:23 +00:00
erwin.coumans 190bf19b05 fix broken project solution 2010-09-21 23:19:37 +00:00
erwin.coumans 0b328a0b8a Applied patch for Issue 429 to set lib properties
Thanks to andrebra for the patch
2010-09-21 23:14:10 +00:00
erwin.coumans 0292521757 Updated OpenCL (AMD/NVIDIA) and DX11 DirectCompute Visual Studio project files
CMake: minor fixes for project file distribution
Make resource loading more robust for DX11ClothDemo, and remove buttons that crash the demo
2010-09-21 23:09:18 +00:00
erwin.coumans cffb96c0c9 Added Visual Studio 2008 project files for the AMD OpenCL SDK under Windows 32bit, similar to the NVIDIA OpenCL project files.
It requires the AMD Stream SDK 2.2 and the ATISTREAMSDKROOT environment variable.
2010-09-21 02:13:04 +00:00
erwin.coumans 41314b5ebc Allow properly override of btAlignedAllocSetCustomAligned
Fixes Issue 430, Thanks to wombatzus
2010-09-20 22:33:24 +00:00
erwin.coumans 9c7220a78d updated VectorAddKernels.cl, using float8 operator+
implement float8 operator+ and operator- for MiniCL
2010-09-20 22:08:44 +00:00
erwin.coumans 3e0b92cf3e OpenCL cloth demo improvements:
1) additional seach path for textures 
2) don't fail when textures cannot be found, but use a checked texture instead (programmatically generated)
2010-09-20 21:01:37 +00:00
erwin.coumans 318e0d74dc Fix in btQuickprof that caused crash in ConcaveConvexcastDemo.cpp
Thanks to Roman Ponomarev for the report
Make btVector3::rotate const
Thanks to lepoussin, see Issue 428
CMakeLists.txt improvement: don't copy resources when INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES is set
CMakeLists.txt improvement: INSTALL_EXTRA_LIBS for ConvexDecomposition and GIMPACTUtils
Thanks to andrebra, see Issue 425
2010-09-18 00:24:50 +00:00
erwin.coumans d82af1259f Checkin a special set of Visual Studio 2008 projectfiles that work out-of-the-box with NVidia OpenCL, using the environment variable
(AMD will follow)
2010-09-16 00:12:18 +00:00
erwin.coumans fc21378b48 add a fudge factor to avoid degeneracies/failures in the box-box edge-edge separating axis tests. 2010-09-10 20:29:40 +00:00
erwin.coumans f689a5e7ce tweaks in the build system for unix/GLEW, see also http://code.google.com/p/bullet/issues/detail?id=421 2010-09-10 00:14:23 +00:00
erwin.coumans 5b34356c43 Load the ParticlesOCL.cl from memory, using the MSTRINGIFY macro, instead of loading it from disk.
Small cleanup of cmake build for NVIDIA and AMD OpenCL

For AMD Stream SDK use:
INCLUDE_DIRECTORIES( ${AMD_OPENCL_INCLUDES} )
LINK_LIBRARIES( ${CMAKE_ATISTREAMSDK_LIBPATH}/OpenCL.lib )

For NVIDIA CUDA SDK:
INCLUDE_DIRECTORIES( ${NVIDIA_OPENCL_INCLUDES} )
LINK_LIBRARIES( ${NVIDIA_OPENCL_LIBRARIES})
2010-09-09 23:07:23 +00:00
erwin.coumans cb2de12243 btSoftBodySolver_OpenCL::setDefaultWorkgroupSize to customize the work group size.
Thanks to Simon Green for the feedback, see also Issue 419

Added BT_PROFILE for "predictUnconstraintMotionSoftBody"

Added a few missing destructors.
Added AllMemoryBarrier
Thanks to Lee Howes for the commit in the branch.
2010-09-08 22:21:59 +00:00
erwin.coumans c296122e4e fix build for Intel Compiler 11.1 -> move static ::getFixedBody method from header to cpp file. 2010-09-08 00:38:15 +00:00
erwin.coumans b041c3d266 fix old URL continuousphysics.com -> bulletphysics.org 2010-09-08 00:14:21 +00:00
erwin.coumans 7517171ea7 removed confusing comment to use cmake at the end of configure (autotools)
updated INSTALL, ChangeLog for Bullet 2.77 release
2010-09-07 23:58:31 +00:00
erwin.coumans 33a41798cf more fixes to the 'make install' feature for both cmake and autotools
now autotools uses the same library naming as cmake: libBulletSoftBody, libBulletDynamics, libBulletCollision, libLinearMath
cmake doesn't install .svn folders anymore
cmake pkgconfig bullet.pc.cmake 'include' folder fixed (removed /bullet postfix)
added BulletCollision/CollisionShapes/btTriangleInfoMap.h to the install
2010-09-07 23:40:17 +00:00
erwin.coumans de56f3a473 revert old change to bullet.pc.in file for autotools. Note that autotools builds/installs lowercase libraries and cmake uses upper/camel case.
fix minor Blender serialization issue (not applicable to .bullet files, but code base is shared)
2010-09-07 20:26:22 +00:00
erwin.coumans 14ec920dbb Only traverse into Demos_ps3 subfolder on MSVC compiler (not MinGW32) 2010-09-02 00:27:16 +00:00
erwin.coumans 44b82652d0 Collision flag CF_DISABLE_SPU_COLLISION_PROCESSING can be combined with other flags (avoids SPU/parallel collision dispatch)
Fix for MinGW32 build
2010-08-30 21:46:23 +00:00
erwin.coumans 33ddc450b4 typo kernal -> kernel 2010-08-27 00:36:12 +00:00
erwin.coumans 8e087a0666 Enable compilation of the NVIDIA OpenCL demos under Linux,
Thanks to Xavier Thomas, see Issue 417
2010-08-26 19:18:10 +00:00
erwin.coumans 9086c15e49 Applied patch to avoid "Assert in ClosestConvexResultCallback::addSingleResult",
Thanks to Paul Dubois for the report and patch, see Issue 396
Also Issue 415
2010-08-25 19:23:09 +00:00
erwin.coumans 3c2d67115c add EPA 2010-08-25 01:41:37 +00:00
erwin.coumans 958c705a02 Demos/ConvexHullDistance/ConvexHullDistanceDemo.cpp to compile again
Allow to use convexProcessingThreshold as maximum distance for convex-convex computation (useful for closest distance/point computation)
2010-08-25 01:28:46 +00:00
erwin.coumans 32714313a8 Move btClock into .cpp file, similar to Issue 381 2010-08-24 23:43:00 +00:00
erwin.coumans 6a9e16501c Fixes to compile MiniCL under Linux.
OpenCL fixes for Linux not processed yet (TBD)
2010-08-24 21:35:28 +00:00
erwin.coumans 1955d08f1b Fix parallel collision dispatch for PTHREADS version of BenchmarkDemo.
Thanks to shankargiri for the patch and report in Issue 418
2010-08-24 21:18:58 +00:00
erwin.coumans 54c07ddac4 Implemented constraint damping, as requested in Issue 416
Thanks Mark for the feedback
2010-08-24 21:12:32 +00:00
erwin.coumans a022c9a555 update .bullet format to 2.77, embed DNA inside its own chunk 2010-08-24 20:49:41 +00:00
erwin.coumans d2522aefbb added the btCollisionWorld::AllHitsRayResultCallback to collect all ray hits (when using btCollisionWorld::rayTest) 2010-08-23 23:00:34 +00:00
erwin.coumans 436c71d440 fix btQuickprof introducing #define WIN32_LEAN_AND_MEAN, see also Issue 113 2010-08-23 22:21:29 +00:00
erwin.coumans 0ea249ec33 disable demos in order to avoid re-creation of MSVC projectfiles 2010-08-19 23:36:20 +00:00
erwin.coumans 51d43c8166 2010-08-19 23:12:06 +00:00
erwin.coumans 5d89141357 apply patch for building shared libraries (and frameworks)
Thanks to ejtttje see Issue 357
2010-08-19 22:28:41 +00:00
erwin.coumans 32433aa8b3 Allow to link the DX11ClothDemo against the 64bit DirectX SDK for x64 builds
Fix memory leaks in btBulletFile and btParallelConstraintSolver (and added some additional profile timers)
2010-08-19 20:03:23 +00:00
erwin.coumans f89ddcc86e minor fixes in BulletMultiThreaded: SpuCollisionTaskProcess had a memory leak and warnings in btParallelConstraintSolver 2010-08-18 01:33:06 +00:00
erwin.coumans 844a54a409 Fix broken CDTestFramework
Avoid crash in BulletWorldImporter, ignoring 'invalid' constraints between two static bodies
Use a bitfield for btCollisionObject::CollisionObjectTypes (to allow custom types that are derived from build-in types such as btRigidBody)
Revert/improve softbody debug rendering
2010-08-15 20:45:55 +00:00
erwin.coumans 4f9b450200 added OpenCL cloth demo, contributed by AMD.
updated GpuSoftBodySolvers
updated DirectCompute cloth demo
2010-08-14 00:56:17 +00:00
erwin.coumans 40958f2b4a Implement btTypedConstaint::setUserConstraintPtr/setUserConstraintPtr (data shared with get/setUserConstraintId) 2010-08-11 01:01:50 +00:00
erwin.coumans fcd1f62aeb fix code page issues, see also Issue 414 2010-08-10 19:19:43 +00:00
erwin.coumans e5b056532e fix issue with Francisco Leon Najera name (code page 949)
See also Issue 414
2010-08-10 19:18:12 +00:00
erwin.coumans 73ca9bafc8 fix angular only for btHingeConstraint 2010-07-30 22:57:49 +00:00
erwin.coumans 51869dceda tweak OpenCL particle demo 2010-07-24 06:52:55 +00:00
erwin.coumans 9bee6f6afd prepared some unit test for LinearMath 2010-07-24 01:16:42 +00:00
erwin.coumans a983353f34 added cppunit unit testing framework, using cmake, stripped out the original build systems.
added starting point for Bullet unit tests, with one example unit test
Enable the option BUILD_UNIT_TESTS in cmake to build the test. Note that the test doesn't automatically run.
2010-07-23 22:09:57 +00:00
erwin.coumans 6f823687b5 enable GPU cloth (not CPU) and disable debug setting (D3D11_CREATE_DEVICE_DEBUG) 2010-07-23 19:49:56 +00:00
erwin.coumans 6d48fd6172 fix: start with localtime = 0
fix: drawSphere function in btIDebugDraw should be virtual
2010-07-22 20:24:03 +00:00
erwin.coumans 1cb3365771 revert change in bFile, it broke serialization 2010-07-22 00:19:43 +00:00
erwin.coumans e3f4f6f1c5 fix double-precision support
improve serialization, better search for SDNA1 tag
2010-07-21 23:59:41 +00:00
erwin.coumans 0d53b77e41 add missing files in AllBulletDemos.xcodeproj 2010-07-21 23:34:57 +00:00
erwin.coumans 7e9a1785c8 fix automake support (add missing file in BulletSoftBody) 2010-07-21 23:24:19 +00:00
erwin.coumans 7a519da691 add support in btHingeConstraint for m_angularOnly 2010-07-21 22:50:10 +00:00
erwin.coumans bfc439140b autogenerated msvc 2005 projectfiles 2010-07-21 22:29:32 +00:00
erwin.coumans 6fcb48f918 bump up version to 2.77 in preparation for release. 2010-07-21 22:11:49 +00:00
erwin.coumans 7684c1b92d use relative path, to make it easier to include btBulletWorldImporter, #include "../BulletFileLoader/btBulletFile.h"
Create a separate library for MiniCL (a rudimentary OpenCL wrapper to run kernels on multi-core CPU using the default C++ compiler, using Win32 Threads or Posix)
tweak vectormath/vmInclude.h for PS3 platforms
fix warning in btKinematicCharacterController
2010-07-21 21:33:40 +00:00