Depth Maps Rendering for Close Objects Ignoring faces

Post Reply
edwardsmith
Posts: 1
Joined: Wed Jan 29, 2020 10:40 pm

Depth Maps Rendering for Close Objects Ignoring faces

Post by edwardsmith »

Hi,

I am trying to render depth maps using pybullet. I often place my camera quite close to an object in the scene when rendering, and a when this occurs it seems like the faces of the object close to the camera are ignored, and not rendered. I have attached images to show how this is occurring. Is there some setting I am using wrong, or a way to stop this from occurring? This is the code I am using to render the image:
_, _, img, depth, _ = p.getCameraImage(
width=rx,
height=ry,
viewMatrix=vm,
projectionMatrix=pm,
renderer = pbER_BULLET_HARDWARE_OPENGL)

Thank you for the help!
Attachments
This show the depth map with only the opposite wall of the object being rendered, not the closer wall, despite the fact that the camera is in front of the closer wall.
This show the depth map with only the opposite wall of the object being rendered, not the closer wall, despite the fact that the camera is in front of the closer wall.
dpeth_0.png (2.47 KiB) Viewed 5524 times
This shows the object I am rendering fro a distance
This shows the object I am rendering fro a distance
Screen Shot 2020-01-29 at 5.28.51 PM.png (244.83 KiB) Viewed 5524 times
This shows the faces not being rendered when the camera is outside the object
This shows the faces not being rendered when the camera is outside the object
Screen Shot 2020-01-29 at 5.25.36 PM.png (78.9 KiB) Viewed 5524 times
Post Reply