Commit Graph
6224 Commits
Author SHA1 Message Date
yunfeibai e6d1a8cf97 Swap yaw and pitch in camera computation. Add functions to convert view matrix to camera position, and camera position to camera yaw pitch roll. 2017-06-01 15:30:37 -07:00
erwincoumans 86500004a5 Merge pull request #1160 from erwincoumans/master
Prepare/allow for non-Bullet2-based physics command processor in pybu…
2017-06-01 14:06:14 -07:00
Erwin Coumans aa40b8487f bump up SHARED_MEMORY_MAGIC_NUMBER versioning tag, remove humanoid_running_3.py
bump up pybullet version to 1.1.0
2017-06-01 13:33:53 -07:00
Erwin Coumans 5c6045b61f turn down effect of default specular a bit 2017-06-01 13:15:58 -07:00
Erwin Coumans d744fe10dc compile fix 2017-06-01 12:51:43 -07:00
Erwin Coumans 87293e835c implement specular, URDF non-standard specular part (see sphere2.urdf) and SDF specular support.
pybullet.changeVisualShape(obUid,linkIndex,specularColor=[R,G,B]) and Bullet C-API b3UpdateVisualShapeSpecularColor
Bug fixes in b3ResourcePath::findResourcePath resolution.
add stadium.sdf and roboschool/models_outdoor/stadium assets https://github.com/openai/roboschool/tree/master/roboschool/models_outdoor/stadium
minor fixes to obj2sdf
2017-06-01 12:32:44 -07:00
Erwin Coumans 439e8c84cf add new .obj files for kuka_iiwa/model.urdf 2017-05-31 21:43:09 -07:00
Erwin Coumans 3157093125 Implemented specular reflective lighting for OpenGL 3.x, everything looks shiny (will add APIs to make it less shiny ;-)
Remove roof from kitchens/1.sdf, otherwise shadows and shinyness won't work (light is outside the room, bouncing against roof-top)
Make kuka_iiwa/model.urdf more smooth, use .obj for per-vertex normals (using Blender, import STL, export OBJ, enable triangles, normals and Z-UP, Y forward)
2017-05-31 20:32:45 -07:00
erwincoumans 83f910711a Prepare/allow for non-Bullet2-based physics command processor in pybullet/Bullet-C-API
!!! Make sure to add examples/SharedMemory/PhysicsServerExampleBullet2.cpp to your build system, if needed
Bump up pybullet to version 1.0.9
2017-05-30 19:54:55 -07:00
erwincoumans 130cd74ecb Merge pull request #1158 from erwincoumans/master
add pybullet.multiplyTransforms and pybullet.invertTransform
2017-05-30 10:59:55 -07:00
Lunkhound cc1e6dc269 make MultiThreadedDemo available if threadsafe 2017-05-30 00:47:41 -07:00
Lunkhound a6a0ea5f54 add task scheduler implemented with thread support interface 2017-05-30 00:21:10 -07:00
Lunkhound 562858251a remove bad thread affinity mask setting 2017-05-30 00:09:05 -07:00
Lunkhound ba88d332fb fix crash with out of range thread index 2017-05-29 23:54:15 -07:00
Lunkhound 34e2c1b784 add profiling info 2017-05-29 23:53:35 -07:00
erwincoumans 978dd5844d due to b3Assert, GwenOpenGLTest/premake4.lua depends on Bullet3Common 2017-05-29 22:09:07 -07:00
erwincoumans 4e03c36fa6 add pybullet.multiplyTransforms and pybullet.invertTransform
use btAssert instead of assert (glGetError is really slow)
shift default light-position a little bit, to make faces different color
2017-05-29 21:55:58 -07:00
Benelot cd153eb6a5 Remove graphic instances from previous runs. Still non-deterministic unfortunately. 2017-05-29 23:55:27 +02:00
Benelot f0212cc072 Merge remote-tracking branch 'upstream/master' into 3D-NN-walkers-example 2017-05-29 21:55:12 +02:00
erwincoumans 356d4104f0 Merge pull request #1155 from erwincoumans/master
fix bodyIndex -> bodyUniqueId in pybullet.
2017-05-28 17:30:43 -07:00
erwincoumans 5436b8f048 print better error warning, in case the physics client/server version mismatch.
fix in b3HashString
remove many unused dependencies from kuka_grasp_block_playback.py (time,math, datetime ,numpy,pylab ,sys, os, fnmatch,argparse were not used!)
move block_grasp_log.bin from Bullet3/data to Bullet3/examples/pybullet/examples/data folder.
PhysicsServerCommandProcessor, derive from CommandProcessorInterface to prepare for different back-end implementation
2017-05-28 17:05:18 -07:00
erwincoumans c36792c950 fix bodyIndex -> bodyUniqueId in pybullet. 2017-05-28 13:30:20 -07:00
erwincoumans f9c53b39a2 fix pybullet build on some MSVC versions 2017-05-28 09:48:12 -07:00
Benelot dad9bf40a4 Merge branch 'master' into 3D-NN-walkers-example 2017-05-28 17:16:54 +02:00
erwincoumans 225c603a52 Merge pull request #1152 from erwincoumans/master
expose pybullet changeDynamics(restitution=..., spinningFriction=..., rollingFriction=…
2017-05-27 09:58:47 -07:00
Erwin Coumans b645963879 expose pybullet changeDynamics(spinningFriction=..., rollingFriction=..., restitution=...)
Bullet C-API b3ChangeDynamicsInfoSetSpinningFriction/RollingFriction/Resitution
b3PhysicsParamSetRestitutionVelocityThreshold, / pybullet.setPhysicsEngineParameter restitutionVelocityThreshold:
if the velocity is below this threshhold, the restitution is zero (this prevents energy buildup at near-resting state)
pybullet restitution.py example.
2017-05-26 18:14:38 -07:00
erwincoumans 7d2c609bcc Merge pull request #1151 from erwincoumans/master
also discard pixels in front of nearplane
2017-05-26 10:12:36 -07:00
Erwin Coumans 8c6d4a4c85 also initialize near/far for depth shader in TinyRenderer 2017-05-26 09:45:26 -07:00
Erwin Coumans 9d78809a55 Merge remote-tracking branch 'bp/master' 2017-05-26 09:23:28 -07:00
Erwin Coumans 723b356667 also discard pixels in front of nearplane 2017-05-25 19:55:55 -07:00
erwincoumans f6643b4e5f Merge pull request #1150 from erwincoumans/master
TinyRenderer: discard pixels beyond farplane
2017-05-25 17:52:39 -07:00
Erwin Coumans 2b9c67b07c TinyRenderer: discard pixels beyond farplane
pybullet: printf build date/time
2017-05-25 17:25:14 -07:00
erwincoumans dcdb3d40ba Merge pull request #1149 from erwincoumans/master
use a fixed joint instead of crashing for unsupported joint types (pl…
2017-05-25 14:57:45 -07:00
Erwin Coumans e023c012b4 TinyRendererVisualShapeConverter set near/far for its own camera. 2017-05-25 13:39:36 -07:00
Erwin Coumans e6180ef98a use a fixed joint instead of crashing for unsupported joint types (planar, floating joint) 2017-05-25 13:02:20 -07:00
erwincoumans 4388a6ea02 Merge pull request #1147 from erwincoumans/master
minor fixes, increase max visual shape path length from 128 to 1024 (bump up version of C-API/pybullet, since it breaks binary compatibiltiy)
2017-05-25 11:24:50 -07:00
Erwin Coumans f090752cbb bump up VISUAL_SHAPE_MAX_PATH_LEN from 128 to 1024, some google3 directories are loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong :-) 2017-05-25 10:56:01 -07:00
Erwin Coumans 143a8dd239 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-05-24 19:57:53 -07:00
Erwin Coumans 40db4998b9 Merge remote-tracking branch 'bp/master' 2017-05-24 19:57:28 -07:00
Erwin Coumans 9743bb387c give some pure-virtual methods default empty implementation, avoid breaking some internal research code 2017-05-24 19:30:06 -07:00
Erwin Coumans 1af8939fd2 fix unused variables 2017-05-24 16:44:43 -07:00
erwincoumans 5103f3b72d Merge pull request #1146 from jietan/pullRequest
Pull request to update to the latest minitaur agent and env
2017-05-24 16:26:17 -07:00
erwincoumans 044ac8d10b Merge pull request #1145 from erwincoumans/master
Improve debug text/line rendering, can be use to draw frames and text  in local coordinate of an object / link.
2017-05-24 14:09:17 -07:00
Erwin Coumans 84d09cc18f Split CommonGfxVertex3D into two different ones, GfxVertexFormat0 and GfxVertexFormat1
Rewrite  GLInstancingRenderer::drawTexturedTriangleMesh
2017-05-24 13:05:16 -07:00
Jie Tan 1d0db4ec2e update to the latest agent and environment. 2017-05-24 11:20:42 -07:00
Erwin Coumans 344bb3f350 fix premake4.lua build file 2017-05-24 10:29:22 -07:00
Erwin Coumans 5e2599863d trackObject -> parentObject
trackLinkIndex -> parentLinkIndex
add example debugDrawItems.py
2017-05-24 09:06:15 -07:00
Erwin Coumans 9f7d7fecd5 more rendering fixes 2017-05-23 23:34:55 -07:00
Erwin Coumans df1b5b6ca5 fix shader issue 2017-05-23 23:17:57 -07:00
Erwin Coumans 2d04d39fcf bump up pybullet version, include <string.h> for memset 2017-05-23 22:41:08 -07:00