How do I bind a skeleton to a mesh?

90 Views Asked by At

I need to create a mesh and its skeleton with data that is already present as raw data (Vertices, Indices, TextureCoordinates, Normals, Bones, Weights, Positions, and so on). I have a MeshGeometryModel3D fully setup and it works perfectly with the Helix Toolkit SharpDX in WPF. It currently represents a character without its skeleton / animations. Now, I want to attach a skeleton to it. I just don't find any documentation to do so. I looked at the examples but the only interesting thing I found, was the "BoneSkin" Example, but it's loading a fbx file without doing it with raw data.

I think atleast, that I need something other than a MeshGeometryModel3D, because it is missing any bone bindings so I found BoneSkinnedMeshGeometry3D but it seems to be missing important features like "Materials".

I tried:

  • Setup a fully working MeshGeometryModel3D, but seems to be incompatible with bones
  • I tried using the BoneSkinnedMeshGeometry3D class but it seems to be missing important features like Materials and I'm not sure how to use this class, because I don't find any documentation.
1

There are 1 best solutions below

3
Lance H On

You need to use BoneSkinMeshGeometryModel3D with BoneSkinMeshGeometry3D.