Commit Graph
100 Commits
Author SHA1 Message Date
erwin.coumans 9fee53cf4d added a config-auto.h for cppunit that works on linux (Ubuntu) 2011-09-14 02:45:01 +00:00
erwin.coumans fe6991822d Use the original code for convex-plane collision in (btConvexPlaneCollisionAlgorithm),
rather than the perturbed rotated version (it is slower and harder to debug)
2011-09-14 01:28:40 +00:00
erwin.coumans b690019e39 Removed global operator- in btQuaternion, and rewrote the 'getAxis' method
Add a unit test for testQuaternionGetAxisAngle
Thanks to ejtttje, fixes Issue 538
2011-09-13 23:37:05 +00:00
erwin.coumans 02a0574ceb rename LICENSE -> COPYING to satisfy automake
see Issue 536
2011-09-13 19:34:42 +00:00
erwin.coumans 1e360bdb6b add Intel build support for the OpenCL cloth demo, and use the bullet_logo.png
Thanks to ggjunker for the patch, see Issue 533
2011-09-13 01:52:42 +00:00
erwin.coumans c8b3c9e306 more premake4 fun and tests 2011-09-03 00:27:54 +00:00
erwin.coumans 82234e6f33 add preliminary premake4 support (next to cmake) mainly to auto-generate Visual Studio projectfiles that can be redistributed (with no dependency on cmake, premake) 2011-09-02 22:24:08 +00:00
erwin.coumans ed02816e68 add kst argument for VSolveLinks.cl kernel (VSolveLinksKernel method)
Note that this method is not used by default.
Thanks to Peter for the report and fix, this fixes Issue 511
2011-09-02 04:30:01 +00:00
erwin.coumans 06112592fd Add another wind model, that doesn't clamp the maximum force.
Thanks to saggitasaggita for the patch, see http://code.google.com/p/bullet/issues/detail?id=532
2011-09-01 01:53:45 +00:00
erwin.coumans 822e8a3383 remove autogenerated visual studio projects from trunk. They will be replaced by premake4 generated files soon (instead of hacking cmake to do that job) 2011-08-30 21:51:08 +00:00
erwin.coumans b907018561 ParticleOCL demo was sorting out-of-bounds, thanks to igelado for the report
Fixes Issue 515
2011-08-30 04:19:26 +00:00
erwin.coumans 642a6821a5 remove speculative contacts, they break restitution and cause other artifacts
use btConvexPolyhedron for debug rendering, if available
fixes in btConvexConvexAlgorithm for polyhedral contact clipping, if GJK separating normal is zero
don't shift vertices in btPolyhedralConvexShape
2011-08-30 03:28:32 +00:00
erwin.coumans ad76b3222f update to the latest HACD convex decomposition (minor fixes) 2011-08-23 00:25:17 +00:00
erwin.coumans 7743f5bce5 Update environment variable to CUDA_PATH (was NVSDKCOMPUTE_ROOT) and fix a few bugs that prevented the NVIDIA OpenCLClothDemo to run properly. 2011-08-17 22:08:10 +00:00
erwin.coumans 0336ed8637 prepare support for picking softbody tetrahedra 2011-08-06 21:50:09 +00:00
erwin.coumans e83b5dac75 fixes in the DX11 cloth (for devices with physical wavefronts smaller than 32)
another fix for out-of-bounds check (there was no assert for this previously)
2011-08-03 20:21:23 +00:00
erwin.coumans cf0d948d97 update to the latest version of HACD (hierarchical approximate convex decomposition, http://sourceforge.net/projects/hacd)
Thanks to Khaled Mammou for the fix.
2011-07-24 02:01:32 +00:00
erwin.coumans c7b8035556 make things compile again 2011-07-07 21:50:35 +00:00
erwin.coumans 096389153b add HACD also to the AllBulletDemos (it includes the ConvexDecompositionDemo) 2011-07-07 00:44:53 +00:00
erwin.coumans 996bcb18ee Added HACD library by Khaled Mamou, for improved convex decomposition
See also http://sourceforge.net/projects/hacd/ and http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=4&t=6619
Thanks to Sujeong Kim for the integration with the Bullet/Demos/ConvexDecompositionDemo
2011-07-07 00:28:15 +00:00
erwin.coumans 16cc5665de fix in the breaking constraints feature 2011-07-01 21:51:38 +00:00
erwin.coumans 251bb4e727 remove the 'exit' calls from the OpenCL soft body solver. Use the solver->checkInitialized() method, after solver->optimize() to see if the kernels build OK. 2011-06-30 00:23:42 +00:00
erwin.coumans 4cc502b24a remove aspect ratio check from demo graphics, see also http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=6944 2011-06-21 01:40:34 +00:00
erwin.coumans fcb1448f21 fix member variable name 2011-05-22 11:01:46 +00:00
erwin.coumans b80e5fd167 Remove co-planar faces from convex hull, using 2d Graham scan
Improve SAT performance, by skipping back-facing features
Add assert in array class (probably fires in places)
2011-05-20 12:29:24 +00:00
erwin.coumans 20e95be9cd Fix regression issue: transform is not identity in case of softbody colliding against btCompoundShape.
Fix issue 512
2011-05-11 20:51:57 +00:00
erwin.coumans cce582d905 Add support for AMDAPPSDKROOT environment variable
Initialize vSolveLinksKernel OpenCL cloth kernel (although kernel is unused)
Fixes Issue 508
2011-04-23 16:01:44 +00:00
erwin.coumans 6ccd5a644a implement stub function for clGetProgramInfo to avoid linker errors
Fixes Issue 510
2011-04-23 15:47:49 +00:00
erwin.coumans 0722e25399 attempt to have doxygen parse the macros.
See also https://bugzilla.gnome.org/show_bug.cgi?id=646003
2011-04-18 17:47:49 +00:00
erwin.coumans d9a1a1d415 fix bug in the OPC_ArraySAP.cpp (used in Extras/CDTestFramework to compare agains Bullet broadphases)
Thanks to Olli-Pekka Räsänen for the report, mentioned by Pierre Terdiman in his blog:
http://www.codercorner.com/blog/?p=475
2011-04-18 00:08:48 +00:00
erwin.coumans 7dd0cbb726 fix OSX compilation 2011-04-15 19:17:34 +00:00
erwin.coumans 1b305562be Added Pierre Terdiman's 'internal object' optimization to improve performance for separating axis tests.
Make the winding consistent in btConvexHullComputer (and related fixes in btPolyhedralConvexShape), thanks to Ole!
Some fixes in the btPolyhedralContactClipping implementation (never report a penetration deeper than GJK/EPA found, to avoid issues due to its approximate contact normal directions)
Properly visualize btPolyhedralConvexHullShape that have a  btConvexPolyhedron (by calling initializePolyhedralFeatures() method)
2011-04-15 18:37:28 +00:00
erwin.coumans 7d37b3c472 add support for PosixThreadSupport for MiniCL (partial CPU OpenCL replacement) 2011-04-11 16:28:21 +00:00
erwin.coumans 8bc27b39f7 bump up version to 2.78 in a few places missed previously,
fixing issue 506
2011-04-11 15:28:55 +00:00
erwin.coumans ab7120835f remove msvc/2005, update msvc/2008 2011-04-09 04:31:13 +00:00
erwin.coumans 1c9b2d4224 update changelog 2011-04-09 04:05:09 +00:00
erwin.coumans 1e7b9de339 fixes for unix/autotools 2011-04-09 03:57:48 +00:00
erwin.coumans 9a9a4394ab fix in btParallelConstraintSolver to support double precision
fixes in SAT/polyhedral contact clipping, avoid adding GJK contacts (the contact margin causes different contact depths)
add polyhedral convex shape in InternalEdgeDemo as example of the new SAT/polyhedral contact clipping (added reference to Manual/what's new)
avoid glueing objecs with contacts that are positive (no gaps)
2011-04-09 03:40:15 +00:00
erwin.coumans cdddf9d25a add FractureDemo to AllBulletDemos
improvements in CCD handling
some cleanup of CcdPhysicsDemo and BasicDemo
2011-04-09 01:14:21 +00:00
erwin.coumans 2291a6a9d3 small update on Bullet Physics Manual (revision number, what's new for 2.78) 2011-04-07 20:48:50 +00:00
erwin.coumans e9f2176804 fixes in AllBulletDemos OSX projectfile 2011-04-07 17:08:21 +00:00
erwin.coumans e6044a1086 re-enabled m_maxEdgeAngleThreshold and m_edgeDistanceThreshold 2011-04-07 16:46:22 +00:00
erwin.coumans d80805d40c apply the DX11 cloth fix to allow DLL usage, see Issue 494 2011-04-07 16:19:51 +00:00
erwin.coumans a4e8213ede Implemented btDiscreteDynamicsWorld::addSpeculativeContacts, using conservative advancement to find contact point ahead of time
make Extras/ConvexDecomposition thread safe, Issue 501
some improvements to the btInternalEdgeUtility, patch from Issue 501
2011-04-07 06:23:34 +00:00
erwin.coumans 49630e9c77 improvements in separating axis test / polyhedral clipping support.
improved debug rendering for polyhedra
allow to dynamically switch between gjk and sat test to compute separating axis (independent from the polyhedral clipping)
2011-04-07 03:59:14 +00:00
erwin.coumans 563654fb6e Add soft body anchor 'm_influence' to control the solver.
Thanks to Gregory Jaegy, see Issue 502
Avoid using btTransform to update btSoftBody (bounds are already in worldspace)
Use btConvexHullComputer for soft body cluster debug rendering
Fix soft body demo issue of invisible soft bodies (rendering was not enabled properly)
2011-04-05 20:32:59 +00:00
erwin.coumans 624dac6128 Make btParallelConstraintSolver 64-bit ready
add an optional assert method for the btCollisionDispatcher, to make sure the contact pool is contiguous (needed for btParallelConstraintSolver)
2011-04-04 22:38:56 +00:00
erwin.coumans d419f79770 fixes to make MultiThreadedDemo work in 64bit, ParallelConstraintSolver won't work yet, only the parallel collision dispatcher 2011-04-03 19:30:26 +00:00
erwin.coumans 1fb2fa3db9 put an #ifdef in PosixThreadSupport in the right location 2011-04-02 20:13:50 +00:00
erwin.coumans b16b61d9d6 disable constraints when they exceed a breaking threshold, control it with new methods in btTypedConstraint: get/setBreakingImpulseThreshold and get/setEnabled
Disabled constraints are not removed from the world and they use negligible CPU cycles
2011-04-02 19:01:23 +00:00
erwin.coumans d198451909 clear the applied impulse for constraints (no warmstarting)
simplify logic, see Issue 499
2011-04-02 00:44:15 +00:00
erwin.coumans 46be84741c fix an issue in the ConvexDecompositionDemo, replacing std::vector by btAlignedObjectArray. 2011-04-01 18:09:31 +00:00
erwin.coumans 852fa3ba30 add the BT_ prefix for all #ifdef guards, to avoid conflicts with developers own header defines.
Fixes Issue 497

//license header
#ifndef BT_RIGIDBODY_H
#define BT_RIGIDBODY_H
class btRigidBody
{
};
#endif //BT_RIGIDBODY_H
2011-04-01 17:14:52 +00:00
erwin.coumans b1f21a7e6a Add better support for btCollisionWorld::convexSweepTest for btStaticPlaneShape, now using the btContinuousConvexCollision directly.
Bugfix in btKinematicCharacterController, using an uninitialized variable
2011-04-01 16:33:55 +00:00
erwin.coumans 08a93b28f0 re-introduce the radius/epsilon removed in a previous commit, it is necessary for termination. 2011-03-31 21:54:26 +00:00
erwin.coumans 5cee553a96 convexSweepTest: don't report hits if 'needsContactResponse' reports false.
Should fixes Issue 197
2011-03-31 21:20:52 +00:00
erwin.coumans 0bef2e7363 Fixes in btContinuousConvexCollision, should fix Issue 347
Continuous sweeps do not detect hits unless body0 and body1 penetrate more than allowedCcdPenetration.
This is to allow sliding objects (characters) where otherwise any contact would result in TOI = 0.
If objects penetrate deeper than allowedCcdPenetration at the start of the sweep, a TOI=0 is reported, unless the motion will separate the objects.

Secondly, a reportFailure method is added to CastResults, to handle failures gracefully (in case max iterations of conservative advancement is reached etc)
2011-03-31 21:14:35 +00:00
erwin.coumans 88b19eb023 fixes in PosixThreadSupport to enable ThreadingDemo and MultiThreadingDemo to run properly.
fix autotools build (added missing files)
2011-03-30 19:01:29 +00:00
erwin.coumans 2a856f8c32 add support for clipFaceAgainstHull, so we can clip convex polyhedra against triangles (without connectivity information)
in addition to the existing clipHullAgainstHull
Fix for debug drawing of contact points
comment-out some debug drawing code for triangle meshes
2011-03-29 21:58:15 +00:00
erwin.coumans 8847b21eb7 fix for gcc/ubuntu 2011-03-29 09:12:35 +00:00
erwin.coumans 784e7fdb39 Added support for separating axis test for polyhedral shapes
Added initial support for polyhedral contact clipping. 
This clipping takes a separating normal, that can be computed using either SAT or GJK/EPA.
To enable clipping, use btPolyhedralConvexShape::initializePolyhedralFeatures(); (needs to be enabled for both convex shapes)
No concave trimesh support for SAT/clipping yet. To enable SAT, see the toggle in btConvexConvexAlgorithm.
Fixes in contact normal in btGjkPairDetector. Hopefully this doesn't cause any regression (we need unit tests!)
2011-03-29 08:52:18 +00:00
erwin.coumans 1f5af32203 make sure Bullet compiles with LLVM/CLANG
See also Issue 496
2011-03-24 21:37:42 +00:00
erwin.coumans bd88a0c4b8 include stdio.h for printf 2011-03-22 21:44:13 +00:00
erwin.coumans ee5c10fd9b include stdio.h for sprintf 2011-03-22 21:41:47 +00:00
erwin.coumans 231a6ac718 remove default constructors, they cause compile errors under Fedora (in Blender) 2011-03-22 16:29:55 +00:00
erwin.coumans f44cb95b2a Added improved convex hull computation utility based on Preparata and Hong
Thanks to Ole Kniemeyer, MAXON, See also http://code.google.com/p/bullet/issues/detail?id=275
The ConvexHullDistanceDemo uses it to visualize the convex hull of a point cloud.
2011-03-22 00:53:17 +00:00
erwin.coumans 5454652e44 fix bug in btBulletWorldImpoter, thanks to Dirk Gregorius for sharing a .bullet file that reproduces the bug 2011-03-19 20:23:38 +00:00
erwin.coumans 72f88856cd only use VBO's and USE_GPU_COPY -> OpenCL/OpenGL interop under Windows, so that stuff compiles/runs on Mac OSX and Linux
See Issue 495
2011-03-19 19:45:24 +00:00
erwin.coumans f17fa297d5 wrapped up first version of the FractureDemo
move 'split impulse' / position solver before velocity solver, so that applied impulse is available for fracture
add btSliderConstraint::getAngularPos see http://code.google.com/p/bullet/issues/detail?id=489
2011-03-18 00:20:52 +00:00
erwin.coumans 74a65a6207 cleaned up FractureDemo, still need to apply the velocity/impulses after the fracture took place 2011-03-17 00:41:39 +00:00
erwin.coumans 8995ad440c fix a few more warnings 2011-03-15 22:51:00 +00:00
erwin.coumans 334cc85a1f fix some warnings 2011-03-15 22:48:36 +00:00
erwin.coumans 1a222f642a Stop using wavefront/warp synchronization inside OpenCL/DirectCompute, it is not future proof.
Similar to this commit for DX11: http://code.google.com/p/bullet/source/detail?spec=svn2343&r=2330
See also http://forum.beyond3d.com/archive/index.php/t-55751.html
2011-03-15 22:41:55 +00:00
erwin.coumans 21162f77e3 fixes to make the OpenCL cloth demo run on Apple/GPU 2011-03-15 22:24:27 +00:00
erwin.coumans 3615f6d415 fix for vehicle rollInfluence, see also discussion here:
http://code.google.com/p/bullet/issues/detail?id=468
2011-03-15 20:56:29 +00:00
erwin.coumans 6a2a72d987 Fix Apple Snow Leopard build
remove 'ComputeBounds', it isn't used and OpenCL compilation breaks Apple build
2011-03-15 20:30:23 +00:00
erwin.coumans 25b4d8da0b fix path to PE include file 2011-03-15 17:38:03 +00:00
erwin.coumans 830796ddce apply changes from Blender/extern/bullet2 2011-03-13 16:21:42 +00:00
erwin.coumans 7c3db274c2 add support for btScaledBvhTriangleMeshShape serialization (export and import through btBulletWorldImporter) 2011-03-12 20:25:03 +00:00
erwin.coumans 0c11538a28 Make a copy of btStridingMeshInterfaceData during import, so that the in-place data can be removed.
See http://code.google.com/p/dynamica/issues/detail?id=17
2011-03-12 06:17:54 +00:00
erwin.coumans ed76ad98c2 update serialization structures 2011-03-12 04:43:31 +00:00
erwin.coumans bcb08a93f8 update serialization structures 2011-03-12 04:39:24 +00:00
erwin.coumans 10580c94bd remove constraints/rigid bodies from dynamics world in btBulletWorldImporter
Thanks to vicariousentertainment, see http://code.google.com/p/dynamica/issues/detail?id=16
Enable SIMD OpenCL cloth solver by default
enable keyboard 'up' for Windows (non-Glut) version
2011-03-11 23:27:04 +00:00
erwin.coumans 2b5e16de4d rename solveCollisionsAndUpdateVelocities.cl to SolveCollisionsAndUpdateVelocities
solveCollisionsAndUpdateVelocitiesSIMDBatched to SolveCollisionsAndUpdateVelocitiesSIMDBatched
2011-03-11 20:26:59 +00:00
erwin.coumans f2f20da204 rename solveCollisionsAndUpdateVelocities.cl to SolveCollisionsAndUpdateVelocities
solveCollisionsAndUpdateVelocitiesSIMDBatched to SolveCollisionsAndUpdateVelocitiesSIMDBatched
2011-03-11 20:26:05 +00:00
erwin.coumans 4f562399c2 Fix in the hlsl file, to allow other wavefront sizes to work correctly, thanks Ronen for the fix.
Fix in btDX11SIMDAwareSoftBodySolver::optimize, the interface changed
2011-03-11 01:30:46 +00:00
erwin.coumans bf90952c12 Fix in aabb computation for a btUniformScalingShape
Thanks to Flix, see http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=6439
2011-03-11 00:05:07 +00:00
erwin.coumans 5a4d65f2fe update Mac OSX xcode project 2011-03-07 23:48:40 +00:00
erwin.coumans b67da9e50a made BasicDemo/Speculative Contacts demo a bit prettier 2011-03-05 21:13:49 +00:00
erwin.coumans 7a9c349a8c enable predictive contact constraints, see BasicDemo 2011-03-05 03:01:44 +00:00
erwin.coumans a99d2679bd removed broken msvc projectfiles 2011-03-05 02:00:59 +00:00
erwin.coumans a2112b11f0 added missing file capsule.h for DX11ClothDemo
Thanks to Cameron, see Issue 486.
2011-03-04 20:31:57 +00:00
erwin.coumans fd4ae96697 Performance optimization for btCompoundShape::setLocalScaling
Thanks to Mirza, See Issue 487

backward compatibility fix for recent improvement in btRaycastVehicle 'rollinfluence'
Thanks to Mihail, See Issue 468
2011-03-04 20:16:50 +00:00
erwin.coumans b167f69ca2 add debug text/info for Demos/InternalEdgeDemo 2011-03-01 00:49:36 +00:00
erwin.coumans c2badf3b4a don't use MSVC DLL linkage by default for CMake 2011-03-01 00:21:18 +00:00
erwin.coumans 58af9d7569 void->int patch (64bit issue)
THanks to core13/Nan, See Issue 25
2011-02-28 17:24:19 +00:00
erwin.coumans b7211240fc more compatibility fixes for Physics Effects 2.x/vectormath. 2011-02-28 07:27:39 +00:00
erwin.coumans e621c880d6 avoid naming conflicts with vectormath/sse version 2011-02-28 06:54:08 +00:00
erwin.coumans 40c4536843 added a few missing methods in vectormath/sse/vec_aos.h 2011-02-28 06:20:44 +00:00
erwin.coumans b58c3e1f2a update msvc project file, added missing file
(might need proper auto-generation)
2011-02-28 05:45:48 +00:00