Erwin Coumans
c0c4c8ba3f
fix many warnings
...
remove btMultiSapBroadphase.*
make collisionFilterGroup/collisionFilterMark int (instead of short int)
2017-01-15 22:26:11 -08:00
erwincoumans
0c26fee04d
Merge pull request #886 from erwincoumans/master
...
some VR tweaks and bugfix for issue #878
2016-12-11 12:53:47 -08:00
yunfeibai
4af7ee3b2e
Fix a bug when rendering texture.
2016-12-09 17:17:24 -08:00
yunfeibai
388cba152e
Fix error in integration test.
2016-12-07 11:41:55 -08:00
yunfeibai
9c4222ea9e
Modify shader so that the color of the light and the shadow don't affect the ambient component.
2016-12-07 11:33:26 -08:00
yunfeibai
c253c750b9
Expose ambient, diffuse and specular coefficient of the light.
2016-12-06 15:21:35 -08:00
yunfeibai
08b449f149
Adjust magic number to prevent z-fighting.
2016-12-06 13:36:41 -08:00
erwincoumans
e5aea04e23
add back the 'swapBuffers' in VR demo (slightly lower performance, but easier to use demo.
...
fix issue related to TinyRenderer shadowbuffer API change
2016-12-02 13:23:50 -08:00
yunfeibai
a88272de1b
Restore the old constructor for TinyRenderObjectData for backward compatibility.
2016-12-01 16:47:11 -08:00
yunfeibai
e8ff969a6f
Merge remote-tracking branch 'upstream/master'
2016-11-29 14:17:38 -08:00
yunfeibai
b40c9cde96
Add torus shadow render example.
2016-11-29 13:50:49 -08:00
yunfeibai
8aa90a7427
Refactor shader and render pipeline code.
2016-11-29 12:53:50 -08:00
yunfeibai
86c5dfe8f4
Fix the light color issue in box rendering example.
2016-11-29 11:43:52 -08:00
yunfeibai
5fe36ca200
Clean global variables.
2016-11-29 11:11:41 -08:00
yunfeibai
d48b03f23b
Use the barycentric coordinate to get the coordinate in shadow buffer.
2016-11-28 10:13:09 -08:00
yunfeibai
0bc4e0a4c3
Render multiple objects with shadow.
2016-11-27 16:53:15 -08:00
yunfeibai
529274a3f4
Render shadow of torus with shadow buffer and index from triangle order.
2016-11-27 15:32:55 -08:00
yunfeibai
29809a4471
Render depth buffer.
2016-11-23 13:00:26 -08:00
Erwin Coumans
ca71b84913
fix uninitialized m_lightColor (see ExampleBrowser/Rendering/TinyRenderer, Software was black.
2016-11-21 22:33:23 -08:00
yunfeibai
24b3e137a6
Render shadow with depth from light.
2016-11-21 10:21:14 -08:00
yunfeibai
5be4409a1a
Render shadow buffer.
2016-11-21 09:13:20 -08:00
erwincoumans
0d5dcb3cc5
setDebugObjectColor
2016-11-21 07:42:11 -08:00
yunfeibai
93ba8af023
Add shared memory API to change light color.
2016-11-20 12:52:12 -08:00
erwincoumans
36b144ffa6
Merge pull request #769 from iwilkes1/master
...
Add Phong reflection to TinyRenderer
2016-09-21 08:14:18 -07:00
Erwin Coumans
f9679bd594
prevent an issue in TinyRendererSetup example
2016-09-14 00:30:58 +01:00
erwincoumans
4944aca28b
Update our_gl.cpp
2016-09-06 13:26:08 -07:00
Ian Wilkes
2336be02e4
Added Phong refelction to the TinyRenderer Shader.
2016-09-02 11:56:03 -07:00
Ian Wilkes
ba583feb7f
Updated TinyRenderer intensity paramater.
...
Switched from ranging from 0 to 1 - ambient to -1 * (1-ambient) to (1-ambient).
2016-09-02 11:56:03 -07:00
erwincoumans
85fd7f560c
add first draft of contact point query in shared memory API
...
b3SharedMemoryCommandHandle b3InitRequestContactPointInformation(b3PhysicsClientHandle physClient);
void b3SetContactFilterBodyA(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueIdA);
void b3SetContactFilterBodyB(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueIdB);
void b3GetContactPointInformation(b3PhysicsClientHandle physClient, struct b3ContactInformation* contactPointData);
Implemented for PhysicsClientSharedMemory, not for PhysicsDirect yet.
Add btCollisionObject::setUserIndex2
2016-09-01 13:30:07 -07:00
Erwin Coumans
17c16ccfa0
pybullet, deal with overflow of joints (maximum of 128 joints/links per multibody at the moment)
...
increase from 64 to 128 joints in shared memory API/pybullet
fix potential issue in tinyrenderer, related to missing segmentation mask buffer
report error if CMD_REQUEST_ACTUAL_STATE command on a multibody that exceed the number of links,
todo: stream data to allow arbitrary large number of links in shared memory API
2016-08-17 19:35:52 -07:00
Erwin Coumans
238ba8c642
remote a c++11-style constructor
2016-08-12 14:28:02 -07:00
Erwin Coumans
ceceaa16be
make some changes to make the previous example code changes backward compatible
2016-08-12 14:18:46 -07:00
Erwin Coumans
3c30e2f821
add segmentation mask rendering to TinyRenderer and shared memory API
...
similar to the zbuffer, but storing the object index (int) instead of float depth
2016-08-11 14:55:30 -07:00
erwin coumans
75e86051c2
Add inverse kinematics example with implementations by Sam Buss.
...
Uses Kuka IIWA model description and 4 methods:
Selectively Damped Least Squares,Damped Least Squares,
Jacobi Transpose, Jacobi Pseudo Inverse
Tweak some PD values in Inverse Dynamics example and Robot example.
2016-07-24 22:22:42 -07:00
erwin coumans
4a705d1e03
Add kiva_shelf to prepare for picking/grasping task
...
Fix uninitialized variable jointDamping/jointFriction in SDF importer
Add SDF <pose> parsing in visual, inertial, collision elements.
Slight improvement in TinyRender loading performance of largish meshes (30k vertices)
Reduce #define MAX_SDF_BODIES to 500, due to some issue in client code, todo: figure out what the issue is.
b3RobotSimAPI support SDF file loading
Tiny improvement in OpenGL hardware renderer lighting, to distinguish faces without textures
2016-07-14 00:05:57 -07:00
Erwin Coumans
e0c3392cee
don't pass width/height into renderObject
2016-06-07 17:02:47 -07:00
Erwin Coumans
d2e50d045b
fix issues related to camera width/height
...
add width,height as arguments to pybullet.renderImage(x,y,[viewMat4x4],[projMat4x4])
2016-06-07 16:11:58 -07:00
Erwin Coumans
1c7f87aff1
implement first draft of pybullet.renderImage for synthetic camera
...
remove a few debug printf from tinyrenderer
2016-06-06 18:54:05 -07:00
Erwin Coumans
5bf125cab5
fix some compile issues using premake
...
use textured cube/sphere model for test
2016-06-02 13:54:52 -07:00
Erwin Coumans
aa4d2ae01d
initial hookup of TinyRenderer to shared memory interface
2016-06-01 17:47:41 -07:00
erwin coumans
ef85a71d4b
more work on synthetic camera
2016-06-01 11:04:10 -07:00
erwin coumans
0d50d8c73b
Preliminary working version of TinyRenderer for standalone demos,
...
it works without OpenGL dependency now, so it runs in the cloud :-)
Add scaling support for TinyRenderer, remove some un-used normal mapping in TinyRenderer shader, expose light_dir_world,
remove accidental hard-coded path in tga write_tga_file,
Fix InverseDynamicsExampleCreateFunc, enum has to start at 0
2016-05-26 17:36:01 -07:00
Erwin Coumans
535ee33e3b
fix build3/stringify.sh
...
fix some compile issues
2016-05-25 15:37:28 -07:00
erwin coumans
606f78da43
work-in-progress tinyrenderer -> shared memory API synthetic camera image
2016-05-17 23:57:19 -07:00
Erwin Coumans
578e4fc795
compile fixes
2016-05-13 22:10:18 -07:00
erwin coumans
6a9c54c4ef
Remove unused ROS urdf (was replaced by Bullet UrdfParser.
...
Small refactoring for ExampleBrowser: move examples cpp files in the app/executable
Move ExtendedTutorials in its own app/executable as a test.
2016-05-12 23:03:12 -07:00
erwin coumans
0a3efbe349
make standalone versions (console, tinyrender, opengl) of InverseDynamics/InverseDynamicsExample
2016-05-06 13:57:48 -07:00
Erwin Coumans
1d0f038aad
add initial pybullet module, using the shared memory API
...
(for now, start the example browser in 'physics server',
then compile using premake --python option,
then run python in the bin folder (so it finds pybullet.so)
and run the test.py script in examples/pybullet folder.
The robotics shared memory C API is very suitable for this.
2016-04-30 11:18:54 -07:00
Erwin Coumans
ec914b08e7
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2016-04-28 23:13:35 -07:00
Erwin Coumans
aa9a276a71
fix typo in texels flip
...
add support to create a cube in TinyRenderer (quick test)
2016-04-28 23:01:49 -07:00