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

Implement a top-level BVH #77

Merged
merged 10 commits into from
Jun 17, 2020
Merged

Implement a top-level BVH #77

merged 10 commits into from
Jun 17, 2020

Conversation

vkoskiv
Copy link
Owner

@vkoskiv vkoskiv commented Jun 16, 2020

No description provided.

vkoskiv and others added 10 commits June 16, 2020 03:43
…d for now,

switch the implementations in getClosestIsect()
Still some issues to work out, but it's something.
I don't really like the meshIndex hack I had to add to the polygon struct, but
I gues it's not that bad since I managed to shrink it anyway.
* Make bvh construction truly generic

* Spaces -> tabs
Fix incorrect function call in rayIntersectsWithBvh()
Add inline qualifiers to a few functions.
* Fix top-level BVH implementation

* Minor performance improvements to the BVH traversal

* Remove redundant assignment

* Move address offset inside indirect access
@vkoskiv vkoskiv marked this pull request as ready for review June 17, 2020 19:41
@vkoskiv vkoskiv merged commit 76b3843 into master Jun 17, 2020
@vkoskiv vkoskiv deleted the top-level-bvh branch June 17, 2020 19:43
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.

2 participants