-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Wrong rendering result of point cloud #373
Comments
Hi @BostonLobster |
@gkioxari Thanks for your reply. and pytorch3d is using the coordinate system below So, by rotating the X-Y plane around z-axis by pi in OpenCV coordinate system, we get pytorch3d coordinate. Anything wrong? |
My above understanding is correct, by rotating X-Y plane around z-axis we can get the right coordinate. The wrong rendering result comes from other mistake made elsewhere. |
Hi, |
@BostonLobster @JasonYinn Hello, |
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
I'm trying to use the code from
render_colored_point.ipynb
to render a point cloud from Scan Net.My procedure is as follows:
ply
point cloud file and convert toPointCloud
instance.PerspectiveCameras
instance with intrinsics and extrinsics.But the rendering result is very different from the ground truth view image, as shown below:
The rendered image is downloaded from jupyter, which is resized, the original size is (1296, 1296). The GT is of (968, 1296).
So you can see the camera is at wrong place! The correct camera pose is shooting to the two screens, but the rendered result is shooting above the room.
I know that the extrinsics of Scan Net is in OpenCV coordinate system, so I check information from https://github.com/facebookresearch/pytorch3d/blob/master/docs/notes/cameras.md and https://github.com/vvvv/VL.OpenCV/wiki/Coordinate-system-conversions-between-OpenCV,-DirectX-and-vvvv.
I found that in OpenCV, the x-axis points right, y-axis points down, so I guess I just need to rotate them around z-axis by pi, so that it is aligned with pytorch3d? I tried to add minus to the first two column of
R
, but got a emtpy rendering result.Instructions To Reproduce the Issue:
Please include the following (depending on what the issue is):
The text was updated successfully, but these errors were encountered: