I wrote a code that loads the vertices, the indices and the texture coordinates from the file and fills up a MeshBuffer.
I can render the model but when I move the camera from (0, 0,0) the object disappears.
Even with
Code: Select all
camera.FarValue = 9999999999;
camera.NearValue = 0.001f;
buffer.RecalculateBoundingBox();
mesh.RecalculateBoundingBox();
sceneNode.SetMaterialFlag(MaterialFlag.BackFaceCulling, false);
camera.AutomaticCulling = CullingType.Off;