-
Notifications
You must be signed in to change notification settings - Fork 664
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
add next hit HDDA to PNanoVDB #1600
Conversation
This PR adds a new variant of the HDDA algorithm to PNanoVDB. |
Hello @kmuseth I checked NanoVDB and if there is a function that matches the current proposed function and there is. |
nanovdb/nanovdb/PNanoVDB.h
Outdated
PNANOVDB_IN(pnanovdb_vec3_t) direction, float tmax, | ||
PNANOVDB_INOUT(float) thit, | ||
PNANOVDB_INOUT(float) valueAtHit, | ||
PNANOVDB_INOUT(float) minimalValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That probably only needs to be PNANOVDB_IN(float) minimalValue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaida-exe I have two issues with the current version of the HDDA:
- It is is different from the one in NanoVDB.h which is problematic because it obviously means that their behaviors and APIs are now out of sync
- I don't fundamentally understand why a tolerance is desirable. The background value for fog volumes should always be exactly zero
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Ken, I agree with you and I removed the minimalValue. I also renamed the function to be the same of NanoVDB.
Signed-off-by: Sebastian Gaida <[email protected]>
Signed-off-by: Sebastian Gaida <[email protected]>
…cher Signed-off-by: Sebastian Gaida <[email protected]>
Signed-off-by: Sebastian Gaida <[email protected]>
Hi @gaida-exe, can you push an empty commit to this MR to trigger the CI to run again? Seems like it got stuck on one of the builds so we cannot merge in it's current state, thanks. |
|
|
Signed-off-by: Sebastian Gaida <[email protected]>
Sorry for the CLA noise. |
# Conflicts: # nanovdb/nanovdb/PNanoVDB.h
Signed-off-by: Sebastian Gaida <[email protected]>
Signed-off-by: Sebastian Gaida [email protected]