mercoledì 19 ottobre 2011

Shaders

At start I was thinking on implementing in my game a shaders able to create a graphic novel style. After a while, even if I have achieved, I realized that it wasn't what I really wanted my game to look like. But, on the top of that, I really liked the black outline which I was able to create on all the hard edges. Of course it took me long time to make it working properly. It is of course a post-process.
The first attempt took me long to achieve, it did create the effect I wanted to, but not in the way I was looking for. (http://udn.epicgames.com/Three/DevelopmentKitGemsSobelEdgeDetection.html)


It was tricky and a lot heavier than the one I have achieved now, which is with a smaller number of node, and actually give me the ability to select the thickness of the closest and the farer edges. (I don't have a picture yet)
Also, the first method, the "Sobel Edge Detection"  give me few error, like counting some planes, as a series of edges, making them totally black. This new one, is working good, and it has not given me any problem yet.

Nessun commento:

Posta un commento