Repository navigation
Add VDB loader community example - #35043
Merged
Merged
Conversation
Mugen87
approved these changes
Oct 16, 2026
Mugen87
reviewed
Oct 16, 2026
| uniform float opacity; | ||
| uniform float steps; | ||
|
|
||
| vec2 hitBox( vec3 orig, vec3 dir ) { |
Collaborator
There was a problem hiding this comment.
BTW: It's okay to make this demo with WebGLRenderer but ideally it is migrated to WebGPURenderer at some point (and then renamed to webgpu_loader_vdb).
We have some reusable RaymarchingBox TSL code that could be reused in this demo as well.
https://github.com/mrdoob/three.js/blob/dev/examples/jsm/tsl/utils/Raymarching.js
Contributor
Author
There was a problem hiding this comment.
Noted, thank you! Will do a follow up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue: #5524
Description
Following the feedback on #35008, I put VDB loader in its own package (https://github.com/richardmonette/three-vdb-loader), and so this PR adds it as a community example.
The example loads the smoke model from openvdb.org and renders the density grid with a basic raymarcher.
The package supports:
I checked the loader output against OpenVDB using generated test files and the openvdb.org samples. There's also a demo landing page https://richardmonette.github.io/three-vdb-loader/ with more elaborate examples, including the vector and fire grids.