Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAshaman73

Posted 05 December 2012 - 12:50 AM

for understand better the sobel filter:

The double line is an effct of the sobel filter. The filter works on a pixel, therefor when sobel detects an edge at a pixel, it will detect it too on the other side too:


xxoo
xxoo
xxoo

apply sobel on all x


xXoo
xXoo
xXoo


apply soble on all o

xXOo
xXOo
xXOo


There are several solutions:
1. Use the stencil buffer to detect the edge only on parts of the screen, e.g. the x surface only.
2. Use double resolution and scale it down afterwards (or use multisampling).
3. Use an other AA technique to make it less obviously.

#1Ashaman73

Posted 05 December 2012 - 12:49 AM

for understand better the sobel filter:

The double line is an effct of the sobel filter. The filter works on a pixel, therefor when sobel detects an edge at a pixel, it will detect it too on the other side:


xxoo
xxoo
xxoo

apply sobel on all x


xXoo
xXoo
xXoo


apply soble on all o

xXOo
xXOo
xXOo


There are several solutions:
1. Use the stencil buffer to detect the edge only on parts of the screen, e.g. the x surface only.
2. Use double resolution and scale it down afterwards (or use multisampling).
3. Use an other AA technique to make it less obviously.

PARTNERS