ちょっと私の問題は、私が 3dsMax で必要とする完璧なモデルを作成したことです。
エンベロープを正しく配置し、フレームを使用して Biped をアニメートし、 としてエクスポートして、.fbx
を使用して XNA にロードしましたSkinnedModelPipeline
。
XNA に読み込まれると、モデルが変形し、モデルの右腕にしかないように見えます。
私はまだ新しいメンバーなので、現時点では画像を投稿できないため、画像へのリンクをオンラインで送信しています。
3dsMax モデル:
読み込まれたモデル
モデルの描画機能
//an array of the current positions of the model meshes
this.bones = animationPlayer.GetSkinTransforms();
for (int i = 0; i < bones.Length; i++)
{
bones[i] *= Transform.World;
}
//remember we can move this code inside the first foreach loop below
//and use mesh.Name to change the textures applied during the effect
customEffect.CurrentTechnique = customEffect.Techniques[technique];
customEffect.Parameters["DiffuseMapTexture"].SetValue(diffuseMap);
customEffect.Parameters["Bones"].SetValue(bones);
customEffect.Parameters["View"].SetValue(Game.CameraManager.ActiveCamera.ViewProperties.View);
customEffect.Parameters["Projection"].SetValue(Game.CameraManager.ActiveCamera.ProjectionProperties.Projection);
foreach (ModelMesh mesh in model.Meshes)
{
//move code above here to change textures and settings based on mesh.Name
//e.g. if(mesh.Name.Equals("head"))
//then set technique and all params
foreach (ModelMeshPart part in mesh.MeshParts)
{
part.Effect = customEffect;
}
mesh.Draw();
}
私は長い間ゴーグルしてきましたが、この問題を解決するものは何も見つかりません。
どんな助けでも大歓迎です。