raster_settings pass projection_matrix instead of full_projection_transform to cuda code

full_projection_transform is the multiplication of view_matrix and
projection_matrix. Thus, passing (view_matrix, projection_matrix) is
equivalent to (view_matrix, full_projection_transform).

Passing projection_matrix as arguments to rasterize_gaussians enables
to get intrinsics informations in the rendering code. Since we'll need
central point (cx, cy), this is the aim of this refacto commit.

Signed-off-by: Matthieu Gendrin <matthieu.gendrin@orange.com>
This commit is contained in:
Matthieu Gendrin 2024-02-26 14:16:11 +01:00
parent 5db5c254f4
commit 0a948b363f
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor,
bg=bg_color,
scale_modifier=scaling_modifier,
viewmatrix=viewpoint_camera.world_view_transform,
projmatrix=viewpoint_camera.full_proj_transform,
projmatrix=viewpoint_camera.projection_matrix,
sh_degree=pc.active_sh_degree,
campos=viewpoint_camera.camera_center,
prefiltered=False,

@ -1 +1 @@
Subproject commit 59f5f77e3ddbac3ed9db93ec2cfe99ed6c5d121d
Subproject commit e8b24763806263493f74deadf5f18b68f7cab0e1