Open hturki opened 1 year ago
I have a similar question: why is the formula provided here for calculating the projection matrix K different from the matrices given by OpenGL? Why isn't K[2,3] multiplied by a coefficient of 2, and why is K[3,2] 1 instead of -1? The left image is from gsplat, and the right image is from OpenGL. Looking forward to your response!
Thanks for the helpful project! Would it be possible to clarify how you derive the K matrix mentioned in https://docs.gsplat.studio/conventions/data_conventions.html given fx, fy, cx, cy (which may not be centered)? The internet gives different slightly different answers depending on the source (ie: some axes will be negative or not) and it would be very helpful to have this explicitly confirmed (and whether it lines up with the official GS 3D implementation).
I think it will be work that replacing top、bottom、right and left use function as follows: top = n cy / fy bottom = -n (H - cy) / fy right = n (W - cx) / fx left = -n cx / fx
Thanks for the helpful project! Would it be possible to clarify how you derive the K matrix mentioned in https://docs.gsplat.studio/conventions/data_conventions.html given fx, fy, cx, cy (which may not be centered)? The internet gives different slightly different answers depending on the source (ie: some axes will be negative or not) and it would be very helpful to have this explicitly confirmed (and whether it lines up with the official GS 3D implementation).