Game Development Community

[Bug 1.1 Beta3 and 1.0.1] TSSkinMesh::updateSkin should also apply bone transforms to vertex tangents - LOGGED

by Ming-Yang Yu · in Torque 3D Professional · 10/20/2010 (4:32 am) · 1 replies

I think this is the bug of algorithm implementation.

In the skinning process of skinned mesh, bone transforms should not only apply to vertex normal but also vertex tangent.

Following is the experiment result done for T3D 1.0.1, but I found T3D 1.1 Beta3 also forget to apply transform to tangents.

Original [bug result]:
img258.imageshack.us/img258/9808/48773101.png
I made some changes with TSSkinMesh class, and make
zero_vert_normal_bulk and m_matF_x_BatchedVertWeightList
series function also updates vertex tangent. Then the result seems more correct!
img175.imageshack.us/img175/854/19445292.png