Skip to content

Is this truncated sdf? #11

@Jenix8

Description

@Jenix8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions