Commit Graph
9380 Commits
Author SHA1 Message Date
erwincoumans c037d9ba27 Merge pull request #4382 from ManuCorrea/fix-points
Added fix for deleting debug points with life time.
2023-02-24 10:32:04 -08:00
yo 8549f00502 Added fix for deleting debug points with life time. 2022-12-13 18:39:21 +01:00
erwincoumans 2c204c49e5 Merge pull request #4284 from vitalybuka/master
Initialize vertexSource
3.25
2022-09-24 20:00:36 -07:00
erwincoumans 327336d80b Merge pull request #4314 from mahiuchun/core
Use OpenGL 3.3 core profile in eglCreateContext().
2022-09-24 19:59:02 -07:00
erwincoumans dad061fc13 Merge pull request #4295 from ShoYamanishi/improvement_lemke_leaving_variable
fix: improve the lexico-minimum finder in LemkeAlgorithm.
2022-09-02 10:17:14 -07:00
erwincoumans daadfacfff Merge pull request #4309 from vitalybuka/box
Initialize 4th component of btVector3
2022-08-16 21:47:10 -07:00
erwincoumans fd2fe1365a Merge pull request #4321 from crewmatt/master
Update btSoftBody to handle close to degenerate triangles.
2022-08-16 21:45:01 -07:00
Matt Bennice ee0100abbf compare to SIMD_EPSILON. 2022-08-11 14:00:12 -07:00
Matt Bennice 555c0c6cd9 Remove the duplicated code outside of else 2022-08-11 11:55:50 -07:00
Matt Bennice 82b7fa6df0 Update parameters to be const. 2022-08-11 11:46:39 -07:00
Matt Bennice c7a67d509e Update btSoftBody to handle close to degenerate triangles. 2022-08-11 11:09:08 -07:00
Hill Ma dfdb6e2db9 Use OpenGL 3.3 core profile in eglCreateContext().
- Similar attributes are already used in GLFWOpenGLWindow.cpp.
- This could avoid setting environment variables when using old Mesa where OpenGL compatibility profile is limited to 3.1.
2022-08-07 11:46:02 -07:00
Vitaly Buka acbeea543b Initialize 4th component of btVector3
It's used in btVector3::setMax
2022-07-22 11:08:39 -07:00
Sho Yamanishi d19a418728 fix: improve the lexico-minimum finder in LemkeAlgorithm.
The following issues in btLemkeAlgorithm::findLexicographicMinimum() are addressed in this commit.

- The z_0 column located at A(*,2*dim), is used for lexico minimum test, which should not be used.
- If the check on the 1st column 'q' produces multiple minimums due to generacy,
  and if it contains z_0, the tie must be broken in favor of z_0 and return,
  which is not performed in the original.

- The 1st part to construct 'Rows' is unnecessary.
- The 2nd part has three nested loops with brute-force search, which is inefficient.

The improved version performs the lexico minimum test column-by-column
from the left-most column of (-B^{-1}q:B^{-1}).
If the test finds a single row, it returns it.
If the test finds multiple rows and if they contain z_0, it returns z_0.
Otherwise, it moves on to the next column.
Please see  2.2.2 "Pivot Step" of
    K. Murty, "Linear Complementarity, Linear and Nonlinear Programming" Heldermann Verlag, Berlin, 1998
for the algorithm details.

Some performance tests are done and non-negligible improvment was observed.
Please see https://github.com/ShoYamanishi/AppleNumericalComputing/tree/main/14_lcp for the test details.
2022-06-30 19:10:24 +02:00
Vitaly Buka 6626ed1a89 Initialize vertexSource
Default constructor of btVector3 does not initialize the object.
This fixes Memory Sanitizer reports.
2022-06-15 15:17:51 -07:00
erwincoumans a1d96646c8 Merge pull request #4118 from dbartolini/fix-warning
Fix indentation
2022-05-26 23:12:33 -04:00
erwincoumans 466b76680b Merge pull request #4146 from petershh/patch-1
Add explicit int cast to avoid conversion warning
2022-05-26 23:10:40 -04:00
erwincoumans 19aa740d84 Merge pull request #4269 from erwincoumans/master
OpenAI Gym API change: add mode argument to render method
2022-05-20 12:35:28 -07:00
Erwin Coumans 4ca2de2fd7 Merge remote-tracking branch 'bp/master' 2022-05-20 12:32:22 -07:00
Erwin Coumans 7ba2965a22 bump up PyBullet to version 3.25 2022-05-20 12:21:34 -07:00
Erwin Coumans 56186db344 disable the early out, it has some issues.
see https://github.com/bulletphysics/bullet3/issues/4263
2022-05-20 12:18:37 -07:00
erwincoumans 2ad5f5a7d7 Merge pull request #4264 from akien-mga/fix-Wunused-but-set-variable
Fix `-Wunused-but-set-variable` in debug code
2022-05-20 12:14:30 -07:00
Erwin Coumans b9df2190f1 OpenAI Gym API change: add mode argument to render method 2022-05-20 11:16:19 -07:00
Rémi Verschelde cc3f3cf7ca Fix -Wunused-but-set-variable in debug code 2022-05-16 16:07:29 +02:00
erwincoumans 7dee3436e7 Merge pull request #4252 from erwincoumans/master
manually copy data, to avoid possible memory leaks.
Thanks to Jason Peng and Gilbert Feng for the report and reproduction case.
3.24
2022-04-25 19:39:24 -07:00
Erwin Coumans 657f347223 Merge remote-tracking branch 'bp/master' 2022-04-25 19:38:10 -07:00
erwin coumans fdab95dbab Merge branch 'master' of github.com:erwincoumans/bullet3 2022-04-25 19:32:45 -07:00
erwin coumans a899725cc6 clear the m_userVisualShapeHandles at resetSimulation to avoid memory build-up (not a leak at exit, since memory was del-allocated in the destructor) 2022-04-25 19:32:25 -07:00
Erwin Coumans ae4c1f8e72 bump up pybullet to 3.24 2022-04-25 18:33:59 -07:00
erwin coumans 9185f93174 manually copy data, to avoid possible memory leaks. 2022-04-25 18:31:07 -07:00
erwincoumans e95657f80f Merge pull request #4251 from erwincoumans/master
remove 'override' since Bullet uses C++2003
3.23
2022-04-24 16:50:07 -07:00
Erwin Coumans 9eb945b1e8 Merge remote-tracking branch 'bp/master' 2022-04-24 16:48:57 -07:00
Erwin Coumans 968b4356dc bump up pybullet version to 3.23 2022-04-24 16:48:28 -07:00
Erwin Coumans 957a46d840 Merge branch 'master' of github.com:erwincoumans/bullet3 2022-04-24 16:13:14 -07:00
Erwin Coumans a3ec165915 remove the 'override' keyword, Bullet is C++2003 2022-04-24 16:12:40 -07:00
erwincoumans 617df44898 Merge pull request #4248 from CrosRoad95/patch-1
Allow delivered classes to access unscaled points
2022-04-23 15:52:39 -07:00
erwincoumans ce23bb9dce Merge pull request #4249 from erwincoumans/master
fix for debug lines / point rendering, introduced in PR #3996
2022-04-23 15:52:10 -07:00
Erwin Coumans f263c422e2 Merge branch 'master' of github.com:erwincoumans/bullet3 2022-04-23 14:00:22 -07:00
Erwin Coumans 31b9be82a1 revert lines glsl shader, and add points glsl shader for instanced rendering of point cloud. 2022-04-23 13:56:40 -07:00
erwincoumans 0edcbd693a Merge pull request #4241 from erwincoumans/master
remove dependency on Examples from src folder.
2022-04-23 06:25:00 -07:00
Sebastian Jura 2a8d463fd3 Allow delivered classes to access unscaled points 2022-04-22 18:09:49 +02:00
Erwin Coumans 4f0673810c move loadDeformableState into CustomSoftBodyHelper, Bullet/src is not allowed to depend on Bullet/Examples 2022-04-18 21:17:21 -07:00
erwincoumans cd771af26f Merge pull request #4228 from Teemperor/FixUninitRead
Fix uninitialized read in rpyFromMatrix
2022-04-14 21:55:52 -07:00
erwincoumans 31aeeadb2d Merge pull request #4234 from szabolcsdombi/szabolcsdombi-patch-1
fix missing getTransformB in btMinkowskiSumShape
2022-04-14 21:55:29 -07:00
Szabolcs Dombi aef1d3e27d fix missing getTransformB in btMinkowskiSumShape
- also keep original method with different casing for backward compatibility reasons
2022-04-14 17:10:40 +03:00
Raphael Isemann 772dcf57ff Fix uninitialized read in rpyFromMatrix
The computation of `rpy(1)` tries to take the sin of `rpy(0)` (which is only
initialized a line later).
2022-04-02 00:56:14 +02:00
erwincoumans e306b274f1 Update VERSION 3.22b 2022-03-29 21:03:06 -07:00
Daniele Bartolini 66012fe215 Fix indentation 2022-03-28 21:57:41 +02:00
Erwin Coumans d3b4c27db4 bump up version to 3.22 2022-03-25 19:59:28 -07:00
erwincoumans 22d9eec148 Merge pull request #4219 from erwincoumans/master
remove thread import, it is not needed and required C++11
3.22a
2022-03-25 19:56:39 -07:00