ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

Don't assume data type for reading attributes for mesh data #37

Closed ScanMountGoat closed 3 years ago

ScanMountGoat commented 3 years ago

This fails for non Smash Ultimate models such as Pokemon Snap. The vertex normals can't be assumed to have 4 components, for example. A reasonable solution may be to convert sizes 1,2,3,4 to size 4 for reading tangents, for example, and set the remaining values to defaults.