# Faces on 3D model not rendering in the correct

I seem to be having trouble with rendering models in monogame. I'm trying to draw several cubes, in a minecraft style world. It's a simple .obj file, nothing special. But... for whatever reason, both the top and the bottom are rendering over the sides, as can be seen here in these four cubes.

My code is simple as can be, so I can't imagine the problem is directly the fault of this:

public static void DrawModel(Model model, Matrix modelspace, Texture2D texture)
{

foreach (ModelMesh mesh in model.Meshes)
{
foreach (BasicEffect effect in mesh.Effects)
{

//effect.EnableDefaultLighting();
effect.TextureEnabled = true;
effect.Texture = texture;
effect.World = modelspace;
effect.View = Cameraworks.ActiveCamera.View;
effect.Projection = Cameraworks.ActiveCamera.Projection;
}

mesh.Draw();
}

}


How do I fix this?

• Looks like some of your normals are inverted... Check in your 3D editor to make sure they're pointing outward. – Vaillancourt Jul 7 '16 at 10:48
• Normals inverted, like @AlexandreVaillancourt said, or somehow your meshes are going ACB instead of ABC (vertex direction). – Jesse Williams Jul 7 '16 at 16:08
• Any clue would I go about fixing the latter problem? How would I make them go in the correct order... – Charybdizs Jul 7 '16 at 16:54

GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise;