question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why sign method 'depth' only generates positive SDF?

See original GitHub issue

Thanks for your great work.

I tried to sample SDF near the surface, but it only outputs positive SDF whatever meshes (watertight or non-watertight) serve as input.

points, sdf = sample_sdf_near_surface(mesh, number_of_points=250000, sign_method = 'depth')

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Colin97commented, Apr 27, 2020
0reactions
Colin97commented, May 4, 2020

Thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the SDF - Signed Distance Field (part 1/3)
PART 1: Understanding how an sdf works, sampling the sdf value and the gradient of the sdf. (this video)PART 2: Example 1 -...
Read more >
Signed distance fields - Almost looks like work
Signed distance fields (SDFs)​​ An SDF is just a function which takes a position as an input, and outputs the distance from that...
Read more >
SDF (Signed Distance Field) used to Detect Overlapping Objects
Negative SDF Values & Positive SDF Values​​ This signed value is necessary because just by returning the distance value from the surface of...
Read more >
Ray Marching and Signed Distance Functions - Jamie Wong
So the resulting scene SDF is only negative when the first SDF is negative and the second SDF is positive. Switching back to...
Read more >
Volumetric Rendering: Signed Distance Functions
An SDF describes the distance between a point and a shape. Among the functions you introduced above, only the sphere and half plane...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found