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

Is this truncated sdf? #11

Open
Jenix8 opened this issue Oct 16, 2023 · 0 comments
Open

Is this truncated sdf? #11

Jenix8 opened this issue Oct 16, 2023 · 0 comments

Comments

@Jenix8
Copy link

Jenix8 commented Oct 16, 2023

Hi, thank you for your great package. It also works well with complex mesh objects.

Since I had to use the sdf values directly, I took out the values of render texture using the code at HERE.

However, I found that the sdf values are clamped into [0, 1], called truncated sdf (tsdf), that is, the sdf values written in render texture inside the object were not negative but 0, and if the sdf is bigger than 1, the values written in render texture are 1.
(I think there may be a problem with the code in the link above..)

I need the real sdf, so I want to know the parts where to clamp the sdf values and how to modify it.

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