Jump to content
  • Advertisement
Sign in to follow this  
Smee

Cel shading / outline.

This topic is 3634 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

'lo, folks. I'm looking to add a style to my models where they keep their normal shading (either non-existent or typical shading) but also have a black outline. I've looked at the NeHe code and played with the example, but I'm not happy with the quality of the lines - even with antialiasing. So my question is... can anyone set me in the right direction for drawing a black outline (2-4px wide) on edges which actually looks good? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
several methods that i know of... but the one i use when its required involves using edge detection on the mask of the object as a post process.

let me know if you need more details... platform would be handy too (I'm a console programmer)

Share this post


Link to post
Share on other sites
Thanks for the reply.

I'm using OpenGL on PC/Windows. Any suggestions would be helpful.

Share this post


Link to post
Share on other sites
There are planty of techniques how to achieve outline / silhouette. Basically you can divide them into two groups : Geometry based and Post - Process Based.

Geometry Base - techniques like rendering mesh backfaces slightly biased to form silhoutte. Other is called "shell mapping" (just google it).

Post-Process - There are techniques to detect edges using normal maps, z-depth maps, Sobel Filter.

You can find a lot of useful articles in NPR Rendering

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net 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!