I have imported this model from 3DS max:
But when I load it into my Monogame project, it looks smaller, a little bit taller and roundish:
(It’s on meters on 3ds max)
This is how I draw it:
foreach (ModelMesh mesh in court.model.Meshes) { foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); effect.PreferPerPixelLighting = true;
Matrix world = Matrix.CreateRotationZ(court.GetRot()) * Matrix.CreateTranslation(court.GetPos()); Matrix projection = Matrix.CreatePerspectiveFieldOfView(fov, aspectRatio, nearClipPlane, farClipPlane); effect.World = world; effect.View = Matrix.CreateLookAt(cameraPos, targetPos, upVector); effect.Projection = projection;
} mesh.Draw(); }
I tried changing the far clip plane, adding the depth buffer, exporting it in different ways.
Also, my models are part of a class called Element, in which they are loaded in here:
public void ModelLoader(ContentManager content) { model = content.Load<Model>(filename); transforms = new Matrix[model.Bones.Count]; model.CopyAbsoluteBoneTransformsTo(transforms); }
If you could help in any way I’d appreciate it!