Computer Engineering and Applications ›› 2020, Vol. 56 ›› Issue (7): 234-239.DOI: 10.3778/j.issn.1002-8331.1901-0109

Previous Articles     Next Articles

Pictures to Clothes:Method of Quickly Generating Costumes for Virtual Characters

ZHANG Shujie, ZHENG Liping, HAN Qing, ZHANG Han   

  1. School of Computer and Information, Hefei University of Technology, Hefei 230001, China
  • Online:2020-04-01 Published:2020-03-28



  1. 合肥工业大学 计算机与信息学院,合肥 230001


In crowd simulation, the diversification of the appearance of virtual characters can make the scene more realistic. This paper focuses on quickly generating the three-dimensional virtual characters with diverse costumes. It proposes a method of reading the characters’ clothes from the pictures and automatically generating the corresponding character models with the similar costumes to three-dimensional space. The specific steps are as follows:firstly, the GrabCut algorithm is used to segment the pictures as to get the different parts of the characters’ costumes. Then the style colors of the clothes and trousers are calculated separately. At the same time, it selects the typical three-dimensional character models with similar costume styles to the origin pictures from the model library. It gains the UV expansion map and the texture map of the template models which are using to be automatically filled and modified with the style colors that calculated in the former steps. After that, the changed texture map will be attached to the origin character model. Thereby, the three-dimensional virtual character with similar costumes to the origin picture is completely generated. The experimental results show that this method can be done to quickly and easily achieve the rough simulation from the pictures to the three-dimensional characters.

Key words: image segmentation, 3D character model, character costume, model library



关键词: 图像分割, 三维人物模型, 角色服饰, 模型库