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

importance sampling #6

Open
JustinPrivitera opened this issue Nov 8, 2020 · 2 comments
Open

importance sampling #6

JustinPrivitera opened this issue Nov 8, 2020 · 2 comments
Assignees

Comments

@JustinPrivitera
Copy link
Owner

No description provided.

@JustinPrivitera JustinPrivitera self-assigned this Nov 8, 2020
@kkevlar
Copy link
Collaborator

kkevlar commented Nov 8, 2020

Hmmm I wonder what this means

@JustinPrivitera
Copy link
Owner Author

this is an optimization that should make our ray tracer run much faster

to boil it down, we could/will implement a kind of importance sampling where, before casting any rays, we can prove for a set of pixels that any rays cast from those pixels will hit no scene objects. With that information, we can skip ray creation for those pixels, and thus skip a lot of ray collision detection that we would normally need to do, which is the most computationally expensive part of ray tracing.

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

No branches or pull requests

2 participants