3 index buffers

后端 未结 2 1587
灰色年华
灰色年华 2021-01-01 23:58

So, in both D3D and OpenGL there\'s ability to draw from an index buffer.

The OBJ file format however does something weird. It specifies a bunch of vertices like:

2条回答
  •  情歌与酒
    2021-01-02 00:54

    OBJ was not designed to map to OpenGL or DirectX.

    Everything you said is true, and no, it's not possible to use per-attribute indices.

    You have to convert the OBJ representation to something that only uses a single index per vertex (possibly duplicating some vertex data along the way).

提交回复
热议问题