From 54f1ca8815a1edd0b48d905aa38af3d26bfb1888 Mon Sep 17 00:00:00 2001 From: Matthieu Gendrin Date: Tue, 27 Feb 2024 10:33:51 +0100 Subject: [PATCH] remove ref to tan_fovx and tan_fovy fovx and fovy are not relevant anymore. Intrinsics are read from projection_matrix. Thus, we don't pass them to the rendering code. Signed-off-by: Matthieu Gendrin --- gaussian_renderer/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gaussian_renderer/__init__.py b/gaussian_renderer/__init__.py index 04728e4..3582c10 100644 --- a/gaussian_renderer/__init__.py +++ b/gaussian_renderer/__init__.py @@ -29,15 +29,9 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor, except: pass - # Set up rasterization configuration - tanfovx = math.tan((viewpoint_camera.FovXright - viewpoint_camera.FovXleft) * 0.5) - tanfovy = math.tan((viewpoint_camera.FovYbottom - viewpoint_camera.FovYtop) * 0.5) - raster_settings = GaussianRasterizationSettings( image_height=int(viewpoint_camera.image_height), image_width=int(viewpoint_camera.image_width), - tanfovx=tanfovx, - tanfovy=tanfovy, bg=bg_color, scale_modifier=scaling_modifier, viewmatrix=viewpoint_camera.world_view_transform,