The invention discloses a skeleton-based rapid fitting method, which relates to the fields of computer graphics, fabric simulation, virtual fitting and computer animation. The rapid fitting method comprises the following steps: input the three-dimensional clothing model and the three-dimensional human model; generate the skeleton and the skin weight of the clothing model; try the skeleton of the human model on the three-dimensional clothing model by optimizing the evaluation function; do the same deformation for the three-dimensional human model according to the deformation of the skeleton joint; Physical simulation and collision detection are used to solve the penetration problem of three-dimensional human body model and three-dimensional clothing model, restore the human body posture and get the trial-wear effect under the original posture. This method can try on the three-dimensional clothing model in any position and body shape of the three-dimensional human model, and get the clothing in a given position of the trial-On effect. The invention keeps the size of the garment and is ready for judging whether the garment is fit.
【技术实现步骤摘要】
一种基于骨架的快速试衣方法
本专利技术涉及计算机图形,布料仿真,虚拟试衣与计算机动画领域,特别是涉及一种基于骨架的快速试衣方法。
技术介绍
将给定的三维虚拟服装试穿到任意姿势和体型的三维虚拟人体上具有极大的价值,尤其在网上购物商城,虚拟试衣间等应用中。传统的二维到三维(2D-to-3D)方案包括三维纸样位置摆放、缝合、悬垂仿真三步。然而这个过程十分耗时耗力。大多数现有的三维试衣方法主要基于参考人体模型和目标人体模型的对应关系,或变形目标人体模型去适应服装模型,或变形服装模型去适应目标人体模型。然而,当参考人体模型缺失时,这些方法将无法工作。为解决这个问题,Li等人提出了一种无需参考人体模型的方法(参见JituoLi,JuntaoYe,YangshengWang,LiBai,andGuodongLu.Fitting3dgarmentmodelsontoindividualhumanmodels.Computers&graphics,34(6):742–755,2010),但是该方法需要手工生成衣服的骨架。随后,Lu(参见LuchenHuangandRuoyuYang.Automaticalignmentforvirtualfittingusing3dgarmentstretchingandhumanbodyrelocation.TheVisualComputer,32(6-8):705–715,2016.)等人提出了一种自动化、无需参考人体模型的试衣方法。然而该方法只能处理短袖衬衫和裤子,且要求服装左右对称,这极大的限制了该方法的应用。最近,Tiss ...
【技术保护点】
1.一种基于骨架的快速试衣方法,包括以下步骤:(1)输入三维衣服模型以及三维人体模型;(2)生成步骤(1)中输入的三维人体模型的骨架和蒙皮权重;(3)通过优化评价函数,将骨架试穿到步骤(1)中输入的三维服装模型上;(4)根据步骤(3)中骨架关节的变形,对三维人体模型做相同的变形;(5)利用物理仿真和碰撞检测,解决步骤(4)中三维人体模型和三维服装模型的贯穿问题;(6)做与步骤(4)相反的变形操作,恢复人体姿势,得到原始姿势下的试穿效果。
【技术特征摘要】
1.一种基于骨架的快速试衣方法,包括以下步骤:(1)输入三维衣服模型以及三维人体模型;(2)生成步骤(1)中输入的三维人体模型的骨架和蒙皮权重;(3)通过优化评价函数,将骨架试穿到步骤(1)中输入的三维服装模型上;(4)根据步骤(3)中骨架关节的变形,对三维人体模型做相同的变形;(5)利用物理仿真和碰撞检测,解决步骤(4)中三维人体模型和三维服装模型的贯穿问题;(6)做与步骤(4)相反的变形操作,恢复人体姿势,得到原始姿势下的试穿效果。2.如权利要求1所述的基于骨架的快速试衣方法,其特征在于,步骤(1)中输入的三维衣服模型至少包括一件衣服。3.如权利要求1所述的基于骨架的快速试衣方法,其特征在于,步骤(1)中的三维衣服模型和三维人体模型为网格模型,所述网格模型为三角形网格或四边形网格。4.如权利要求1所述的基于骨架的快速试衣方法,其特征在于,步骤(2)中三维人体模型的骨架和蒙皮权重使用专业软件手工生成,或自动将现有的骨架结构嵌入到三维人体模型中,再根据热扩散方程生成相应的蒙皮权重。5.如权利要求1所述的基于骨架的快速试衣方法,其...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。