Custom geometry for acceleration structures
I would really like to use acceleration structure for my custom AABB geometry (I am writing a voxel engine). Is it possible now? If not, I would like to know when this feature will appear.
it's not implemented yet and listed as part of the tracking issue:
- https://github.com/gfx-rs/wgpu/issues/6762
Raytracing is an experimental feature that's still under development. Keeping this open and linking on the tracking issue instead.
I think @Jaisiero had an implementation working (https://github.com/gfx-rs/wgpu/issues/1040#issuecomment-2460208883).
I think @Jaisiero had an implementation working (#1040 (comment)).
Unfortunately it's not fully functional since procedural ray query is pretty involved (Niagara support?), so you need to iterate through your AS until you accept whatever you feel like it's a hit. Here's a code from Khronos fully testing: rayQuery-allOps
procedural ray query is pretty involved (Niagara support?
Naga support was added in #7047 (if that's what you're asking about).
procedural ray query is pretty involved (Niagara support?
Naga support was added in #7047 (if that's what you're asking about).
Yes! That's what I meant. I am going to check it out. Thanks.
Edit: what's the branch that I should look into? I would like to try to implement procedural geometry support for inline Ray Query.
I know they are on trunk, I think they were released in v25 as well. If you are adding features it's usual to target trunk though.