Imagine you (taker) are standing behind camera, i.e., taking a photo using the camera, and a viewer is standing in front of camera.
- +X right
- +Y up
- +Z towards taker aka backwards, so "look-at" direction is -Z
- +X right
- +Y down
- +Z towards viewer aka forwards, so "look-at" direction is +Z
- +X left
- +Y up
- +Z towards viewer aka forwards, so "look-at" direction is +Z
Assume you have (N, 3) numpy array pointcloud.
- OpenCV to/from OpenGL:
new_pts = pts * np.array([1.0, -1.0, -1.0] - OpenGL to/from PyTorch3D:
new_pts = pts * np.array([-1.0, 1.0, -1.0] - OpenCV to/from PyTorch3D:
new_pts = pts * np.array([-1.0, -1.0, 1.0]