Skip to content

does SfMPerspectiveCameras workable? #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
achao2013 opened this issue Apr 8, 2020 · 2 comments
Closed

does SfMPerspectiveCameras workable? #146

achao2013 opened this issue Apr 8, 2020 · 2 comments
Labels
how to How to use PyTorch3D in my project question Further information is requested

Comments

@achao2013
Copy link

achao2013 commented Apr 8, 2020

❓ Questions on how to use PyTorch3D

I want to use SfMPerspectiveCameras to render a hunman face obj(with texturemap, x,y,z ~[-1,1]),but it seams that there are something wrong,the rendered result is strange:
image

SfMPerspectiveCameras(device=device, focal_length=np.array([[256,256]]), principal_point=np.array([[256,256]]), R=np.eye(3).reshape(1,3,3),T=np.array([[0,0,0]
]))
does i make a mistake or this function is not ready?

@nikhilaravi nikhilaravi added question Further information is requested how to How to use PyTorch3D in my project labels Apr 8, 2020
@achao2013
Copy link
Author

@nikhilaravi can you tell me if the SfMPerspectiveCameras class is ready

@gkioxari
Copy link
Contributor

Hi @achao2013
We have added a note on cameras

https://github.com/facebookresearch/pytorch3d/blob/master/docs/notes/cameras.md

Note that by default PyTorch3D assumes assumes camera parameters defined in NDC space. Since 57a22e7, SfMPerspective and SfMOrthographic accept parameters both in NDC and screen space. Please read the note and the code for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how to How to use PyTorch3D in my project question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants