| Cloth simulation is an indispensable subject in computer graphics,and it has high economic and social value.Nowadays,there are some problems don't be solved in this filed,such as the difficulty to capture garment models,unreal simulation results and simulation's low efficiency.In view of this,we present a real-time cloth simulation technique based on garment sewing patterns.Firstly,for simplifying current garment modeling pipeline,we present a semi-automatic solution of modeling clothing.We parse the vector graphs of sewing patterns,get primitive groups by clustering,classify them as one of three types(cloth panels,texts or unit frame),then design algorithm to generate 23 garments' mesh models with the auxiliary of user interface as the input of cloth simulation.Secondly,for accelerating simulation,we implement real-time cloth simulation based on GPU.By analyzing current simulator's computation,we present a parallel cloth simulation algorithm based on GPU,and reduce the running time greatly,resulting in more than 300 times faster than old system.In addition to this,our simulation's results are competitive in comparison with other simulation technique based on GPU.Our simulation supports clothes from different sewing patterns or various materials,and allow some user operations such as drag cloth.Our simulation has both the features of reality and real-time,and provides a new idea for cloth simulation. |