blender threejs 导出没有骨头且格式错误的文件

blender threejs exports file without bones and in wrong format

我一直在尝试学习 unboring.net 上关于如何将动画网格从 blender 导出到 threejs 的教程。当我使用教程作者提供的 eva-animated.blend 文件时,一切正常。但是,当我尝试创建自己的网格并将其导出到 threejs 时,结果格式错误并且骨骼数据似乎未包含在内。

我的文件:monkey.blend。 Url: https://drive.google.com/file/d/0B-4iDXLNwo9_WmtmSXBEWVhBa2s/view 输出格式:

{
  data: {
    attributes: {
      position: {
        type: "Float32Array",
        array: [...],
        itemSize: 3
      },
      normal: {
        type: "Float32Array",
        array: [...],
        itemSize: 3
      },
      uv: {
        type: "Float32Array",
        array: [...],
        itemSize: 2
      }
    },
    index: {
      type: "Uint16Array",
      array: [...],
      itemSize: 1
    }
  },
  metadata: {
    position: 2898,
    version: 3,
    uv: 2898,
    type: "BufferGeometry",
    normal: 2898,
    generator: "io_three"
  }
}

作者档案:eva-animated.blend。 Url:https://drive.google.com/file/d/0B-4iDXLNwo9_eXZTWlBkdlp3SzA/view 输出:

{
  normals: [...],
  metadata: {
    normals: 762,
    generator: "io_three",
    vertices: 738,
    version: 3,
    uvs: 1,
    materials: 1,
    bones: 33,
    type: "Geometry",
    faces: 762
  },
  skinWeights: [...],
  vertices: [...],
  bones: [..],
  animations: [...],
  uvs: [...],
  skinIndices: [...],
  materials: [...],
  name: "BodyGeometry.6",
  influencesPerVertex: 2,
  faces: [...]
}

猴子的数据只是没有加载到 threejs 中,而 eva-animated 完美运行。我想知道我的 monkey.blend 文件有什么问题,因为我已经尝试了所有方法,但我无法使输出正确。我的文件有一个绑定的网格、一个简单的动画等。

我试过你的文件,我得到了骨头
您是使用 BufferGeometry 类型还是 Geometry 类型导出?

我正在使用 Geometry 类型并且正在获取骨骼
但是我没有测试动画,我只打开了文件