gomtuu / import_valkyria

Blender import script for Valkyria Chronicles 3D model files
GNU General Public License v3.0
19 stars 12 forks source link

Support for Shining Resonance Refrain #11

Open s-ilent opened 5 years ago

s-ilent commented 5 years ago

Models from Shining Resonance Refrain can be imported from with this script, but they are missing some important data, like UVs and shapekeys.

When loading a .hmd file, the model was loaded with no UVs. When importing .mlx files, an error occurs noting unimplemented blocks. Checking the files, here are the headers I found that don't have implementations.

DCOL
BSPH
UNMV
MPMV

I was able to begin loading am .mlx after implementing these as pass (they don't seem to contain any important data). Subsequently, the model loaded with UVs and bones intact as well as textures.

However, face shapekeys appear to be stored in seperate .mlx files in a facial directory. A KFSS block in one of those files begins like this, for example:

4B 46 53 53 40 02 00 00 20 00 00 00 00 00 00 10 
02 00 00 00 90 01 00 00 00 00 00 00 00 00 00 00

I'm not sure if that corresponds with the VC1 values.

I can send samples if needed.

gomtuu commented 5 years ago

Cool! Thanks for the info!

No need to send samples, I think. SRR happens to be 75% off on Steam right now, so I just bought it.

I'm sort of on a break from import_valkyria, but I'll try taking a look at the models eventually.