Zack Buhman 70b46b0dd8 header: bug: input element indices are global, not per-<triangles>
This was never triggered in previous commits because all prior tests
were with Collada files that only used a single vertex format for the
entire file (therefore index=0 is always correct).

3ds Max CAT bones are (very appropriately) exported with no texture
coordinates, and therefore require a different vertex attribute
declaration with a different stride.

Coincidentally, this meant that CAT meshes were rendered with the
correct vertex attribute, while all (e.g: non-CAT, containing texture
coordinates) meshes incorrectly used the CAT vertex attributes, which
resulted in garbled nonsensical renderings with meaningless garbage
vertex data.

This bug alone consumed at least 4 hours of focused debugging
time. Because the Collada file that triggered this also contained a
complex skeleton, I was originally convinced that the "vertex
transformation result is garbage" bug was caused by something more
directly related to the animation/joint transform calculation.
2026-03-31 19:10:13 -05:00
2026-01-05 18:12:02 -06:00
2026-01-12 16:00:00 -06:00
2025-12-30 15:01:41 -06:00
2026-01-05 11:26:22 -06:00
2026-01-05 11:26:22 -06:00
2025-12-30 15:01:41 -06:00
2026-01-08 21:24:02 -06:00
Description
No description provided
10 MiB
Languages
C++ 92.7%
Python 6.2%
HLSL 0.7%
C 0.2%
Makefile 0.2%