Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass near_n and far_n as an argument #14

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Pass near_n and far_n as an argument #14

wants to merge 13 commits into from

Conversation

Tordjx
Copy link

@Tordjx Tordjx commented Jun 25, 2024

Hi there!

I noticed that the near and far plane distances of the view frustum were hardcoded in auxillary.h. This meant that the znear and zfar values were not considered by the rasterizer's visibility condition.

I modified the code so that these values are no longer constants but are instead passed as arguments. Additionally, I noticed a commented-out line in the visibility condition (in_frustum in auxillary.h). Uncommenting this line should make the renderer filter out Gaussians which are not in the view frustum, potentially increasing the rendering speed.

There is a minor change required in the 2D-Gaussian splatting repository to accommodate this PR. I created a companion PR, that you may find here.

Below, you can find some newly possible cropped renders:

1(2)
3

@Tordjx Tordjx marked this pull request as draft June 25, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant