I’m trying to make a custom Post Process effect that effectively finds the outline of everything in the scene based on the zbuffer of the sceneTexture.
As of right now I’ve made no progress. I’m looking to use differential edge detection to find the edges of everything. However I don’t know the math required to accomplish this. The basic process I do know involves taking one image, layering a blurred version of that image on top of it, then using something to the Difference filter in Photoshop, and the result will be the edges.
I’ve already tried using other techniques, like a reverse phong rimlight, but it was far too jagged for my taste. Any suggestions are welcome and if I didn’t explain anything clear enough please let me know.
[QUOTE=mheyman;3201]I’m trying to make a custom Post Process effect that effectively finds the outline of everything in the scene based on the zbuffer of the sceneTexture.
As of right now I’ve made no progress. I’m looking to use differential edge detection to find the edges of everything. However I don’t know the math required to accomplish this. The basic process I do know involves taking one image, layering a blurred version of that image on top of it, then using something to the Difference filter in Photoshop, and the result will be the edges.
I’ve already tried using other techniques, like a reverse phong rimlight, but it was far too jagged for my taste. Any suggestions are welcome and if I didn’t explain anything clear enough please let me know.
Thanks![/QUOTE]
You could try searching for a few terms like
Sobel filter
Edge detection
NPR
[QUOTE=mheyman;3201]I’m trying to make a custom Post Process effect that effectively finds the outline of everything in the scene based on the zbuffer of the sceneTexture.
As of right now I’ve made no progress. I’m looking to use differential edge detection to find the edges of everything. However I don’t know the math required to accomplish this. The basic process I do know involves taking one image, layering a blurred version of that image on top of it, then using something to the Difference filter in Photoshop, and the result will be the edges.
I’ve already tried using other techniques, like a reverse phong rimlight, but it was far too jagged for my taste. Any suggestions are welcome and if I didn’t explain anything clear enough please let me know.
Thanks![/QUOTE]
This is not quite what you are looking for but it does show a very good technique for finding edges. Its an ambient occlusion shader that someone made for unreal 3.0 and it does a pretty good job.