diff options
author | sanine <sanine.not@pm.me> | 2023-02-22 17:35:17 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-22 17:35:17 -0600 |
commit | b5f0a45d9b10ebab8610ba235bc46f69fd58e2a2 (patch) | |
tree | 8fef6c14a2d5c1ad316cbc072af3d313908350d2 /src/import/notes.md | |
parent | 353d60d3ebc353aef474633e7064067a2ef343ce (diff) |
begin cglm bind refactor
Diffstat (limited to 'src/import/notes.md')
-rw-r--r-- | src/import/notes.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/notes.md b/src/import/notes.md new file mode 100644 index 0000000..bf84f32 --- /dev/null +++ b/src/import/notes.md @@ -0,0 +1,14 @@ +tinyobj notes +============= + +tinyobjloader-c is not a very well-documented library, so i'm gonna keep some notes +as i figure things out + + * the indices within a vertex_index_t object are not indices into the vertices, normals, or texcoords arrays; + rather, they are indices to 3-vectors within those arrays. To get actual indices, multiply them by three. + * "shapes" are individual meshes. + * a shape's `face_offset` is the *number of faces* into the `faces` array to go before + you find the data for the current shape, and the length is the *number of faces*. + This means that they are **NOT** indices to the `faces` array; they are indices/lengths + in the `face_num_verts` array, which you can then use to determine indices into the + faces array. |