From b5f0a45d9b10ebab8610ba235bc46f69fd58e2a2 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 22 Feb 2023 17:35:17 -0600 Subject: begin cglm bind refactor --- src/import/notes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/import/notes.md (limited to 'src/import') 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. -- cgit v1.2.1