mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2024-11-22 16:28:32 +00:00
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:
parent
5db5c254f4
commit
0a948b363f
@ -41,7 +41,7 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor,
|
|||||||
bg=bg_color,
|
bg=bg_color,
|
||||||
scale_modifier=scaling_modifier,
|
scale_modifier=scaling_modifier,
|
||||||
viewmatrix=viewpoint_camera.world_view_transform,
|
viewmatrix=viewpoint_camera.world_view_transform,
|
||||||
projmatrix=viewpoint_camera.full_proj_transform,
|
projmatrix=viewpoint_camera.projection_matrix,
|
||||||
sh_degree=pc.active_sh_degree,
|
sh_degree=pc.active_sh_degree,
|
||||||
campos=viewpoint_camera.camera_center,
|
campos=viewpoint_camera.camera_center,
|
||||||
prefiltered=False,
|
prefiltered=False,
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 59f5f77e3ddbac3ed9db93ec2cfe99ed6c5d121d
|
Subproject commit e8b24763806263493f74deadf5f18b68f7cab0e1
|
Loading…
Reference in New Issue
Block a user