Commit Graph

247 Commits

Author SHA1 Message Date
=
27aa959059 fix some btMultiBody URDF conversion issues in ImportURDFSetup
remove various vertex format structures and use GLInstanceVertex from #include "OpenGLWindow/GLInstanceGraphicsShape.h"
btMultiBody::setupPrismatic takes an additional argument to allow a shift of inertia tensor, relative to the joint frame (link frame at q=0)
2015-02-12 09:11:55 -08:00
Erwin Coumans
70221aeb3e add RenderInstancingDemo
allow to use OpenGL2 or OpenGL3 in same binary (will add command-line switch)
2015-02-04 16:56:30 -08:00
erwincoumans
bd16df8dd6 add basic debug drawing interface for btMultiBodyPoint2Point constraint
add basic debug drawing drawText3D in SimpleOpenGL3App
remove a few warnings
add drawTexturedRect3D to GLPrimitiveRenderer to support debug drawing
2015-01-27 10:45:56 -08:00
Erwin Coumans
51f41d0cfc fix issue, when debug drawer doesn't exist don't try to use it
enable simulation by default (was accidently switched off at startup of AllBullet2Demos)
2015-01-22 18:28:00 -08:00
erwincoumans
a159fbac69 Improved URDF support for btMultiBody and separate graphics/collision/inertial frames and shapes
Fix WinXP GetTickCount64 with a typedef
Expose debug drawing mode/flags in UI (hot keys A,D,L,W for now, buttons later)
GLInstancingRenderer: tweak near/far planes to allow closer approach of camera
btDiscreteDynamicsWorld: enable debug drawing for btGeneric6DofSpring2Constraint
btMultiBodyDynamicsWorld: enable basic debug drawing for btMultiBody
btMultibody: allow center-of-mass shift for prismatic and fixed constraint
2015-01-22 17:56:24 -08:00
erwin coumans
a6bf3d023e update interfaces for GL2 2014-12-16 17:20:37 -08:00
erwin coumans
548fe5b04e fix crash in BasicDemo
add small experiments to distribute points on a sphere
prepare for coordinate frame demo (incomplete)
fix/hack around gwen update of scroll bars and Focu
2014-12-16 14:27:38 -08:00
erwin coumans
122fabac87 prepare to create coordinate frame demo, minor cleanup for create funcs in demo entries,
fix r2d2.urdf inertia
2014-12-12 18:14:49 -08:00
erwin coumans
eafbf817c3 fix MSVC 2013 compilation (std::min needs #include <algorithm>
add example use of GJK+MPR in VoronoiFractureDemo
2014-11-05 08:58:24 -08:00
Erwin Coumans
5264fc3006 disable work-in-progress softbody demo 2014-11-02 13:26:25 -08:00
Erwin Coumans
f25b5fb17a placeholder for soft body 2014-10-31 16:10:28 -07:00
Erwin Coumans
65225575ed render the tetrahedral mesh (no mesh normals) 2014-10-31 15:24:07 -07:00
Erwin Coumans
eac8b32782 add very basic multibody vehicle
tweak finite element experiment with parameter
2014-10-31 14:14:45 -07:00
Erwin Coumans
91bcb055db initialize variable to fix FEM nodes 2014-10-31 09:57:08 -07:00
=
83ccc5b2c5 fix Mac build 2014-10-29 13:56:32 -07:00
erwin coumans
8aaf5a5019 add btFileUtils::toLower to convert a string (char*) to lower case
URDF import demo: add COLLADA .dae file support
add FiniteElementMethod demo, extracted from the OpenTissue library (under the zlib license)
don't crash if loading an invalid STL file
add comparison with Assimp for COLLADA file loading (disabled by default, to avoid library dependency)
Gwen: disable some flags that make the build incompatible
2014-10-29 13:39:53 -07:00
erwin coumans
4b665fa82b add btFileUtils::toLower to convert a string (char*) to lower case
URDF import demo: add COLLADA .dae file support
add FiniteElementMethod demo, extracted from the OpenTissue library (under the zlib license)
don't crash if loading an invalid STL file
add comparison with Assimp for COLLADA file loading (disabled by default, to avoid library dependency)
Gwen: disable some flags that make the build incompatible
2014-10-29 13:18:34 -07:00
erwin coumans
a59bedd745 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2014-10-22 14:47:07 -07:00
erwin coumans
1ce647742c fix build 2014-10-22 14:46:48 -07:00
erwin coumans
2e1cbc0133 add basic concept demo, Coordinate System for a start.
set the up axis for some of the demos.
2014-10-22 11:17:13 -07:00
Erwin Coumans
2965087110 remove unnecessary header 2014-10-21 18:06:36 -07:00
Erwin Coumans
bb9ea22bf0 fix mac build 2014-10-21 17:49:57 -07:00
erwin coumans
579b34d2e0 Added a basic COLLADA .dae importer mainly to support URDF loading (URDF can refer to COLLADA .dae or STL .stl for mesh support)
It is fairly limited, only supports loading <geometry> with triangulated meshes, no material loading
I will extend this with COLLADA Physics support.
2014-10-21 17:44:54 -07:00
erwin coumans
1baf2e5cc6 add support to btHingeConstraint to set/get ERP, example use:
hinge->setParam(BT_CONSTRAINT_ERP,0.5);
btScalar erp = hinge->getParam(BT_CONSTRAINT_ERP);
Also, preliminary support for status bar messages in demo framework.
2014-10-17 13:05:53 -07:00
erwin coumans
c0b4871f6c fix build error in SupportFuncDemo.h 2014-10-17 10:19:16 -07:00
Erwin Coumans
eda1ff77db add alpha blendering option (disabled by default) using w component of color
add low-level support function demo (test)
2014-10-15 18:05:11 -07:00
Erwin Coumans
ce0ad64475 fix max osx build 2014-09-29 10:37:39 -07:00
Erwin Coumans
84288952fc enable OpenGL3 by default (part of work-in-progress refactor) 2014-09-23 18:28:49 -07:00
Erwin Coumans
e314f56f9d refactor to allow various gfx backends (work-in-progress) 2014-09-23 18:27:16 -07:00
=
f395a5d031 split Wavefront .obj to graphics conversion in a reusable file (Wavefront2GLInstanceGraphicsShape.*) 2014-09-16 14:22:09 -07:00
Erwin Coumans
07e2dcc749 minor cleanup of btgui/demo3 stuff, much more demo cleanup is needed
moved some files in btgui/Bullet3AppSupport
2014-09-16 12:08:24 -07:00
erwincoumans
11ded54a04 call 'updateCamera' in GpuDemos. 2014-09-12 09:51:01 -07:00
Erwin Coumans
a26f9c1871 premake: use *.cpp insteadl of **.cpp 2014-09-05 11:22:25 -07:00
Erwin Coumans
0125324bd6 consolidate files into btgui/OpenGLWindow (from FontFiles/OpenGLTrueTypeFont)
consolidate stringify_linux/_osx into stringify.sh
2014-09-03 09:52:31 -07:00
Erwin Coumans
f199a4a972 add fileOpenDialog and enable loading of urdf from GUI
(will add .bullet file support soon)
Uses native Windows (getFileOpenFileName) and Mac OSX NSOpenPanel,
on Linux using pipe popen to zenity)
2014-08-31 11:53:44 -07:00
erwin coumans
dc16655d35 more bug fixes 2014-08-28 19:01:56 -07:00
erwin coumans
89addd438e add 'fixed' joint for btMultiBody
improve btMultiBody version of URDF reader (still work-in-progress)
enabled planar joint for btMultiBody (untested)
enable loading from relative path for .stl meshes
2014-08-28 18:42:08 -07:00
Erwin Coumans
3c558ec995 explicitly deserialize btCapsuleShape date (margin, scaling, halfextents), because the API modifies them 2014-08-26 17:21:08 -07:00
Erwin Coumans
a0778a1d49 CMakeLists.txt: OSX check is below 10.9 (not below 10.10), and add new files 2014-08-26 11:37:00 -07:00
Erwin Coumans
2b35911f2a X11OpenGLWindow: create stencil buffer for shadows in OpenGL2 mode (OpenGL3 uses shadow maps)
Add 'createCollisionObjectGraphicsObject' API for CommonPhysicsSetup
Add 'pthread' dependency as workaround for NVIDIA graphics driver issue
(see //See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642
)
2014-08-26 11:28:44 -07:00
Erwin Coumans
8e64ee57c9 fix a few warnings, and matching class/struct in forward declaration 2014-08-22 18:15:17 -07:00
Erwin Coumans
2c19a27694 add missing ConstraintPhysicsSetup.* files 2014-08-22 14:50:42 -07:00
Erwin Coumans
954d488756 cmake+premake disable OpenGL 3 demos on Mac OSX versions below 10.9
See also http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=10073
Move ConstraintPhysicsSetup to Demos3/bullet3/ConstraintDemo
2014-08-22 14:41:21 -07:00
erwincoumans
bc96d5e82c Update ImportURDFSetup.cpp
fix signed/unsigned warning
2014-08-22 11:45:17 -07:00
Erwin Coumans
af5883c6e8 remove a lot of warnings (more todo in demos and serialization code) 2014-08-22 10:29:05 -07:00
Erwin Coumans
5834547368 fix more warnings in BulletCollision, and fix CMakeLists for Linux 2014-08-21 15:54:50 -07:00
Erwin Coumans
4af9c5a4c9 remove some warnings 2014-08-21 13:32:32 -07:00
Erwin Coumans
ed637a6942 fix mac build 2014-08-20 17:24:12 -07:00
Erwin Coumans
d4e4fdc2c5 fix Linux and Cmake build 2014-08-20 16:48:46 -07:00
Erwin Coumans
7b28e86c7b add improved btGeneric6DofSpring2Constraint, thanks to Puhr Gabor and Tamas Umenhoffer!
improved the new demo testbed (work-in-progress)
add basic Lua demo, import URDF test, STL import, obj import
2014-08-20 16:28:16 -07:00