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

[Question] How to use customized grid type with PNanoVDB? #1874

Open
Enigmatisms opened this issue Aug 16, 2024 · 0 comments
Open

[Question] How to use customized grid type with PNanoVDB? #1874

Enigmatisms opened this issue Aug 16, 2024 · 0 comments

Comments

@Enigmatisms
Copy link

Is there any way to use customized grid type with PNanoVDB?

I implement a new type of voxel (which won't fit in a Vec4d), and I want to port it into the Slang shader via PNanoVDB API. But I find that PNanoVDB depends on the pre-defined voxel type, and each grid_type has so many related strides and offsets that are written as compile-time constants (with unclear meaning, since there is no comments in PNanoVDB.h), for example line 1637: pnanovdb_grid_type_constants. Does this mean that PNanoVDB is just a portable version of NanoVDB which only accepts common data structures?

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

1 participant