我正在为 C# 使用 Assimp。我导入 fbx 文件。我正在尝试使用索引缓冲区渲染包含文件的多边形。我试着让他们喜欢:
var meshes = meshFile.Meshes;
foreach (Assimp.Mesh mesh in meshes)
{
List<Vertex> meshFileVerticesList = new List<Vertex>();
if (mesh.HasVertices)
{...
if (mesh.HasVertices)
{
...
}
Indices = mesh.GetShortIndices(); //I thought this will give to me something like 0,1,2 2,3,0 so on
}
}
我得到了指数的结果:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14....
如果我手动做:Indices = new short[] { 0,1,2 2,3,0 }
我看到一张脸。
如何正确获取索引数据?或者 fbx(?) 中没有索引数据