Suppose I have two meshes (Let call me first MeshShirt and second - MeshBody) Meshes are aligned (if i render both MeshShirt "covers" MeshBody). But some parts of the body are not "under" the MeshShirt (because MeshShirt shape differs from MeshBody)
How can i "pull up" parts of MeshShirt which are under MeshBody and hold other parts in their places? Of course i want save shape of MeshShirt if it possible
I think about following algorithm
mark all points of MeshShire which under MehsBody by tracing intersection of its normals and MeshBody.
But if MeshShirt "hidden" parts have complex shape normal tracing will not work. So some way to detect bad points is needed
move every marked point to the plane of its nearest triangle of MeshBody.
But i afraid that these algoritm may produce significant deformation of MeshShirt. So some shape preserved deformation is needed too.
Sorry for my poor English and fuzzy problem definition