Commit Graph

541 Commits

Author SHA1 Message Date
erwin.coumans
4add96ce75 fix crashing bug on import btTriangleMeshShape of 16-bit indices 2010-02-26 22:29:25 +00:00
erwin.coumans
56f3df802e update serialization mainly for Blender .blend reading, it has to do with pointer arrays not being swapped properly (Bullet .bullet doesn't use pointer arrays so it isn't affected)
Thanks a lot to Charlie/snailrose for the fix
2010-02-26 03:07:23 +00:00
erwin.coumans
40dc18f604 remove Extras/obsolete/quickstep
improve serialization based on feedback: make it easier to serialize a single object, or single shape, or single bvh.
Modified Bullet/Demos/ConcaveDemo to use btSerializer to serialize the btOptimizedBvh (or optionally the trimesh+bvh)

You can also serialize trimesh without BVH, use:
serializer->setSerializationFlags(BT_SERIALIZE_NO_BVH);//	or BT_SERIALIZE_NO_TRIANGLEINFOMAP
2010-02-25 20:12:40 +00:00
erwin.coumans
5a6afb2b8d expose the SphereTriangleDetector::collide method
cmake build tweaks: only compile BlenderSerialize if necessary
2010-02-24 19:27:24 +00:00
erwin.coumans
012cc0cc81 update autogenerated Bullet de-serialization headerfiles 2010-02-24 03:25:47 +00:00
erwin.coumans
9c1d134f2f add support for btTriangleInfoMap serialization (needs testing) 2010-02-24 03:22:34 +00:00
erwin.coumans
f5fabd2676 Preparation for serialization of btTriangleInfoMap
Add flags to disable bvh and triangleinfomap serialization

btSerializer::setSerializationFlags(flags)
flag can have value BT_SERIALIZE_NO_BVH, BT_SERIALIZE_NO_TRIANGLEINFOMAP
2010-02-24 02:49:41 +00:00
erwin.coumans
1425feec26 minor warning fixes, issue with "direction[i] = direction[i];" on OSX 2010-02-23 18:08:44 +00:00
erwin.coumans
2a2c82b7ce update autogenerated serialization headers 2010-02-23 09:15:53 +00:00
erwin.coumans
41e9115bca Add support to serialize btOptimizedBvh/btQuantizedBvh for a btBvhTriangleMeshShape (using the new btSerializer). This is a new implementation, with full cross-platform support.
So it is different from the in-place method (btQuantizedBvh::serializeInPlace/deserializeInPlace).

It is also possible to serialize/deserialize just the bvh, using the btSerializer (needs some code snippet/helper)
See also http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=4770
2010-02-23 09:03:46 +00:00
erwin.coumans
5ab92c0083 fix issue with serialization (only happens when using the BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES option) 2010-02-22 22:47:15 +00:00
erwin.coumans
155254d448 remove warning, remove Jamfile from CMakeLists.txt, check for two static objects in solver. 2010-02-20 21:12:50 +00:00
erwin.coumans
ceeb9392d9 removed ColladaDemo and COLLADA, LibXML from autotools files
(those files are moved to the Dynamica repository, see http://dynamica.googlecode.com)
2010-02-20 15:49:28 +00:00
erwin.coumans
1c0ec85c32 Retired the Jam build system (and msvcgen). CMake is currently the preferred build system on Windows, Mac and UNIX
(autotools files are still left for now)
2010-02-20 15:47:20 +00:00
erwin.coumans
6ef37ab722 pass on rigid body name in btBulletWorldImporter, to make it easier to bind physics and graphics objects.
moved some obsolete files to Extras/obsolete, and removed freeglut
moved ColladaDemo to Dynamica Maya plugin repository (it has COLLADA_DOM and libxml), see http://dynamica.googlecode.com
Added new .bullet file
Minor update in Bullet_User_Manual.pdf, removed obsolete Bullet_Faq.pdf
2010-02-20 15:39:09 +00:00
erwin.coumans
890fd49813 don't serialize names twice,
register unknown chunks (used for rigid body/shape/constraint names)
2010-02-20 03:19:27 +00:00
erwin.coumans
85724b5500 SerializeDemo: create a testFile.bullet if it is missing
Serialization: remove obsolete autogenerated headers
Minor changes in btSequentialImpulseConstraintSolver: split methods to make it easier to derive from the class and add functionality.
2010-02-19 23:24:04 +00:00
erwin.coumans
07ea2a71e2 Moved COLLADA_DOM,LibXML and BulletColladaConverter to http://dynamica.googlecode.com
This is the new location for the Dynamica Maya plugin
2010-02-18 18:04:37 +00:00
erwin.coumans
45e7c7f564 Add missing files to XCode project
Add option to disable SPU collision processing, and add assert to detect unsupported recursive compounds on SPU.
2010-02-17 02:34:26 +00:00
erwin.coumans
729a883b71 attempt to let Maya plugin build under Linux using cmake
Thanks redpawfx for the feedback, see http://code.google.com/p/bullet/issues/detail?id=221

improvements in cmake (disable this incremental linking)
2010-02-16 04:30:53 +00:00
erwin.coumans
76681a52ee fix compile issue strncmp, strlen and memcpy,
Thanks MatrixNAN for the report http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=4732
2010-02-15 02:47:44 +00:00
erwin.coumans
32b4de20ab Fixed some serialization issues related to swapping endianness of DNA, and fixed memory leak in btSerializer 2010-02-13 01:33:28 +00:00
erwin.coumans
1a87fbf2f0 btBulletWorldImporter support for loading of btCollisionObject from a .bullet file.
minor compilation fix on PS3

Yippie, revision 2000!
2010-02-13 00:43:42 +00:00
erwin.coumans
83f0bfc0e5 strip LibXML, we don't use it anymore (neither COLLADA_DOM) 2010-02-11 23:41:14 +00:00
erwin.coumans
7a175fb65e Add pairwise collision test:
void	btCollisionWorld::contactPairTest(btCollisionObject* colObjA, btCollisionObject* colObjB, ContactResultCallback& resultCallback)

cmake: improve feedback for Maya Plugin handling if the Maya base path is not detected
2010-02-11 09:18:49 +00:00
erwin.coumans
a9556d0fd5 use _WIN32 instead of WIN32 (_WIN32 is a compiler built-in)
add virtual destructor to bFile
2010-02-06 18:50:45 +00:00
erwin.coumans
99d9fddc42 add name for collision shape and constraint serialization (to objects, shapes and constaints can be mapped to user data)
updated serialization structures and header files (for new 'm_name' field, replacing user pointer)
fix issue with  btGeneric6DofConstraint::setParam in headerfile
2010-02-04 05:28:17 +00:00
erwin.coumans
58c5630d7f Add new demos to cmake: SerializeDemo and InternalEdgeDemo
Fix in btShapeHull for previous commit
Add support to serialize name for objects
Updated serialization structures.
2010-02-04 01:07:07 +00:00
rponom
43d82fc20c Bug in command registration/deregistration fixed
One more path to Maya SDK added
2010-02-04 00:38:15 +00:00
erwin.coumans
c1e20e98c7 allow to compile all demos when USE_GLUT is enabled in cmake
fix minor issue in ConcaveDemo (animation should be time-dependent)
remove COLLADA from the demos.
2010-02-03 23:04:39 +00:00
erwin.coumans
23c814f699 show ".bullet" as file extension in the Maya plugin, by implementing MString filter() const; 2010-02-02 18:56:28 +00:00
erwin.coumans
d47ce6f46e (untested) MayaPlugin for Linux 64bit Makefile, instead of linking against Bullet libs, directly include all source files
(we should try to get the cmake build to work!)
2010-02-02 07:58:53 +00:00
erwin.coumans
6850b72ef6 added Mac OSX XCode projectfile for BulletMayaPlugin, tested with Maya 2010
unfortunately, cmake took too much time to get working on OSX (bundle and dylib doesn't combine)
2010-02-02 06:24:00 +00:00
erwin.coumans
34c7b38ac7 fixes for Mac Maya plugin. still need to figure out the flags for a 64bit build 2010-02-01 15:54:31 +00:00
erwin.coumans
2050afaa3c remove binary (BulletMayaPlugin.mll) and fix name BulletMayaPlugin (to match previous NSI Installer script) 2010-01-31 19:38:29 +00:00
erwin.coumans
d734225345 Added initial cmake option to build Maya plugin (Bullet Dynamica), only tested under Windows so far. 2010-01-31 19:20:13 +00:00
erwin.coumans
4140a20552 fixed some compile issue for Mac Dynamica plugin, see
http://code.google.com/p/bullet/issues/detail?id=221

added some missing file for autotools/Makefile.am

fix: btBulletWorldImporter::loadFileFromMemory always returned false, if it was succesful
2010-01-31 16:46:06 +00:00
erwin.coumans
c71b968110 fixes on unix (new lines and case) 2010-01-30 23:48:19 +00:00
erwin.coumans
e57f03599a make Bullet compile on Visual Studio 6 2010-01-30 23:10:12 +00:00
erwin.coumans
788f48643b remove all warnings on Mac OSX Snow Leopard 2010-01-30 22:31:56 +00:00
erwin.coumans
77b773f470 more improvements, copy testFile.bullet to target binary directory (cmake), fix some warnings 2010-01-30 21:46:50 +00:00
erwin.coumans
f9ad5cf587 fixes in serialization, should fix non-Windows platforms. 2010-01-30 21:31:56 +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
rponom
d5f5ddf2f1 Bullet debug draw added
It is off by default, see attributes of dSolverNode to turn it on
2010-01-30 04:21:12 +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
rponom
133bb63dd8 Dynamica export to Bullet .bullet file, and some fixes in Hull scaling (not using btCompoundShape::setLocalScaling but directly appying the scaling to the hull vertices, and caching the local scaling) 2010-01-29 00:03:45 +00:00
rponom
ee3e231be5 + more consistent 'setLocalScaling' for the btCompoundShape. Full non-uniform scaling is not supported when child shapes have a rotation. If any child shapes have rotation, the best you can do is either uniform scaling, or 'baking' the non-uniform scaling into the child geometry (vertices of a convex hull for example)
+ fixed an issue with BulletWorldImporter, btBoxShape implicitShapeDimensions already includes local scaling.
2010-01-28 23:41:09 +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
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
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