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 <matthieu.gendrin@orange.com>
This commit is contained in:
Matthieu Gendrin 2024-02-27 10:33:51 +01:00
parent 0a948b363f
commit 54f1ca8815

View File

@ -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,