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

Feature: TLAS traversal #48

Open
jbikker opened this issue Dec 7, 2024 · 1 comment
Open

Feature: TLAS traversal #48

jbikker opened this issue Dec 7, 2024 · 1 comment
Assignees

Comments

@jbikker
Copy link
Owner

jbikker commented Dec 7, 2024

Recently an API was added for building a BVH over a list of AABBs or 'BVHInstances'. It would be nice to have actual traversal of this structure, complete with ray transforms / un-transforms in the leafs, for full TLAS/BLAS traversal. Also needs an example.

@jbikker jbikker self-assigned this Dec 7, 2024
@brendan-duncan
Copy link
Contributor

Thank you for the recent TLAS build updates in dev!

I tested it out with the Unity WebGPU path tracer I've been working on, and I have instances now! There's a number of bugs I still need to work out, and I haven't started optimizing performance or memory yet. But as a first pass for instanced BVH meshes, I'm happy it works :-). I'm using BVH_GPU for the TLAS GPU data structure for now.

Here's a test: https://hilarious-toffee-659bf7.netlify.app

It's quite a heavy GPU load currently, and best run with Chrome on Windows or macOS.

I'll put all this up on github after I fix it up a bit more. The ray traverse code shaders are written in HLSL, and get translated to WebGPU with the build pipeline. It's not an official Unity project, just a personal fun project.

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