Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Number of vertices in Blender vs number of vertices in XNA

Number of vertices in Blender vs number of vertices in XNA

Scheduled Pinned Locked Moved Graphics
visual-studiodebugginghelp
2 Posts 1 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KamranKamal
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • K KamranKamal

      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

      K Offline
      K Offline
      KamranKamal
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups