最近我發佈了同樣的問題,我的FBX模型在XNA中無法正確顯示。我得到了這個問題的答案,模型顯示稍微好一些,但仍然無法正確顯示。FBX模型在XNA 4.0中無法正確顯示
什麼它看起來應該是這樣的: https://docs.google.com/open?id=0B54ow8GRluDUYTBubTQ4bjBramM 但它顯示爲: https://docs.google.com/open?id=0B54ow8GRluDUNXR5bmJUMVJFTUk
我的繪製代碼:
public void Draw(Matrix projection, Matrix view)
{
Matrix[] transforms = new Matrix[model.Bones.Count];
model.CopyAbsoluteBoneTransformsTo(transforms);
foreach (ModelMesh mesh in model.Meshes)
{
foreach (BasicEffect effect in mesh.Effects)
{
effect.EnableDefaultLighting();
effect.View = view;
effect.Projection = projection;
effect.World = Matrix.CreateRotationX(-270) *
transforms[mesh.ParentBone.Index] *
Matrix.CreateTranslation(Position);
}
mesh.Draw();
}
}
能有人請幫助! 謝謝。
我沒有一個谷歌文檔帳戶,我看不到你的鏈接。下次使用Imgur。 – LightStriker
你不需要一個谷歌帳戶 – Antony
那麼,當我點擊鏈接,它要求我登錄。 – LightStriker