|This article needs additional citations for verification. (March 2009) (Learn how and when to remove this template message)|
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. 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.
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 more like blocks of color rather than mixed in a smooth way.
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.
The Utah teapot rendered using cel-shading:
- The back faces are drawn with thick lines
- The object is drawn with a basic texture
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:
Then, the scene's depth and world-space surface normal information are rendered to screen-sized textures:
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:
Finally, the edge texture and the color texture are composited to produce the final rendered image:
Cel shading in video games
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 Borderlands series, The Wolf Among Us, Ōkami, and Ultimate Spider-Man.
List of cel-shaded media
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, and The Legend of Zelda: The Wind Waker for the Nintendo GameCube. 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.
- 2008 Scion xD Little Deviants
- 2009 Dodge Journey
- BP Connect 2007 ad's
- 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)
- Bunny Maloney
- Freedom Project, 2006 Japanese anime series
- Knights of Sidonia, 2014 Japanese anime series
- SpongeBob SquarePants, only seasons 4-8
- 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.
- Hachigian, Jennifer. "Celshader.com FAQ". Retrieved August 2, 2005.
- Luque, Raul (December 2012). The Cel Shading Technique (PDF). Retrieved December 2, 2014.