bb7c74fec8
Redesign how IndexFile parsing works, again
...
Now it reads much more of the index file format, and tries to handle
index1/index2 differences more opaquely. I'm not yet happy with the API, it
needs a bit more work.
2025-03-06 18:52:26 -05:00
18de50f365
Fix vertex declaration repr
2024-11-03 11:27:57 -05:00
f6c2b98b80
Model: Make vertex declarations and enums public
2024-11-03 11:00:33 -05:00
d5b3b8a468
Run cargo fmt
2024-04-20 13:18:03 -04:00
ed9d7936e1
Improve the docs for model file ops and vertex declarations
2024-04-20 09:03:16 -04:00
2e27a999d6
Add types for short2/short4 vertex formats
...
As seen in 16d32cf5a8
2024-04-17 20:44:12 -04:00
a7a9a7855e
Add invalid data test for MDL
2024-04-16 22:05:39 -04:00
7c3d5a3142
Add new unknown vertex type found in Dawntrail benchmark
...
Not sure what it's used for yet, but needed to be added so parsing
doesn't completely fail.
2024-04-14 13:25:50 -04:00
ed5a9b52b1
Separate the model header updating, and add test
...
This adds the model file for c0201e0038_top but everything but the
header parts are zeroed out to prevent possible copyright infringement.
2024-02-25 10:26:05 -05:00
36027c9a9f
Write out a proper end of stream vertex element
2024-02-25 09:01:59 -05:00
4194ec4432
Rename Uint4 to Byte4 so it's clearer
2024-02-25 08:54:16 -05:00
ecc872ead1
Use better constant values for model file header and vertex element
2024-02-25 08:41:03 -05:00
6000720658
Fix tangent reading/writing
2023-12-17 18:58:48 -05:00
3721644340
Separate vertex declaration/element code into its own file
...
This is around 100 LoC by itself, so it's nice to separate that
2023-12-13 17:23:56 -05:00