Advertisement Jump to content
Sign in to follow this  

Edge Detection with Normal/Depth and Sobel ?

This topic is 1865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys,


I want to do edge detection using the normal/depth and Sobel method. I understand the concept but don't know how to put it together.


I do a first pass to get a texture like this:







I'd use this texture as input to the edge detector. I know how to do a Sobel on the depths (single values) but how do I use the normals ? I don't get it.




Share this post

Link to post
Share on other sites

Exactly the same way, except on each component separately. The filter just shows discontinuities in a single dimension. Running the filter on 3 dimensions gives you discontinuities in 3 dimensions.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!