【发布时间】:2019-05-29 21:55:59
【问题描述】:
我已使用 Blender 将 3D 模型导出为 json。 看起来像: index is highlighted with yellow.
我的查询是这个“索引”代表什么?它是如何填充的?
【问题讨论】:
标签: json three.js blender 3d-modelling 3d-model
我已使用 Blender 将 3D 模型导出为 json。 看起来像: index is highlighted with yellow.
我的查询是这个“索引”代表什么?它是如何填充的?
【问题讨论】:
标签: json three.js blender 3d-modelling 3d-model
Index 表示索引BufferGeometry 的索引缓冲区。来自documentation:
允许在多个三角形中重复使用顶点;这称为使用“索引三角形”,其工作原理与几何中的相同:每个三角形与三个顶点的索引相关联。因此,此属性存储每个三角形面的每个顶点的索引。如果未设置此属性,则渲染器假定每三个连续位置代表一个三角形。
顺便说一句:使用 R93 删除了 Blender JSON 导出器。请将您的模型导出为glTF。这是three.js 推荐的3D 格式。有关此主题的更多信息,请阅读以下指南:
https://threejs.org/docs/index.html#manual/en/introduction/Loading-3D-models
three.js R100
【讨论】: