pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Mesh gets cut while rendering

Open abhimanyuchadha96 opened this issue 1 year ago • 1 comments

If you do not know the root cause of the problem / bug, and wish someone to help you, please post according to this template:

🐛 Bugs / Unexpected behaviors

As seen in the images below, the mesh gets cut while getting rendered from different angles.

GLB file in viewer:-

Screenshot 2024-01-08 at 2 49 49 PM

Rendered Image from PyTorch3D:- render_1 render_2

NOTE: Please look at the existing list of Issues tagged with the label 'bug`. Only open a new issue if this bug has not already been reported. If an issue already exists, please comment there instead..

Instructions To Reproduce the Issue:

R, T = look_at_view_transform(elev=50, dist=230, azim=180) Tried other options like at = ((1, 1, 1),) but the results were the same.

All other camera parameters are default taken from https://colab.research.google.com/github/facebookresearch/pytorch3d/blob/stable/docs/tutorials/render_textured_meshes.ipynb#scrollTo=CDQKebNNfBMI

abhimanyuchadha96 avatar Jan 08 '24 22:01 abhimanyuchadha96

Can you try playing with the znear and zfar inputs to the init of the FoVPerspectiveCameras ? Things too near or too far from the camera are deliberately ignored, but you can change what is "too near/far".

bottler avatar Jan 09 '24 09:01 bottler