Commit Graph

455 Commits

Author SHA1 Message Date
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
johnmccutchan
abc0391742 Use btAlignedAlloc/btAlignedFree 2008-02-13 19:10:45 +00:00
ejcoumans
fc333d2e18 updated Jam and CMake build files for new Extras/ConvexHull library 2008-02-13 08:15:58 +00:00
ejcoumans
eeb78b8d45 free memory for btShapeHulls, keep track of it in GL_ShapeDrawer.
move btShapeHull and btConvexHull into its own library in Extras/ConvexHull (it allocates memory using mem/delete and refactoring into using btAlignedAlloc/Free takes too much time)
fix heightfield / btOptimizedBvh for quantization, so that raycast can use quantized aabb (clamp up for maxima and down for minima)

work-in-progress (update projectfiles etc)
2008-02-13 07:14:19 +00:00
johnmccutchan
98006e5607 Tweaks to SpuBatchRaycast code 2008-02-13 03:10:53 +00:00
ejcoumans
1d576dd0af added COLLADA domAsset (authoring tool/upaxis), added dummy time that complies with COLLADA (needs fixing), fixed include path again (relative to current folder) 2008-02-12 23:44:21 +00:00
ejcoumans
c1bceede01 existing projectfiles include Extras/BulletMultiThreaded, so we can't have
-#include "BulletMultiThreaded/PlatformDefinitions.h"
but
+#include "PlatformDefinitions.h"
2008-02-12 20:54:07 +00:00
johnmccutchan
2ca9503eb5 Fix include path 2008-02-12 02:36:35 +00:00
ejcoumans
fe4e81ebff - support both 32bit and 16bit indices in ColladaConverter
- added triangle part/index into btManifoldPoint
2008-02-09 03:34:53 +00:00
ejcoumans
6b3587a505 moved implementation from ColladaDemo into ColladaConverter, so that it can be used without change with any btDynamicsWorld. 2008-02-08 23:46:37 +00:00
johnmccutchan
c374217953 Use the rigid body angular factor in the parallel solver. 2008-02-08 20:02:26 +00:00
ejcoumans
71b58309cf add support for X,Z axis aligned capsules 2008-02-08 01:10:34 +00:00
ejcoumans
661176bfed coding convention in Bullet is to keep return type on same line as method:
btClassName
{
  void myTest();
};

void myTest()
{

}

int getNumObjects()
{
}
2008-02-07 08:12:08 +00:00
ejcoumans
781440edc8 warning C4715: 'ColladaConverter::findGeometry' : not all control paths return a value
temp fix for snprintf, _snprintf under WIN32
2008-02-07 08:05:58 +00:00
johnmccutchan
8e31abc265 Lots of changes to ColladaConverter: btCollisionObject, btCollisionShape and btTypedConstraint
now hold pointers to dom elements in their btTypedUserInfo fields. This makes the ColladaConverter
less fragile.
2008-02-05 19:00:32 +00:00
johnmccutchan
31c1406fd4 Define spu_printf for Linux 2008-02-05 18:58:28 +00:00
ejcoumans
31a88b386f error C2086: 'j' : redefinition 2008-02-05 06:35:25 +00:00
ejcoumans
37837f204a missing return in main.cpp
remove unwanted libxml files (testfiles containing 'main')
2008-02-05 06:14:51 +00:00
ejcoumans
984811f459 fixes to compile/share more code between SPU and PPU 2008-02-01 03:44:17 +00:00
ejcoumans
5399a9ae8c fixes to compile/share more code between SPU and PPU 2008-02-01 03:35:54 +00:00
ejcoumans
1cdd5bf67f add support for 16bit and 32bit indices in SPU/BulletMultiThreaded version of btBvhTriangleMeshShape 2008-02-01 02:13:24 +00:00
johnmccutchan
995b4d7b92 Added some TODO items to ColladaConverter.cpp 2008-01-30 01:59:52 +00:00
johnmccutchan
7c40589831 Added full featured saving support including collision geometry and constraints. 2008-01-30 01:53:08 +00:00
ejcoumans
5c40e615bd make source compile under MinGW32
todo: link against OpenGL GLU/GLUT.
2008-01-30 01:09:01 +00:00
ejcoumans
30e1c56520 fix doubleprecision build 2008-01-24 02:40:15 +00:00
ejcoumans
af85183a48 fixed to get MacOSX to compile, added new files to CMakeLists.txt 2008-01-23 23:13:31 +00:00
johnmccutchan
be0beaf7bd Refactored SpuGatheringCollisionTask to use code in SpuCollisionShapes.
More work on SpuBatchRaycaster. It is working now on the PS3 and Windows.
2008-01-14 23:44:07 +00:00
ejcoumans
6ba6805b43 bugfix: need to use returned address of cellDmaSmallGetReadOnly
Thanks John McCutchan for pointing this out. Affects non-Cell BulletMultiThreaded.
2008-01-12 00:07:39 +00:00
johnmccutchan
702323f27a Initial work on batch raycast support. 2008-01-08 23:38:33 +00:00
ejcoumans
abfe5c81f7 ADD_DEFINITIONS( -D_CRT_SECURE_NO_DEPRECATE) for COLLADA_DOM/CMakeLists.txt, so that msvc stop warning/complaining about sprintf etc. 2008-01-03 04:59:07 +00:00
ejcoumans
d051e2eacb First commit of 2008, Happy New Year!
Add option to compile without btClock and without profiling: comment out USE_BT_CLOCK, and #define BT_NO_PROFILE
Fixed typo/case in #include "LinearMath/btQuickProf.h", in SpuParallelSolver.cpp
Removed unnecessary files from libxml CMakeLists.txt
2008-01-03 04:42:00 +00:00
ejcoumans
17a214a2b3 - Added btRigidBodyConstructionInfo, to make it easier to set individual setting (and leave other untouched) during rigid body construction.
This was harder using default arguments. Thanks Vangelis Kokkevis for pointing this out.
- Fixed memoryleak in the ConstraintDemo and Raytracer demo.
- fixed issue with clearing forces/gravity at the end of the stepSimulation, instead of during internalSingleStepSimulation.
Thanks chunky for pointing this out: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1780
- Disabled additional damping in rigid body by default, but enable it in most demos. Set btRigidBodyConstructionInfo m_additionalDamping to true to enable this.
- Removed obsolete QUICKPROF BEGIN/END_PROFILE, and enabled BT_PROFILE. Profiling is enabled by default (see Bullet/Demos/OpenGL/DemoApplication.cpp how to use this).
User can switch off profiling by enabling define BT_NO_PROFILE in Bullet/src/btQuickprof.h.
2007-12-17 04:26:36 +00:00
ejcoumans
b8c2cb6f53 Stop MSVC 8/9 from moaning
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS)
2007-12-15 03:41:07 +00:00
ejcoumans
c09a09d169 replaced cellDmaSmallGet by mfc command 2007-12-15 03:03:09 +00:00
ejcoumans
61ffa6a1b5 Updated cmake files, added header files, Thanks John McCutchan
re-autogenerated msvc projectfiles with new HelloWorld/BulletMultiThreaded Demo 
Minor fixes
2007-12-15 02:48:24 +00:00
ejcoumans
6dff743d68 Cleanup some #defines in parallel collision detector, add conditional freeglut support to return from glutMainLoop. 2007-12-15 00:40:34 +00:00
ejcoumans
335c79a2a2 added CMake support for AllBulletDemos 2007-12-14 08:35:35 +00:00