Computer graphics rendering technique used to mimic the look of 2D animation
This article needs more citations. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources:"Cel shading"–news·newspapers·books·scholar·JSTOR(March 2009) (Learn how and when to remove this message)
A 3D model of a spacesuit (left) edited to use a basic cel shader, also known as a toon shader, and border detection (right)Graphics complex of a seashell with toon shading modeled in Mathematica 13.1
The cel-shading process starts with a typical 3D model. Where cel-shading differs from conventional rendering is in its non-photorealistic shading algorithm. 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 smoothly mixed in a gradient.
Outlines
Wireframe method
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. Back-face 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 flat shading technique regardless of whether the outline was applied.
4. A Sobel filter or similar edge-detection filter is applied to the normal and depth textures to generate an edge texture. Texels on detected edges are black, while all other texels are white.
5. The edge texture (4) and the color texture (1) are composited to produce the final rendered image.
The Dreamcast game Jet Set Radio, revealed at the 1999 Tokyo Game Show, drew media attention for its cel-shaded style. It used cel-shading for its characters and its vibrant visual style has had a lasting influence on the use of cel-shading in video games. Since the early 2000s, many notable video games have made use of this style, such as Cel Damage (2001), The Legend of Zelda: The Wind Waker (2002) and Ōkami (2006).
Cel shading, in contrast to other visual styles such as photorealism, is often used to lend a more artistic or fantastical element to a video game's environment. In developing Ōkami, director Hideki Kamiya described his vision for the game's graphics: "I wanted to create a game with the natural beauty of the Japanese countryside... to make a world that was glistening and beautiful." Producer Atsushi Inaba recalls in a 2004 interview that Clover Studios had "abandoned the realistic style" for Ōkami as they became inspired by traditional Japanese art.
Game studios might choose a style such as cel shading in their development for reasons beyond artistic vision. Cel shaded graphics are usually simple in visual information, which can be useful in some applications. In the case of The Legend of Zelda: The Wind Waker, developer Satoru Takizawa states that using this style allowed to "represent the mechanisms and objects for puzzles [in The Wind Waker] in a more easy-to-understand way." Takizawa also argues that photorealistic graphics, in contrast, would have "had the adverse effect of making information difficult to represent game-wise."
Examples of cel-shading in media
This article needs more citations. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources:"Cel shading"–news·newspapers·books·scholar·JSTOR(July 2021) (Learn how and when to remove this message)
Felidae, a 1994 German adult animated mystery film directed by Michael Schaack, written by Martin Kluger, Stefaan Schieder and Akif Pirinçci, and based on Pirinçci's 1989 novel of the same name.
Fear(s) of the Dark, a 2007 French black-and-white animated horror anthology film written and directed by several notable comic book creators and graphic designers.
Logorama, a 2009 French adult animated satirical short film produced by the French graphic design and animation studio H5 as their first and only cinematic project.
Rabbit School: Guardians of the Golden Egg, a 2017 German animated adventure comedy film directed by Ute von Münchow-Pohl from the screenplay by Katja Grübel and Dagmar Rehbinder, based on the 1924 German children's novel Die Häschenschule (A Day At Bunny School), written by Albert Sixtus and illustrated by Fritz Koch-Gotha.
Zombillenium, a 2017 animated film directed by Arthur de Pins and Alexis Ducord, based on the comic series of the same name.
Mutafukaz: Operation Blackhead, a 2017 crime short film that became the basis for the comic book for the same name produced by Run.
Pecola - a 2001 Canadian-Japanese animated children's television series produced by Yomiko Advertising, Nelvana, and Milky Cartoon and based on the series of children's picture books by Naomi Iwata.
Funky Cops - a 2002 French animated television series created by Thierry Sapyn for M6.
Albie - a 2002 British animated children's television series created by Andy Cutbill for CITV.
Firehouse Tales - a 2005 American animated children's television series created by Sidney J. Bailey for Cartoon Network's now-defunct Tickle-U preschool programming block.
Storm Hawks - a 2007 Canadian television series produced by Nerd Corps Entertainment
Freefonix - a 2008 British-French-Indian animated children's television series created by Magnus Fiennes, Alex Tate and Simeon Warburton and produced by Cinnamon Entertainment, Toonz Animation-Trivandrum and Method Films for CBBC, in association with Isle of Man Film.
Slugterra - a 2012 Canadian television series produced by Nerd Corps Entertainment
Vary Peri - a 2012 Korean-Chinese animated television series based on the character created by InfinityOne Comics Entertainment, animated by Alpha Group Company in China and CJ E&M in South Korea.
Pucca: Love Recipe - a 2018 South Korean animated comedy television series produced by Bazooka Studio, based on the Pucca franchise created by the South Korean company VOOZ Character System.
X-Men '97 - a 2024 American animated television series created by Beau DeMayo for the streaming service Disney+, based on the Marvel Comics superhero team the X-Men.