mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2024-11-25 13:26:47 +00:00
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:
parent
0a948b363f
commit
54f1ca8815
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user