summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Braza <james.braza@synthego.com>2022-01-02 15:08:16 -0500
committerJames Braza <james.braza@synthego.com>2022-01-02 15:08:16 -0500
commit878e3d57f6f8ed01045dbe1956aeabd727836d03 (patch)
tree145e08dccae34b2e7b7b45aebc24e9bcb440ed72
parentf84b523c0583edd5a667ca867d5e533521a3cbbc (diff)
downloadbullet3-878e3d57f6f8ed01045dbe1956aeabd727836d03.tar.gz
Added comment giving confidence in the changing w x h orderings
-rw-r--r--examples/pybullet/examples/getCameraImageTest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/pybullet/examples/getCameraImageTest.py b/examples/pybullet/examples/getCameraImageTest.py
index ceae99566..7b894e3b0 100644
--- a/examples/pybullet/examples/getCameraImageTest.py
+++ b/examples/pybullet/examples/getCameraImageTest.py
@@ -31,6 +31,7 @@ images = p.getCameraImage(width,
projection_matrix,
shadow=True,
renderer=p.ER_BULLET_HARDWARE_OPENGL)
+# NOTE: the ordering of height and width change based on the conversion
rgb_opengl = np.reshape(images[2], (height, width, 4)) * 1. / 255.
depth_buffer_opengl = np.reshape(images[3], [width, height])
depth_opengl = far * near / (far - (far - near) * depth_buffer_opengl)