Non-real rendering (2) -- toon Shading

Source: Internet
Author: User

Toon ShadingIt is a simple and basic cartoon coloring method. Its main effect is to replace the gradient tone in normal conditions with a large block or abrupt change, so as to show the cartoon effect. With this rendering method, and then combined with the outline of the contour boundary line, this rendering method can also be very pleasing to the eye.

The main implementation method is to calculate the angle between the normal of the current pixel and the light, and then find the expected angle of the current pixel in the color table.Toon color, Use this color value to color by pixel. Of course, using the cosine value between the current normal vector and the light direction in implementation can produce the same angle effect.The color table can be determined by material or texture.ToonColor effect. The color table can also be written toProgram.

A level-4 color changeToonThe color table is as follows:

 

 

GenerateToon ShadingAs follows:

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.