facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.7k stars 1.3k forks source link

It looks like my camera's spatial Camera position has moved backwards, but plot_scene doesn't have the xyz parameter entered, am I parsing the camera parameters wrong? #1775

Closed HongLouyemeng closed 5 months ago

HongLouyemeng commented 5 months ago

code.zip I use the following transformations

image image
HongLouyemeng commented 5 months ago

pyrender can get a no empty result

image
bottler commented 5 months ago

The two pictures do look like slightly different viewpoints. Can you try rendering the mesh? Does it look like the viewpoint in the renderer is ok?

(viewpoint_cameras in plotly_vis only affects the viewpoint / the extrinsics - i.e. where the camera is and which way it faces. It doesn't affect the intrinsics (e.g. the focal length).)

HongLouyemeng commented 5 months ago

The two pictures do look like slightly different viewpoints. Can you try rendering the mesh? Does it look like the viewpoint in the renderer is ok?

(viewpoint_cameras in plotly_vis only affects the viewpoint / the extrinsics - i.e. where the camera is and which way it faces. It doesn't affect the intrinsics (e.g. the focal length).)

Thanks for answering my questions, if I get back to working on the TORCH3D+ renderer I'll keep working on it. I think torch3d is more suited for AI,I'll give it a try on this