REGION-GUIDED GENERATION OF EDITABLE TOON SHADOW LAYERS FOR TRADITIONAL 2D ANIMATION
Abstract: traditional 2D animation requires shadows that support the artistic structure of a drawing without disrupting its original visual style. However, manual shadow creation remains time-consuming, especially when consistent lighting must be maintained across multiple frames. This paper presents a region-guided method for generating editable toon-style shadow layers for line drawings. The proposed approach combines regional analysis of line art, explicit light-direction control, and shape-based shadow reasoning to produce cartoon-like shadows suitable for traditional animation workflows. Unlike methods that generate only a final rendered image, the proposed system creates a separate shadow layer that can be edited, composited, or refined by an artist. The resulting workflow supports shadow generation while preserving the original line structure and providing intermediate visual outputs such as region maps, shadow masks, and composite previews. The proposed method is intended as a practical tool for computer-assisted traditional animation and as a basis for further research on stylized shadow generation, editable visual effects, and animation-oriented compositing.
Keywords: traditional 2D animation, line art, shadow generation, toon shading, editable shadow layer, computer graphics, animation pipeline.
Traditional 2D animation depends on expressive lines, clear silhouettes, and stylized lighting. In this context, shadows are not only visual indicators of illumination but also artistic tools that help communicate form, volume, and mood. However, manually drawing shadows remains labor-intensive, especially when the artist must preserve consistency across multiple frames. Recent research has shown that computer-assisted approaches can support the creation of shadows for line drawings.
They introduced an interactive method based on shadow regions, shadow boundaries, and global shadow direction, allowing artists to generate plausible shadows while preserving the structure of the original drawing. Another important direction demonstrated that a line drawing and a selected lighting direction can serve as sufficient input for automatic artistic shadow generation [4]. This paper proposes a region-guided method for generating editable toon-style shadow layers for traditional 2D animation. The method combines three key ideas: regional analysis of line art, explicit light-direction control, and approximate shape-based reasoning.
The output is a separate shadow layer rather than a permanently baked result. This makes the method more suitable for production-oriented use, where editability and compatibility with conventional workflows are essential [2]. Materials and Methods. The proposed method was developed as an experimental prototype for generating editable toon-style shadow layers from line-art character drawings.
The input is a clean line drawing, while the output consists of a region map, a shadow mask, an editable shadow layer, and a final composite preview. The method combines region-based analysis, light-direction control, and approximate shape reasoning. This follows the idea that shadow generation for line drawings should consider both the internal structure of the drawing and the direction of illumination [3]. First, the input line drawing is converted into a simplified structural representation.
The system separates the character lines from the background and uses them to estimate the silhouette of the character. The silhouette defines the area where shadows may be generated. In general form, the silhouette can be represented as: ?(?,?)=?(?(?,?)). where ?(?,?) is the character silhouette at pixel position (?,?), ?(?,?) is the detected line-art structure, and ? denotes contour closing and filling of enclosed regions. Equation was used to describe the transition from line-art information to the character area used for shadow generation.
After silhouette estimation, the drawing is divided into separate visual regions corresponding to parts of the character, such as hair, face, clothing, and limbs. This regional decomposition allows the method to avoid treating the character as one uniform surface and helps the generated shadow follow the internal structure of the drawing. An example of the input line art and the resulting region map is shown in Fig. 1. Fig. 1.
Region map and line art. The original line drawing is processed to identify the character silhouette and divided into separate visual regions corresponding to different parts of the character. Second, the user specifies the general direction of light. The light direction is represented as a two-dimensional vector: ?=(??,??). where ? is the light-direction vector in the image plane, ?? defines the horizontal component, and ?? defines the vertical component.
This equation was used to control which parts of each region should be treated as illuminated or shadowed. This follows sketch-based shadow generation approaches, where line drawings and lighting direction are used as key conditions for shadow synthesis. For each detected region, the method estimates how strongly it should be affected by shadow according to its position relative to the selected light direction. Regions located opposite to the light source receive a higher shadow probability, while regions facing the light source remain lighter.
In addition, approximate shape information is derived from the distance to region boundaries. Pixels closer to the center of a region are interpreted as visually fuller, while pixels closer to contours are treated as boundary areas. This creates a simple depth-like cue without requiring a real 3D model. The final shadow probability map is obtained by combining the regional light score and the approximate shape cue: ?(?,?)=???(?,?)+???(?,?). where ?(?,?) is the final shadow probability at pixel position (?,?), ?(?,?) is the directional shadow score, ?(?,?) is the approximate shape cue, and ?? ?? are weighting coefficients controlling the influence of light direction and shape information.
This equation was used to combine illumination direction and character form into one shadow map. The continuous shadow map is then converted into a harder toon-style shadow mask by applying thresholding and edge refinement. This produces clearer boundaries closer to cel-shading and traditional cartoon aesthetics. The final shadow is stored as a separate editable layer with transparency, rather than being permanently merged with the original drawing.
Such a layer-based output allows the artist to adjust opacity, color, and local shadow areas during compositing, which is important for animation production [1]. The final composite preview is produced by combining the original line drawing with the generated shadow layer. The preview is used for visual evaluation, while the editable shadow layer remains the main output of the method. Results.
The prototype generates several outputs, including a region map, a shadow intensity map, a toon-style shadow mask, an editable shadow layer, and a final composite preview. The most important result is the separate shadow layer, which can be corrected or reused without modifying the original drawing. The main output of the proposed workflow, including the editable shadow layer and the composite result, is illustrated in Fig. 2. Fig. 2.
Main outputs of the proposed method. The generated toon-style shadow is stored as a separate editable layer and then composited with the original drawing to produce the final preview. Qualitative testing showed that the region-guided approach produces more structured shadows than simple global darkening. When the drawing is divided into separate regions, the generated shadows better follow the internal organization of the character.
This is especially noticeable in areas such as hair, clothing, and overlapping body parts. The use of explicit light direction also improves artistic control. By changing the selected lighting direction, the same line drawing can produce different shadow layouts. This allows the artist or researcher to evaluate multiple lighting scenarios without manually redrawing the shadow.
This behavior is consistent with prior studies that used light direction as a principal control parameter for shadow generation [4]. The toon-style version produces clearer and more animation-like results than softer shadow generation. Harder shadow edges create a visual effect closer to cel shading and traditional cartoon aesthetics. This is important because overly soft shadows may appear too photographic or digitally blurred, whereas stylized 2D animation often benefits from more clearly defined boundaries.
Conclusion. This paper presented a region-guided method for generating editable toon-style shadow layers for traditional 2D animation. The proposed system combines regional line-art analysis, explicit light-direction control, and approximate shape-based reasoning. The result is a separate shadow layer that can be composited with the original drawing without permanently modifying it.
The main value of the proposed approach lies in its balance between automation and artistic control. Rather than replacing the artist, the method provides a structured shadow layer that can serve as a starting point for further refinement. Future work will focus on improving region detection, extending the method to colored characters, introducing temporal consistency for animation sequences, and performing a formal evaluation with expert feedback.
Полная версия статьи PDF
Номер журнала «Вестник науки» № 5 (98) том 1
Ссылка для цитирования:
REGION-GUIDED GENERATION OF EDITABLE TOON SHADOW LAYERS FOR TRADITIONAL 2D ANIMATION // Журнал «Вестник науки» от 3 мая 2026 г. № 5 (98) том 1. С. 595 - 601. 2026 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/30103 (дата обращения: 29.11.2026 г.)
Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/30103
Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com
