Erwin Coumans
77c332bd88
PyBullet: add option to cache graphics shapes for URDF files, handy for benchmarks with many duplicate robots
...
See https://github.com/erwincoumans/pybullet_robots ANYmal.py for an example.
PyBullet: Expose p.setPhysicsEngineParameter(solverResidualThreshold=1e-2) (b3PhysicsParamSetSolverResidualThreshold), increases solver performance a lot
PyBullet: Expose p.setPhysicsEngineParameter(contactSlop) Set it to zero, to avoid issues with restitution.
PyBullet: Expose isNumpyEnabled, return True is PyBullet was compiled with NUMPY support for 'getCameraImage'.
PyBullet: Expose p.ChangeDynamics(objectUid, linkIndex, contactProcessingThreshold), to avoid issues of speculative/predictive contacts with restitution.
See also http://twvideo01.ubm-us.net/o1/vault/gdc2012/slides/Programming%20Track/Vincent_ROBERT_Track_ADifferentApproach.pdf
2018-05-23 13:26:00 +10:00
erwincoumans
034dfba3ae
fix VR controllers only visible in one eye (remove stray glClear for testing planar reflection)
...
PyBullet: force both contactStiffness and contactDamping (report error otherwise)
2018-05-16 14:24:12 -07:00
YunfeiBai
e5036fbc3a
Merge remote-tracking branch 'upstream/master'
2018-05-03 10:48:55 -07:00
YunfeiBai
aa6b8f66e9
Fixed a bug in projective texture shader.
2018-05-03 10:46:59 -07:00
Erwin Coumans
0c706eb08a
fix some incompatibilities between google3/third_party/GL,EGL, glad
2018-05-03 09:06:30 -07:00
Erwin Coumans
85db288a95
App_PhysicsServer_SharedMemory_VR: expose max_num_object_capacity and max_shape_capacity_in_bytes (and shared_memory_key)
...
Default values are:
int maxNumObjectCapacity = 128 * 1024;
int maxShapeCapacityInBytes = 128 * 1024 * 1024;
int shared_memory_key = -1
2018-04-30 23:01:15 +02:00
erwincoumans
b53facfc25
Merge pull request #1629 from erwincoumans/master
...
Preparation to add signed distance field collision detection.
2018-04-12 00:02:25 -07:00
erwincoumans
c2869e0a3c
enable planar reflection in minitaur_gym_env.py and locomotion scenes
2018-04-11 08:50:29 -07:00
erwincoumans
ffc808784b
PyBullet: add planar reflection example,
...
See examples/pybullet/examples/addPlanarReflection.py
2018-04-11 01:03:36 -07:00
YunfeiBai
b032a1fd60
Update the projective texture shader to solve the texture interpolation artifact.
2018-04-09 17:15:42 -07:00
yunfeibai
6b97e1e604
Expose API to set projective texture instead of using global.
2018-03-20 21:28:47 -07:00
yunfeibai
37696dd87e
Add Bullet C API and pybullet API to set projective texture matrices.
2018-03-18 18:45:54 -07:00
yunfeibai
fd7aa8d0e1
Expose using projective texture as a flag in pybullet getCameraImage API.
2018-03-18 17:01:23 -07:00
erwincoumans
94bc897067
Merge pull request #1574 from erwincoumans/master
...
fix glx include
2018-02-22 09:41:01 -08:00
Erwin Coumans
05b02d6b3e
fix glx include
2018-02-22 09:08:10 -08:00
erwincoumans
90b34680b0
Merge pull request #1572 from erwincoumans/master
...
explicitly remove textures during resetSimulation
2018-02-22 08:37:03 -08:00
erwincoumans
73a4334e30
explicitly remove textures during resetSimulation
...
move glViewport to Win32Window
2018-02-21 23:22:16 -08:00
erwincoumans
3508a4523b
Merge pull request #1560 from YunfeiBai/master
...
Add shader and example for projective texture.
2018-02-21 10:23:18 -08:00
erwincoumans
0e0b7cb9f8
glew->glad
2018-02-21 08:59:06 -08:00
Erwin Coumans
9288ea9c6a
fix mac osx build
2018-02-21 08:16:00 -08:00
Erwin Coumans
c2b59776ed
CMakeLists glew to glad
2018-02-20 21:09:31 -08:00
Erwin Coumans
dacafda88a
use glad instead of glew in mac build and pybullet setup.py
2018-02-20 20:09:12 -08:00
Erwin Coumans
b0984de046
preparation to replace glew by glad
2018-02-20 19:44:02 -08:00
yunfeibai
5494aa72fa
Set the perspective projection for projective texture mapping. Change the demo to two bears with the same view projection matrix for the camera and the projector.
2018-02-20 18:32:09 -08:00
Erwin Coumans
8bb40b632b
allow to build GLFW version of Bullet examples on Linux (use premake4_linux --enable_glfw gmake)
2018-02-20 16:21:22 -08:00
erwincoumans
01f58f8f02
PyBullet: soft bodies are rendered, so we don't need to also render wireframes in regular mode.
...
Use glBufferSubData instead of glMapBuffer/glUnmapBuffer, much faster soft body vertex sync.
Don't use a separate btSoftBodyWorldInfo, use the existing one in btSoftMultiBodyDynamicsWorld.
2018-02-18 11:09:42 -08:00
yunfeibai
fb6907aa1b
Merge remote-tracking branch 'upstream/master'
2018-02-15 18:19:29 -08:00
yunfeibai
36dcabbaf5
Merge remote-tracking branch 'upstream/master'
2018-02-15 14:31:34 -08:00
yunfeibai
cf4a0a3503
Add improvement/fix in SortableTransparentInstance back.
2018-02-15 13:19:41 -08:00
yunfeibai
7dbc5626fb
Add the shader files.
2018-02-12 18:19:05 -08:00
yunfeibai
2947cd54ce
Add shader for projective texture.
2018-02-11 21:29:02 -08:00
yunfeibai
08548e1ef0
Add example for projective texture.
2018-02-11 13:50:45 -08:00
Erwin Coumans
508550c5e9
fix premake build for linux, thanks to @consultit
...
See also issue #1538
2018-02-09 18:46:26 -08:00
Erwin Coumans
dcdec2236f
PyBullet/rendering: improve sorting of transparent objects
2018-02-05 23:48:39 -08:00
erwincoumans
13d67e8fc3
add bicycle resources and testBike.py script (use python -m pybullet_envs.examples.testBike after pip install pybullet)
...
center shadow around camera target
2018-01-31 22:17:15 -08:00
Erwin Coumans
e97b751781
further work on urdfEditor.py, fix some serialization issues
2018-01-08 12:25:56 -08:00
erwincoumans
29aa9cb789
Bullet bump up to version 2.88
...
add preliminary support to import btMultiBody from a .bullet file (will help save/restore state)
fix some Windows char/widechar issues
2017-11-22 18:12:02 -08:00
d3x0r
8e75d4375b
Fix missing DWORD variable (lost in merge port)
2017-10-28 14:50:44 -07:00
d3x0r
88b49947b5
Composite of fixed code for mingw64(on windows) and general fixes for msvc.
...
1) (win32window) don't convert char to wide, use char direct to window.
2) (CMakeLists) Don't link one library as static CPPLIB and no others (mismatched allocations)
3) (macros) Fix Gwen macros for mingw64 on windows build. (changes are by compiler(msc_ver) not platform)
4) (FileUtils) sprintf_s reference by platform, not compiler (mingw64 support)
5) (b3OpenCLUtils) fix bad define name _MSVC_VER->_MSC_VER
6) (compoundCollision) remove unused variables, simplify operation.
7) (impulseconstraint) remove duplicated code block
2017-10-28 14:42:38 -07:00
erwincoumans
ed8de36ffa
pybullet: allow to replace existing text, to avoid flickering (remove/add)
...
allow texture caching (disable using the disable file caching)
2017-10-25 08:15:01 -07:00
Erwin Coumans
26d32f2aa8
improve loading performance of large textures:
...
option to disable tinyrenderer, use p.configureDebugVisualizer(p.COV_ENABLE_TINY_RENDERER,0)
also make sure to use p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) before loadURDF, and enable rendering afterwards using p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1)
reorder 2 loops, making the flip texels twice as fast (cache coherency),
single memcpy of entire texture in tinyrenderer, instead of per-pixel copy (memory layout is the same)
add lots of B3_PROFILE timings, to see where time is going
2017-10-06 13:46:24 -07:00
erwincoumans
e0dbd25cb7
remove some unneeded/debug BT_PROFILE markers
2017-09-29 07:50:48 -07:00
erwincoumans
6d68a67c79
fix a bug in a changeVisualShape/texture selection, out-of-bounds check was using the wrong array.
...
May fix some internal texture mug bug.
2017-09-25 11:11:48 -07:00
Erwin Coumans
ae8f12e8ba
more fixes for retina + glfw + opengl2 fallback
2017-09-20 13:09:18 -07:00
Erwin Coumans
fb05763093
support retina / scale factor between pixel size and screen coordinate size
2017-09-20 10:07:18 -07:00
Erwin Coumans
3e0b72b632
allow to configure glfw on Mac OSX, disabled by default
2017-09-20 08:12:59 -07:00
erwincoumans
b079277d51
minor fixes in GLFWOpenGLWindow
2017-09-19 21:40:17 -07:00
erwincoumans
cadce37141
add GLFWOpenGLWindow and glad (replacement for glew)
2017-09-19 21:16:24 -07:00
erwincoumans
390f111547
enable option to use GLFW, instead of our own cross-platform X11/Cocoa/Windows OpenGLWindow classes
2017-09-19 21:10:54 -07:00
erwincoumans
cc9995d44b
fix uninitialized camera position in 'VR' / 'camera rendering' mode (causing broken specular reflections in VR)
...
use debug visualizer camera viewmatrix/projection matrix if not provided, in ER_BULLET_HARDWARE_OPENGL mode.
fix broken changeRGBAColor implementation, thanks to Laura for the report!
2017-09-12 22:14:00 -07:00