Cel shading






A representation of a space suit from The Adventures of Tintin comic Explorers on the Moon with a basic cel-shader (also known as a toon shader) and border detection


Cel shading or toon shading is a type of non-photorealistic rendering designed to make 3-D computer graphics appear to be flat by using less shading color instead of a shade gradient or tints and shades. Cel-shading is often used to mimic the style of a comic book or cartoon and/or give it a characteristic paper-like texture.[1] There are similar techniques that can make an image look like a sketch, an oil painting or an ink painting. It is somewhat recent, appearing from around the beginning of the twenty-first century. The name comes from cels (short for celluloid), the clear sheets of acetate, which are painted on for use in traditional 2D animation.[2]




Contents






  • 1 Process


  • 2 Cel shading in video games


  • 3 Gallery


  • 4 List of cel-shaded media


    • 4.1 Video games


    • 4.2 Commercials


    • 4.3 Television


    • 4.4 Film




  • 5 See also


  • 6 References


  • 7 External links





Process


The cel-shading process starts with a typical 3D model. Where cel-shading differs from conventional rendering is in its non-photorealistic illumination model. Conventional (smooth) lighting values are calculated for each pixel and then quantized to a small number of discrete shades to create the characteristic flat look – where the shadows and highlights appear as blocks of color rather than being mixed smoothly.


Black "ink" outlines and contour lines can be created using a variety of methods. One popular method is to first render a black outline, slightly larger than the object itself. Backface culling is inverted and the back-facing triangles are drawn in black. To dilate the silhouette, these back faces may be drawn in wireframe multiple times with slight changes in translation. Alternatively, back-faces may be rendered solid-filled, with their vertices translated along their vertex normals in a vertex shader. After drawing the outline, back-face culling is set back to normal to draw the shading and optional textures of the object. Finally, the image is composited via Z-buffering, as the back-faces always lie deeper in the scene than the front-faces. The result is that the object is drawn with a black outline and interior contour lines. The term "cel-shading" is popularly used to refer to the application of this "ink" outlining process in animation and games, although originally the term referred to the shading technique regardless of whether the outline was applied.[3]


The Utah teapot rendered using cel-shading:


The Utah Teapot rendered using cel-shading.



  1. The back faces are drawn with thick lines

  2. The object is drawn with a basic texture

  3. Shading


Steps 2 and 3 can be combined using multi-texturing (see texture mapping).


Another outlining technique is to use 2D image-processing. First, the scene is rendered (with cel-shading) to a screen-sized color texture:


Cel shading no outlines.png


Then, the scene's depth and world-space surface normal information are rendered to screen-sized textures:


Cel shading depth.png


Cel shading normals.png


A Sobel filter or similar edge-detection filter is applied to the normal/depth textures to generate an edge texture. Texels on detected edges are black, while all other texels are white:


Cel shading edge detection.png


Finally, the edge texture and the color texture are composited to produce the final rendered image:


Cel shading composite final image.png



Cel shading in video games



Starting in the 2000s, cel shading became synonymous in interactive media with the style of the Dreamcast game Jet Set Radio, but it has been applied in numerous other games over the years, including more recent titles such as Cel Damage, No More Heroes and Grand Theft Auto: Chinatown Wars. Other notable examples include The Legend of Zelda: The Wind Waker, Viewtiful Joe, Ni No Kuni, Escape Dead Island, The Legend of Zelda: Breath of the Wild, The Wolf Among Us, Ōkami, and Ultimate Spider-Man.



Gallery


.mw-parser-output .mod-gallery{display:table}.mw-parser-output .mod-gallery-default{background:transparent;margin-top:0.5em}.mw-parser-output .mod-gallery-center{margin-left:auto;margin-right:auto}.mw-parser-output .mod-gallery-left{float:left}.mw-parser-output .mod-gallery-right{float:right}.mw-parser-output .mod-gallery-none{float:none}.mw-parser-output .mod-gallery-collapsible{width:100%}.mw-parser-output .mod-gallery .title{display:table-row}.mw-parser-output .mod-gallery .title>div{display:table-cell;text-align:center;font-weight:bold}.mw-parser-output .mod-gallery .main{display:table-row}.mw-parser-output .mod-gallery .main>div{display:table-cell}.mw-parser-output .mod-gallery .caption{display:table-row;vertical-align:top}.mw-parser-output .mod-gallery .caption>div{display:table-cell;display:block;font-size:94%;padding:0}.mw-parser-output .mod-gallery .footer{display:table-row}.mw-parser-output .mod-gallery .footer>div{display:table-cell;text-align:right;font-size:80%;line-height:1em}.mw-parser-output .mod-gallery .gallerybox .thumb img{background:none}.mw-parser-output .mod-gallery .bordered-images img{border:solid #eee 1px}.mw-parser-output .mod-gallery .whitebg img{background:#fff!important}.mw-parser-output .mod-gallery .gallerybox div{background:#fff!important}


List of cel-shaded media



Video games



Some prominent games featuring cel shading are Jet Set Radio for the Sega Dreamcast, Ultimate Spider-Man for the PlayStation 2, Sly Cooper and the Thievius Raccoonus for the PlayStation 2, The Legend of Zelda: The Wind Waker for the Nintendo GameCube, Harvest Moon: Magical Melody for the Nintendo GameCube and Wii, the Katamari series, as well as The Legend of Zelda: Breath of the Wild for the Wii U and Nintendo Switch. Cutscenes in Mirror's Edge use a mixture of drawn characters and 3D toon shaded models, with the latter used mostly in vehicles and such.



Commercials




  • 2008 Scion xD Little Deviants

  • 2009 Dodge Journey

  • Boogie


  • BP Connect 2007 ads

  • AREVA


  • Nick Jr. ID's by Steve Speer


  • Commit mint lozenges


  • HSBC HSBCdirect.com


  • Hewlett Packard xw8400 Workstation Titans of iron

  • Mr. Clean


  • Pampers Kandoo Flushable Toilet Wipes, Foaming Handsoap


  • Post Cereals Fruity Pebbles cereal (Bowling for Fruity Pebbles ad)

  • Lego Exo-Force


  • L'Oréal Couleur Expert


  • Lunchables Pizza (Atlantis Paradise Island promotion ad)

  • McCain's Zwak Punch


  • Neopets virtual prize code (Canadian Betty Crocker fruit-flavored snacks promotional ad)


  • Oscar Mayer Lunchables Chicken Dunks (airhead mysteries ad)


  • Sola/Nero/Vena/Olera/Zonte sparkling wine


  • Toyo Tires Versado LX all-season touring tires (OK Tire promotional ad)




Television



  • Boo!

  • Bunny Maloney


  • Freedom Project, 2006 Japanese anime series


  • Knights of Sidonia, 2014 Japanese anime series

  • Spider-Man: The New Animated Series

  • Iron Man: Armored Adventures


  • Archer, adult oriented cartoon usually played on FX.


  • Red vs. Blue season 14, an animation/video game based TV series. Based on the video game Halo.


  • Transformers: Robots in Disguise, a 2015 animated series and sequel to Transformers: Prime.

  • Star Wars Resistance



Film




  • Appleseed, a 2004 Japanese animated film.


  • Mutafukaz: Operation Blackhead, a 2002 crime short film that became the basis for the comic book for the same name produced by Run.



See also



  • List of cel-shaded video games

  • 2.5D

  • Gooch shading



References





  1. ^ https://docs.unrealengine.com/latest/INT/Resources/Showcases/Stylized/PostProcessing/index.html


  2. ^ Hachigian, Jennifer. "Celshader.com FAQ". Retrieved August 2, 2005..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  3. ^ Luque, Raul (December 2012). The Cel Shading Technique (PDF). Retrieved December 2, 2014.




External links




  • IGN: Jet Set Radio review. Retrieved August 4, 2005.


  • GameDev.net – Cel-Shading. Retrieved August 5, 2005.


  • sunandblackcat.com – Cel-Shading. Retrieved August 7, 2014.


  • tv tropes about cel-shading. Retrieved December 2, 2014









這個網誌中的熱門文章

12.7 cm/40 Type 89 naval gun

Rikitea

University of Vienna