Concerning the code posted by you, if I were qualified to offer recommendations, I would strongly recommend that you do not try to do THAT in THAT manner. You might try to look up "DirectX Mesh Animation Problem" in the bugs section of a later version of the 3DGS manual. But that is only a type of 'guess'.