Skip to content

Commit

Permalink
fixed tightbbox
Browse files Browse the repository at this point in the history
  • Loading branch information
hbb1 committed May 13, 2024
1 parent adac1e3 commit 7a3657a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda_rasterizer/forward.cu
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ __global__ void preprocessCUDA(int P, int D, int M,
// add the bounding of countour
#if TIGHTBBOX // no use in the paper, but it indeed help speeds.
// the effective extent is now depended on the opacity of gaussian.
float truncated_R = sqrtf(max(9.f + logf(opacities[idx]), 0.000001));
float truncated_R = sqrtf(max(9.f + 2.f * logf(opacities[idx]), 0.000001));
#else
float truncated_R = 3.f;
#endif
Expand Down

0 comments on commit 7a3657a

Please sign in to comment.