以下で使用する方法が、画面に描画する前にモデルの位置を決定する正しい方法であるかどうかを知りたいと思いました。モデルを複製してフロアを作成したい場合。「Zファイティング」の問題に直面していることに気づきました^ ^。
どうもありがとうございます
描画前のモデルの st 位置へのコード サンプル:
model_Position.X = (float) 1.0;
model_Position.Z = (float) 3.0;
model_Position.Y = (float) 5.0;
// Draw the model. A model can have multiple meshes, so loop.
foreach (ModelMesh mesh in model_ground_land1.Meshes)
{
// This is where the mesh orientation is set, as well
// as our camera and projection.
foreach (BasicEffect effect in mesh.Effects)
{
effect.EnableDefaultLighting();
effect.World = transforms[mesh.ParentBone.Index] *
Matrix.CreateRotationY(model_Rotation) * Matrix.CreateTranslation(model_Position);
effect.View = View;
effect.Projection = Projection;
}
// Draw the mesh, using the effects set above.
mesh.Draw();
}