Number of vertices in Blender vs number of vertices in XNA
-
I'm trying to import a terrain that I made in Blender by exporting it (from Blender) in .fbx format. This model has only one modelmesh and Blender tells me in the top right hand corner that I have 16,384 verts which is correct since I divided my mesh into 128*128 equal parts. I then imported my model into XNA using the Content pipeline and loaded it into a Model class. I inserted a breakpoint on this line to "watch" the verticesIn.length property.
land.Meshes[0].MeshParts[0].VertexBuffer.GetData<VertexPositionNormalTexture>(verticesIn)
The verticesIn.length property was set to 54452, which is just over 3.3 times the number of vertices I'm meant to have as shown in Blender. I'm using Blender v2.72 and XNA v4.0. Any help will be greatly appreciated.
Kamran Kamal
-
I'm trying to import a terrain that I made in Blender by exporting it (from Blender) in .fbx format. This model has only one modelmesh and Blender tells me in the top right hand corner that I have 16,384 verts which is correct since I divided my mesh into 128*128 equal parts. I then imported my model into XNA using the Content pipeline and loaded it into a Model class. I inserted a breakpoint on this line to "watch" the verticesIn.length property.
land.Meshes[0].MeshParts[0].VertexBuffer.GetData<VertexPositionNormalTexture>(verticesIn)
The verticesIn.length property was set to 54452, which is just over 3.3 times the number of vertices I'm meant to have as shown in Blender. I'm using Blender v2.72 and XNA v4.0. Any help will be greatly appreciated.
Kamran Kamal
I went through my model creation process again; saved and exported after each step and checked the number of vertices in XNA. Everything appears fine until the deform modifier is applied in Blender. As a work-around I decided to export my model after applying modifier. Importing the model into a new blender file, and then exporting the model. This worked! :-D Before doing this, I had tried exporting my model in .x format but this didn't make any difference. I'm not sure if this problem exists with any modifier or just the deform modifer.