Length-Preserving Hair Simulation via Bézier Curves and Artificial Neural Network
Kali Gürkahraman, Ahmet Firat Yelkuvan, Rukiye Karakis
DOI: http://dx.doi.org/10.15439/2025F5270
Citation: Proceedings of the 20th Conference on Computer Science and Intelligence Systems (FedCSIS), M. Bolanowski, M. Ganzha, L. Maciaszek, M. Paprzycki, D. Ślęzak (eds). ACSIS, Vol. 43, pages 309–314 (2025)
Abstract. In this study, we present a data-driven method for preserving the length of cubic B´ezier curves under external deformations, specifically in the context of hair strand simulation. By sampling millions of original and displaced control point con- figurations within a 2D bounded grid space, we construct a large dataset of B\'ezier curve pairs and compute the corresponding t\_final parameters required to preserve arc length. A lightweight artificial neural network (ANN) architecture is trained on this dataset to predict t\_final given 16 features representing the coor- dinates of initial and displaced control points. The model achieves a low mean absolute error (MAE) of 0.00091992 on the test set, ensuring high predictive accuracy. Performance evaluations show that the ANN can predict t\_final values for up to 200k hair strands in approximately 8 seconds on a standard laptop, aligning with the average number of strands on a human scalp. This approach replaces computationally expensive numerical length-matching operations with a fast, inference-based framework, allowing for efficient simulation of realistic, deformable hair motion while maintaining individual strand lengths.
References
- R. E. Rosenblum, W. E. Carlson, and E. Tripp, “Simulating the structure and dynamics of human hair,” J. Vis. Comput. Anim., vol. 2, no. 4, pp. 141–148, 1991.
- A. Selle, M. Lentine, and R. Fedkiw, “A mass spring model for hair simulation,” in ACM SIGGRAPH 2008 Papers, 2008, pp. 64:1–64:11.
- B. Choe, M. G. Choi, and H.-S. Ko, “Simulating complex hair with robust collision handling,” in Proc. Symp. Comput. Anim., 2005, pp. 153–160.
- R. Bridson, R. Fedkiw, and J. Anderson, “Robust treatment of collisions, contact and friction for cloth animation,” in ACM SIGGRAPH, 2002, pp. 594–603.
- D. Baraff and A. Witkin, “Large steps in cloth simulation,” in ACM SIGGRAPH, 1998, pp. 43–54.
- J. A. Amador Herrera et al., “Augmented mass-spring model for real-time dense hair simulation,” arXiv preprint https://arxiv.org/abs/2412.17144v2, 2024.
- M. Müller, T.-Y. Kim, and N. Chentanez, “Fast simulation of inextensible hair and fur,” in Proc. VRIPHYS, 2012.
- J. Hsu et al., “Sag-free initialization for strand-based hybrid hair simulation,” ACM Trans. Graph., vol. 42, no. 4, 2023.
- M. Müller, B. Heidelberger, M. Hennix, and J. Ratcliff, “Position based dynamics,” J. Vis. Commun. Image Represent., vol. 18, no. 2, pp. 109–118, 2007.
- S. Hadap and N. Magnenat-Thalmann, “Modeling dynamic hair as a continuum,” Comput. Graph. Forum, vol. 20, no. 3, pp. 329–338, 2001.
- P. Volino and N. Magnenat-Thalmann, “Animating complex hairstyles in real-time,” in Proc. ACM Symp. Virtual Reality Software Technol. (VRST), 2004, pp. 41–48.
- M. Müller, B. Heidelberger, M. Teschner, and M. Gross, “Meshless deformations based on shape matching,” in ACM SIGGRAPH, 2005, pp. 471–478.
- D.-W. Lee and H.-S. Ko, “Natural hairstyle modeling and animation,” Graph. Models, vol. 63, no. 2, pp. 67–85, 2001.
- R. Featherstone, Rigid Body Dynamics Algorithms. Springer, 2007.
- T. Stuyck et al., “Quaffure: Real-time quasi-static neural hair simulation,” arXiv preprint https://arxiv.org/abs/2412.10061v1, 2024.
- Y. Takimoto, H. Takehara, H. Sato, Z. Zhu, and B. Zheng, “Dr.Hair: Reconstructing scalp-connected hair strands without pretraining via differentiable rendering of line segments,” arXiv preprint https://arxiv.org/abs/2403.17496v2, 2024.
- G. Bhokare, E. Montalvo, E. Diaz, and C. Yuksel, “Real-time hair rendering with hair meshes,” in SIGGRAPH Conf. Papers, 2024.
- Q. Zhang, S. Thomas, R. Ramamoorthi, and K. Zhou, “Exploiting Budan-Fourier and Bernstein theorems for real-time collision culling of Bézier curves,” in ACM SIGGRAPH / Eurographics High Perform. Graph. (HPG), 2017.
- N. Arslan and K. Gurkahraman, “A novel contour tracing algorithm for object shape reconstruction using parametric curves,” Comput. Mater. Continua, vol. 75, no. 1, pp. 331–350, 2023. https://dx.doi.org/10.32604/cmc.2023.035087
- K. Lee and S. Lee, “Hair simulation using articulated body method and Bézier curve,” in SIGGRAPH Asia Tech. Commun., 2024.