Example-Based Wrinkle Synthesis for Clothing Animation

Clothing Wrinkle Dataset

Description

This is the clothing wrinkle dataset used in the paper Example-Based Wrinkle Synthesis for Clothing Animation. This dataset contains wrinkle meshes used for the male characeter example, including a long sleeve shirt and long pants. If you are interested in the female characater example, please contact the author for more information. The wrinkle meshes are made for a specific character, provided in Poser 4.0. For characters with different body sizes, you may need to make certain adjustment to ensure that the clothing fits with the new body.


Links

Data File (139MB, in Zip)
long_sleeve.mesh
pants.mesh
Sample BVH


How to

The two meshes contain the long sleeve mesh and the pants mesh respectively. They are defined as simple binary streams of the vertex number, the vertices, the triangle number, and the triangle indices. Here is a sample code that can read them:

std::fstream input;
input.open(filename, std::ios::in|std::ios::binary);
if(!input.is_open()) {printf("ERROR: Cannot open the mesh file %s.\n", filename); return false;}
Read_Binary(input, vertex_number);
vertices =new float[vertex_number*3];
Read_Binaries(input, vertices, vertex_number*3);
Read_Binary(input, triangle_number);
triangles =new int[triangle_number*3];
Read_Binaries(input, triangles, triangle_number*3);
input.close();
return true;


The .sim file contained in the dataset only has the vertex stream. To read it, simply ignore the vertex number, the triangle number, and the triangle indices, and call:

Read_Binaries(input, vertices, vertex_number*3);

The name of each .sim file typically has four parts. The first part indicates the joint name, the second, third, and fourth parts are joint angle values. For example, lshldr_30_90_down_0090 means this file contains the wrinkle mesh when the left shoulder joint has three angle values: 30, 90, and 90 (moving down). For a joint with only one Degree-of-Freedom, the name only contains two parts, like this left shin joint: lshin_bend_0075. Joint angles are ordered according to the BVH file. Please check it for more information.