HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

MDL Animation, Vertex and groups

11-08-2011, 10:39 AM#1
bendaowei
In mdl file, Vertex is controlled by bones, vertex -> vertex group -> corresponding bone groups -> bone,

Vertex = { Position, Normal , UV, vertex group, bones groups}

from vertex group to bone groups

Bone group, Matrices{ 0 }, 0 means bone with ObjectID = 1, which means this vertex is controlled by bone (with ObjectID = 1) matrix.

Sometimes, there are two or more elements in Matrices, for example Matrices{ 0, 1}

How does it works in this situation? Does a vertex is controlled by two or more bones? If yes, where is the weight?
11-08-2011, 05:36 PM#2
Rao Dao Zao
The weight is proportional to the number of vertices; so 0, 1 means a 50/50 split. 0, 1, 2 would get you 33/33/33, and so on. There is no direct way to specify weight, though I wouldn't discount the possiblity of 0, 0, 0, 1 working to get a 75/25...
11-09-2011, 03:28 AM#3
bendaowei
Thanks, it explains well. Let me make it be implemented in codes.