# Automatic Generation of the Periodic Hair Motion of 3D Characters for Anime Production

Kenji Furukawa, Susumu Nakata

<figure><img src="image_1.png" /></figure>

## To cite this version:

Kenji Furukawa, Susumu Nakata. Automatic Generation of the Periodic Hair Motion of 3D Characters for Anime Production. Esteban Clua; Licinio Roque; Artur Lugmayr; Pauliina Tuomi. 17th International Conference on Entertainment Computing (ICEC), Sep 2018, Poznan, Poland. Springer International Publishing, Lecture Notes in Computer Science, LNCS-11112, pp.289-292, 2018, Entertainment Computing – ICEC 2018. 10.1007/978-3-319-99426-0_31. hal-02128610

HAL Id: hal-02128610

https://inria.hal.science/hal-02128610

Submitted on 14 May 2019

HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d'enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# Automatic Generation of the Periodic Hair Motion of 3D Characters for Anime Production

Kenji Furukawa¹(✉) and Susumu Nakata¹

¹ Ritsumeikan University, Kusatsu Shiga, Japan
is0279fe@ed.ritsumei.ac.jp

**Abstract.** Many Japanese animation products benefit from the techniques of computer graphics. In the animation process, three-dimensional (3D) characters are often rendered so that the characters move according to a Japanese traditional animation style called limited animation or anime. The hair of the characters is modeled as a set of bunches and the motion of each bunch should also be defined in the manner of limited animation, which is different from its physically correct motion. We present a method to produce a hair motion for 3D characters that is appropriate for limited animation under the assumptions that the hair motion is periodic and other objects, including the camera, remain stationary. We present a mathematical formulation of this hair motion based on a typical technique used in traditional hand-drawn anime and apply the motion to each bunch of hair of an example 3D character.

**Keywords:** Hair motion, Animation, Computer graphics

## 1 Introduction

Most Japanese animations are created following to the traditional hand-drawn style called “limited animation,” which is a set of techniques for expressing motion using a small number of images [1]. Such products are often called “anime,” and, in this style, the depicted motions of characters and objects are different from the motions predicted by real physics. The motions of characters and objects are depicted in a way specific to limited animation and, as a result, the motions are determined differently from typical computer graphics (CG) motions. A typical example of such an expression is hair motion. The hair of a character is often depicted as a set of bunches, each of which moves according to the style of limited animation.

The purpose of this study is to develop a method that determines the hair motion of CG characters in the style of limited animation. We assume that hair motion is periodic and we formulate the periodic motion of each bunch of hair as a function by observing hand-drawn animes. In addition, we provide a technique to discretize the periodic motion over time so that it is suitable for limited animation.

There are related studies that have tried to reproduce the shape and motion of hair. Sakai et al. [2] reproduced the shape of hair as a three-dimensional (3D) surface model. Chin et al. [3] developed a method to generate the motion of illustrated hair based on
fluid simulation. Our method is suitable for the creation of CG-based animation in which the motion is defined according to style of the limited animation.

## 2 Proposed method

The first step is to identify the approach needed to depict hair motion as a set of still pictures used in traditional limited animation. In this study, we assume that the hair motion is periodic and, for simplicity, we assume neither the character nor the camera moves. In the late 1940s, a guideline for depicting periodic hair motion for anime production was presented by Masaoka Kenzo, a creator in the early days of Japanese anime production. Our investigation, conducted using discussion with professional animators and some animation textbooks, shows that most current animes inherit this traditional approach, which mainly consists of two techniques: a hair line is drawn as if a mass of air moves under that line (Fig. 1, left) and periodic motion is depicted by repeatedly applying a few still pictures. The number of pictures is typically between three and eight per cycle.

The second step is to formulate the hair motion. We assume a given 3D hair model that consists of a set of bunches. Moreover, a skeleton without branches is assigned to each bunch (Fig. 1, right). Our approach is to define the shape of a horizontal hair line as a function of time and position, discretize it in time and space, retrieve rotation angles, and then apply them to the nodes of the 3D skeleton. We define the shape of a horizontal hair line as follows:

$$f(x, t) = -\frac{a}{s} \left(\frac{x}{\pi}\right)^p \left(\cos\left(\frac{x}{k} - \frac{2\pi}{T}t\right) + \frac{1}{s}\right) \quad (0 \le x \le \pi), \quad (1)$$

where $x$ is the relative distance from the root of the hair line, $t$ is time, and $T$ is the period of hair motion. Parameters $a$, $k$, and $s$ respectively determine the amplitude and spatial period of waving hair and the strength of gravity. The remaining parameter $p$ determines the proportions of the wave amplitudes at the root and tip.

The third step is to determine the discretization of (1) in time. We assume that the frame rate of the produced movie is $N_{FPS}$, which is typically 24 frames per second. In limited animation, the number of pictures is lower than $N_{FPS}$. Hence, one still picture is used for two or three consecutive frames, even if the characters are in motion. Let $N_{Dup}$ be the standard number of frames over which a single still picture is duplicated. Note that the number of duplicate frames is typically two or three and changes depending on the scene. In this step, we determine the $t$ at which still pictures are required for the given constants $T$, $N_{FPS}$, and $N_{Dup}$.

The given frame rate leads to the fact that $N_{Frame} = [N_{FPS}T]$ frames are used for one cycle of the periodic hair motion, where the $[\cdot]$ operator denotes rounding to the nearest integer. Such rounding is a requirement for depicting periodic motion by repeatedly using still pictures and, as a result, the period of a produced movie $N_{Frame}/N_{FPS}$ is slightly different from the given period $T$. In other words, this difference is a requirement of the style of limited animation.
We define the number of still pictures in a cycle as $N_{Pict} = [N_{Frame}/N_{Dup}]$, where the [·] operation denotes rounding up. This number is determined so that the number of frames to which a still picture is assigned does not exceed the value of standard duplication $N_{Dup}$. As a result, a still image is assigned to $N_{Dup}$ or $N_{Dup} - 1$ frames. Consequently, we define the interval for the time discretization as $\Delta t = T/N_{Pict}$. Finally, we duplicate the former $N_{Pict} - K$ pictures $N_{Dup}$ times and we duplicate the remaining pictures $N_{Dup} - 1$ times, where $K = N_{Dup}N_{Pict} - N_{Frame}$. As a result, all the pictures are assigned to $N_{Frame}$ frames to depict one cycle of hair motion.

We spatially discretize the shape of hair defined in (1) at each discrete time point, obtain the rotation angles at all the discrete positions, and apply the angles to the nodes of the skeleton to determine the pose corresponding to each still picture. The final movie is given by repeating $N_{Frame}$ frames using the $N_{Pict}$ pictures rendered according to the above process.

<figure><img src="image_3.png" /><figcaption>**Fig. 1.** Left: example of hair motion in Japanese anime style created by professional animator Shotaro Imai. Right: example of a skeleton model of “Hatsune Miku,” a character created by Crypton Future Media, Inc. (http://www.piapro.net).</figcaption></figure>

## 3 Experiment

Figure 2 shows a set of still images produced using our method with $N_{FPS} = 24$, $N_{Dup} = 2$, and $T = 0.45$. In this example, we use the model called “Tune-chan,” provided by G-Tune, which has 14 hair bunches. As a result, six pictures are generated to depict a cycle and are assigned to 11 frames. For the error analysis, we defined a skeleton corresponding to a bunch of hair in each scene of some hand-drawn anime products, applied our method to the skeleton, and measured the angular errors and node displacements. Table 1 shows the angular errors and the relative node displacements. In addition, we measured the error between one of the hand-drawn animes and the skeleton obtained using the physics engine provided in MikuMikuDance, a software tool for 3D character animation, to compare the accuracy of our method with that of a physics engine. The average angular error of our method is 11.4° while that of the physics
engine is 27.1°. These results indicate that our method provides hair motion that is similar to that of hand-drawn animation and, as far as the above case is concerned, the motion is more accurate than that given by a physics engine in animation software.

<figure><img src="image_4.png" /><figcaption>**Fig. 2.** Example of one cycle of hair motion with *s* = 1.2, *k* = 1.0, *a* = 0.8, and *T*=0.45. The model “Tune-chan” was provided by G-Tune (http://www.g-tune.jp/campaign/10th/mmd/).</figcaption></figure>

<table><caption>**Table 1.** Error of generated hair motion</caption><thead><tr><td>Studio</td><td>Title</td><td>Angular error</td><td>Position error</td></tr></thead><tbody><tr><td>Sunrise</td><td>My-HiME (2004) Ep. 26, 12:47</td><td>18.1°</td><td>13.8%</td></tr><tr><td>Diomedea</td><td>KanColle: The Movie (2016) 53:27</td><td>10.9°</td><td>7.0%</td></tr><tr><td>Diomedea</td><td>KanColle: The Movie (2016) 58:09</td><td>7.4°</td><td>4.7%</td></tr><tr><td>Satelight</td><td>Symphogear AXZ (2017) Ep.1, 7:26</td><td>10.6°</td><td>5.7%</td></tr><tr><td>Satelight</td><td>Symphogear AXZ (2017) Ep.2, 8:54</td><td>9.8°</td><td>7.5%</td></tr></tbody></table>

# 4 Conclusion

We developed a method to produce the anime-like hair motion of a 3D character model with a skeleton when both the character and camera are stationary. We define the motion of a horizontal line as a function of position and time, discretize the motion in time according to the style of limited animation, and apply the node angles to the 3D skeleton to obtain the hair motion of the character.

# References

1. Lamarre, T.: The Anime Machine: A Media Theory of Animation, University of Minnesota Press, Minnesota (2009).

2. Sakai, T., Savchenko, V.: Skeleton-based cartoon hair modeling using blobby model. In: SIGGRAPH Asia 2013, Article No.17. ACM (2013).

3. Yeh, C., Jayaraman, P.K., Liu, X., Fu, C., Lee, T.: 2.5D Cartoon Hair Modeling and Manipulation. IEEE Transactions on Visualization and Computer Graphics, **21**, 304–314 (2015).