From 0a948b363fc380c1b6f17e735480c2c3e0d905e6 Mon Sep 17 00:00:00 2001 From: Matthieu Gendrin Date: Mon, 26 Feb 2024 14:16:11 +0100 Subject: [PATCH] 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 --- gaussian_renderer/__init__.py | 2 +- submodules/diff-gaussian-rasterization | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gaussian_renderer/__init__.py b/gaussian_renderer/__init__.py index 455dbf1..04728e4 100644 --- a/gaussian_renderer/__init__.py +++ b/gaussian_renderer/__init__.py @@ -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, diff --git a/submodules/diff-gaussian-rasterization b/submodules/diff-gaussian-rasterization index 59f5f77..e8b2476 160000 --- a/submodules/diff-gaussian-rasterization +++ b/submodules/diff-gaussian-rasterization @@ -1 +1 @@ -Subproject commit 59f5f77e3ddbac3ed9db93ec2cfe99ed6c5d121d +Subproject commit e8b24763806263493f74deadf5f18b68f7cab0e1