Skip to content

Commit

Permalink
Added comment about why H x W differ from expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Jan 2, 2022
1 parent 72dc1bb commit 0e114e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/pybullet/examples/pointCloudFromCameraImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def getRayFromTo(mouseX, mouseY):

img = p.getCameraImage(imgW, imgH, renderer=p.ER_BULLET_HARDWARE_OPENGL)
rgbBuffer = np.reshape(img[2], (imgH, imgW, 4))
depthBuffer = np.reshape(img[3], [imgW, imgH])
# Note: this depth buffer's reshaping does not match the [w, h] convention for
# OpenGL depth buffers. See getCameraImageTest.py for an OpenGL depth buffer
depthBuffer = np.reshape(img[3], [imgH, imgW])
print("rgbBuffer.shape=", rgbBuffer.shape)
print("depthBuffer.shape=", depthBuffer.shape)

Expand Down

0 comments on commit 0e114e9

Please sign in to comment.