<p>I'm trying to implement a post-processing pass to detect silhouette-edges from depth data.
(by silhouette-edge of a triangles mesh I mean the triangle edges shared by a front and a back-facing triangle relative to the view direction, see image below).
<a href="https://i.sstatic.net/pE57n.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pE57n.png" alt="enter image description here" /></a></p>
<p>From the little research I've done, most of the methods used in games and 3d applications are based on finding the gradient of the eye Z coordinate in image space and then processing the values trying to isolate the silhouette-edges.</p>
<p>Since I'm working for a CAD project, silhouettes need to be as precise as possible, while it looks to me that, with the methods mentioned above, the more accurate/sensitive your filter, the more artifacts are introduced (i.e. entire surfaces detected as edges when you look edge-on on something that extends far along the Z).</p>
<p>Besides, one should carefully choose weights and tolerances for those algorithms.</p>
<p><strong>What are some good examples of silhouette detection in post-processing in commercial products/game?</strong></p>
<p>Specifically, I'd like to find something to compare my experiments against, and also to see the limitations of post-processing edge detection in a state-of-the-art application.</p>
<p>Are there other algorithms for post-processing edge detection as alternatives to Sobel/Roberts cross/...?</p>

CC BY-SA 4.0
2022-12-01T13:04:32.623Z
I happened across this shader toy the other day. https://www.shadertoy.com/view/DslXz2
pmw1234
CC BY-SA 4.0
2022-12-03T02:09:06.113Z
Hi, Leone! While this is a very interesting topic, asking for examples/resources is specifically off-topic (no "right answer"). Is it possible for you to edit the question to be something with an objective answer? Like a specific flaw in your results or a question about a specific algorithm? I'm not sure what to do here, but in it's current form this question probably needs to be closed.
luser droog
CC BY-SA 4.0
2022-12-05T07:49:08.820Z
Thanks @luserdroog for pointing that out. I'll open a new question, after some more testing.
leone ruggiero
<opengl><directx11><post-processing><edge-detection>
What are some good examples of post-processing edge detection?
leone ruggiero
# What are some good examples of post-processing edge detection?

(Asked by: username_0 on 2022-12-01)

I'm trying to implement a post-processing pass to detect silhouette-edges from depth data.
(by silhouette-edge of a triangles mesh I mean the triangle edges shared by a front and a back-facing triangle relative to the view direction, see image below).
[![enter image description here](https://i.sstatic.net/pE57n.png)](https://i.sstatic.net/pE57n.png)

From the little research I've done, most of the methods used in games and 3d applications are based on finding the gradient of the eye Z coordinate in image space and then processing the values trying to isolate the silhouette-edges.

Since I'm working for a CAD project, silhouettes need to be as precise as possible, while it looks to me that, with the methods mentioned above, the more accurate/sensitive your filter, the more artifacts are introduced (i.e. entire surfaces detected as edges when you look edge-on on something that extends far along the Z).

Besides, one should carefully choose weights and tolerances for those algorithms.

**What are some good examples of silhouette detection in post-processing in commercial products/game?**

Specifically, I'd like to find something to compare my experiments against, and also to see the limitations of post-processing edge detection in a state-of-the-art application.

Are there other algorithms for post-processing edge detection as alternatives to Sobel/Roberts cross/...?

**Tags:** opengl, directx11, post-processing, edge-detection

> **Comments:**
> **username_1**: I happened across this shader toy the other day. https://www.shadertoy.com/view/DslXz2  
> **username_2**: Hi, username_0! While this is a very interesting topic, asking for examples/resources is specifically off-topic (no "right answer"). Is it possible for you to edit the question to be something with an objective answer? Like a specific flaw in your results or a question about a specific algorithm? I'm not sure what to do here, but in it's current form this question probably needs to be closed.  
> **username_0**: Thanks @username_2 for pointing that out. I'll open a new question, after some more testing.  

---

## 0 answers

