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

[WIP] albedo_rtx: Attempt at generating CWBVH using obvh #55

Merged
merged 4 commits into from
Feb 22, 2025
Merged

Conversation

DavidPeicho
Copy link
Owner

@DavidPeicho DavidPeicho commented Feb 17, 2025

Compiling albedo_rtx with a C++ dependency (tinybvh) to wasm is painful. That would mean albedo is only usable via emscripten. Most rust users compiling to wasm will not use this target anyway, making albedo almost useless for them.

This MR attempts to support a CWBVH implementation from obvh. For now, tinybvh will be used for native targets, and obvh for wasm.

ToDos

  • Fix broken primitive
  • Ensure traversal speed is roughly in the same ballpark
  • Re-create albedo_bvh with features to switch between each implementation
  • Generate CWBVH from AABBs

@DavidPeicho DavidPeicho changed the title albedo_rtx: Attempt at generating CWBVH using obvh [WIP] albedo_rtx: Attempt at generating CWBVH using obvh Feb 17, 2025
@DavidPeicho DavidPeicho merged commit 6dbc4b0 into main Feb 22, 2025
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.

1 participant