Commit Graph
97 Commits
Author SHA1 Message Date
erwincoumans 122ceacb6d move OpenCL initialization for the unit tests in a shared header file, and support some basic command-line arguments
--cl_device=1 --cl_platform=1 --allow_opencl_cpu
add chaindemo, test for mass ratios
restore sleeping/activation mode in featherstone demo
Use _VARIADIC_MAX=10 to avoid Google Test issues with Visual Studio 2012, thanks to Mobeen for the report
Enable verbose printf for unit tests
2014-02-11 10:33:00 -08:00
erwincoumans 3768a30bb2 added very crude little LuaDemo, to create physics objects using Lua scripts (very preliminary) 2014-02-06 01:13:31 -08:00
erwincoumans d65cd8060a add Lua and basic Lua->C/C++ integration test, in preparation for Bullet demos setup using Lua scripts. 2014-02-05 19:39:48 -08:00
Erwin Coumans ed12452fe6 update stringify_linux.sh and make shader filename case sensitive correct 2014-02-04 15:45:24 -08:00
Erwin Coumans db188990fc ftello64 -> ftell and fopen64 -> fopen (to make Mac OSX happy)
disable some warning (no idea why weak_link is there)
2014-02-04 14:52:57 -08:00
Erwin Coumans 2a87706114 Revert "fix Mac OSX build (and remove 'weak link' warning)"
This reverts commit 146bbefc03.
2014-02-04 14:44:16 -08:00
Erwin Coumans 146bbefc03 fix Mac OSX build (and remove 'weak link' warning) 2014-02-04 14:05:21 -08:00
Erwin Coumans 94db38358c add zlib/minizip so we can load compressed data (github/git is bad in handling large binary files) 2014-02-04 13:39:55 -08:00
Erwin Coumans ac32af2b1c fix linux build (case sensitive folder Test -> test etc) 2014-01-31 22:40:42 -08:00
Erwin Coumans 183901dc57 remove OpenGL 2.x call, it breaks Mac OSX 2014-01-29 15:47:02 -08:00
Erwin Coumans 71f0537c6e add Bullet 2.x constraint solver tests for hinge, with large mass ratio
experiment with Midi controls in PairBenchmark to tune variables (will move it into a utility class, so every demo can easier use it in the future)
fix issue with broadphase, not initializing all pairs properly at pair array overflow
2014-01-28 10:25:04 -08:00
erwin coumans ec4292ad75 add basic test texture 2014-01-17 22:19:12 -08:00
Erwin Coumans 1a507cca52 remove redundant/wrong glClear
always initialize mpr OpenCL kernels
add a second ragdoll to the demo
2014-01-16 19:18:06 -08:00
Erwin Coumans e1a412454f fixes to improve demos a bit 2014-01-07 16:06:13 -08:00
erwincoumans ed73bce9da Move Bullet 2.x demos in a single demo 'AllBullet2Demos', for now only BasicDemo and FeatherstoneDemo is implemented. 2014-01-05 21:58:30 -08:00
Erwin Coumans 999c5ff766 fix Mac OSX version of preparation of AllBullet2Demo collection 2013-12-19 22:23:50 -08:00
erwin coumans 12dd0daebc prepare for Bullet 2 demo collection 2013-12-19 22:14:37 -08:00
Erwin Coumans 33889a3dc9 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2013-12-13 08:40:18 -08:00
Erwin Coumans f9c22b61af fix Mac OSX build 2013-12-13 08:40:05 -08:00
erwin coumans ba2ba28a89 add Bullet 2.x CPU FeatherstoneMultiBodyDemo 2013-12-09 14:16:51 -08:00
erwincoumans fca6d11381 created new Bullet 2 CPU BasicDemo, using the OpenGL 3 rendering. I will add picking soon. Hold ctrl/alt + mouse to move/zoom camera
remove reference to btGImpact (it is removed now)
2013-12-06 17:48:58 -08:00
erwincoumans 8f3051fdf1 add ImplicitCloth demo, by Stan Melax
add SimpleOpenGL3App, used in ImplicitCloth demo. The Bullet 3.x demos should use this as a template, it will clean up some of the mess.
2013-11-09 12:12:33 -08:00
erwincoumans a6bc61ad1a tweaked the particle demo a little bit 2013-11-08 23:21:01 -08:00
erwincoumans 82a6855f9e fix OSX build 2013-11-05 14:09:35 -08:00
erwincoumans 8faac34801 move ExplititEuler cloth solver to its own file, so it can be replaced by PDB, implicit euler etc
add wireframe toggle ('w' key)
add --paused command-line option to start simulation in paused mode
render cloth using drawPoints method
2013-09-06 18:09:35 -07:00
erwincoumans ef42c17143 add drawPoint/drawLine (both slow) and drawPoints (faster) to GLInstancingRenderer, with GLSL shaders 2013-09-06 12:05:56 -07:00
erwincoumans 181a323631 move b3RaycastInfo.h so it can be used without OpenCL dependency
add b3Assert to make sure m_maxShapeCapacityInBytes is not exceeded in GLInstancingRenderer
prepare for CpuSoftClothDemo
2013-09-02 22:31:48 -07:00
erwincoumans 0ccb6922a8 more work towards CPU version 2013-08-30 08:06:46 -07:00
erwin coumans f12fe0237b Merge branch 'master' of https://github.com/erwincoumans/bullet3 2013-08-22 23:16:02 -07:00
erwin coumans 2c019d579f reduce memory allocation, lack of GPU memory totally destroys performance on my GTX 650M on the Macbook retina
add some keys to toggle gui drawing and shadows
2013-08-22 23:15:37 -07:00
Erwin Coumans 74948ede54 fix Linux build 2013-08-22 17:49:59 -07:00
Erwin Coumans d860e7f51a fix Mac OSX build (compound-compound still broken on OSX)
remove operator= from b3Vector3 to make it POD/Plane Old Data
2013-08-20 12:45:05 -07:00
erwincoumans 677722bba3 support compound versus compound collision shape acceleration on GPU, using aabb tree versus aabb tree.
Remove constructor from b3Vector3,  to make it a POD type, so it can go into a union (and more compatible with OpenCL float4)
Use b3MakeVector3 instead of constructor
Share some code between C++ and GPU in a shared file: see b3TransformAabb2 in src/Bullet3Collision/BroadPhaseCollision/shared/b3Aabb.h
Improve PairBench a bit, show timings and #overlapping pairs.
Increase shadowmap default size to 8192x8192 (hope the GPU supports it)
2013-08-20 03:19:59 -07:00
erwincoumans 3bf003ace1 change lcpp Lua preprocessor, to keep #defines and comments, remove empty lines
remove duplicate data in b3Contact4 (now in btContact4Data shared between CPU/C++ and OpenCL)
OpenCL kernels use #include "Bullet3Collision/NarrowPhaseCollision/shared/b3Contact4Data.h"
Increase number of batches back to 250 (from 50), need to fix this hard coded number (see https://github.com/erwincoumans/bullet3/issues/12)
Work towards GJK/EPA, in addition to SAT/clipping (early on)
2013-08-08 12:24:09 -07:00
erwincoumans 906415429c added (and stripped) a simple C/C++ preprocessor (written in Lua), so the stringifier can handle the #include directive,
and embed the included files directly in the stringified files.
We need this, because we start sharing struct definitions and code between C/C++ and OpenCL (and potentially other languages)
preprocessor is from http://github.com/willsteel/lcpp
2013-08-01 21:05:19 -07:00
erwincoumans 1c0fc6bc2d report when compound pair capacity is exceeded (and avoid crash)
add tetrahedron, reorganized demos
2013-07-30 17:00:50 -07:00
erwin coumans 2793a174c6 added fracture scene .bullet file (doesn't work well yet)
added tetrahedral mesh test scene
expose b3Config as member variable for demos.
move a 'glFlush' out of the innerloop (render performance)
SSE -> SSE2 in premake
fix crash in broadphase (when no aabb's exist)
2013-07-30 12:37:16 -07:00
erwin coumans 310d31f3d5 tweaks to demos, add middle-mouse support, 2013-07-21 00:36:00 -07:00
Erwin Coumans 415c6cd24d fix OSX Multithreading test 2013-07-18 21:21:10 -07:00
erwincoumans 2f0fd80c9c enable poxix MultiThreading sample under Linux 2013-07-18 21:18:09 -07:00
Erwin Coumans 0399b55e1c add modifier support for Mac 2013-07-18 17:29:27 -07:00
erwincoumans 392347b202 use Control or Alt under Linux for Maya style mouse control (Ubuntu hijacks Alt) 2013-07-18 16:28:41 -07:00
erwincoumans a5b73e7c76 use Syoyo Fujita's Wavefront obj loader. made some performance improvements in debug mode for Visual Studio
use Maya style controls under Windows (need to fix Linux/OSX) use ALT+mouse to rotate, and mouse pick to pick objects
2013-07-18 15:55:38 -07:00
erwincoumans b448e56a51 add basic CPU multi threading files from Bullet 2.x (still need to make it work) 2013-07-16 18:16:54 -07:00
erwin coumans 1e31073f4b made the simulation deterministic
disable 'simdwidth' optimization for determinism (need to double-check)
made the spatial batching 3D
2013-07-14 19:16:33 -07:00
erwin coumans 2aad8419b7 add support for picking, using point 2 point constraint
allow to remove constraints by unique id
added tiny wavefront loader, plan to use this instead of existing slow wavefront loader
2013-07-10 00:21:23 -07:00
Erwin Coumans 8faf5bca21 fix OSX build 2013-07-02 21:08:52 -07:00
erwin coumans 0f78c696b5 GWEN improvement: allow to navigate TreeControl and ComboBox using the cursor keys 2013-07-01 23:43:49 -07:00
erwincoumans 898f423f95 fix linux build 2013-07-01 09:45:12 -07:00
erwin coumans 6d6ef5d3dc fixed many memory leaks
added working shadows, using basic shadow mapping
2013-06-30 23:19:14 -07:00