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

BVH acceleration and other modifications #10

Merged
merged 15 commits into from
Apr 11, 2023
Merged

BVH acceleration and other modifications #10

merged 15 commits into from
Apr 11, 2023

Conversation

Enigmatisms
Copy link
Owner

Marching towards v1.2.1, where we have our first BVH acceleration structure which is capable of accelerating ray intersection by reducing the amount of primitives to be taken into account. Test showed that, for bunny scene which contains 14916 triangles, it only takes 30 ms to build BVH tree while achieving roughly 50x speed up compared to the brute force ray intersection which can only prune unnecessary computation via object bounding box. The implementation of BVH tree is done in C++ and I expose a python API via pybind/pybind11. All it takes is to build the bvh code and install locally with minimal effort.

Other modifications include:

  • Repo structure: clearer, renamed a few folders and did some moving.
  • Temporary deprecated transient_lit mode, the problem of which can be found in issue Transient lit mode output is strange #9
  • Re-organized primitive storage structure, a more compact and BVH-compatible dense structure is used.
  • Fixed some other minor bugs.

@Enigmatisms Enigmatisms added enhancement New feature or request fix Bug fix pull request labels Apr 11, 2023
@Enigmatisms Enigmatisms self-assigned this Apr 11, 2023
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that a git ignore file should be added in asset/ti_tests/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be implemented in the future

Copy link
Collaborator

@raven-sera raven-sera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

@Enigmatisms
Copy link
Owner Author

Merging pull request and releasing v1.2.1

@Enigmatisms Enigmatisms merged commit cf5f088 into master Apr 11, 2023
@Enigmatisms Enigmatisms deleted the accel branch April 11, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix Bug fix pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants