gaussian-splatting
gaussian-splatting copied to clipboard
Computing Gaussians Directions
Hi!
I noticed that in the cameras.py script, you invert the world view transform before computing the camera center:
self.camera_center = self.world_view_transform.inverse()[3, :3]
If I understand correctly, this means the camera_center is in fact the world center in the camera world coordinates. In the gaussian_renderer/init.py script (and in the CUDA code too), you compute the Gaussian direction like this:
dir_pp = (pc.get_xyz - viewpoint_camera.camera_center.repeat(pc.get_features.shape[0], 1))
From what I understand, px.get_xyz is in the world coordinate system. This would mean the vectors in this line of code are not in the same coordinate system.
Am I missing something?