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

Add space subdivision to enhance ray tracing #6

Open
alex-eg opened this issue May 20, 2016 · 0 comments
Open

Add space subdivision to enhance ray tracing #6

alex-eg opened this issue May 20, 2016 · 0 comments

Comments

@alex-eg
Copy link
Owner

alex-eg commented May 20, 2016

For now, algorithm uses naïve approach and traverses all objects in the scene to find if ray intersects any of them. It's not very productive, and is a quite critical bottleneck.

All object should be stored in a tree-like structure, which allows us to significanlty reduce number of intersection tests.

There are quite a number of available algorithms:

And so on. I think we should stick to BVH at first, and later may as well try other algorithms, it would be interesting to compare them. But there would be separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant