Radfordhound / HedgeLib

A C++ library and collection of tools that aims to make modding games in the Sonic the Hedgehog franchise easier.
MIT License
88 stars 24 forks source link

Opening .model Files #73

Closed Chadt54 closed 3 years ago

Chadt54 commented 3 years ago

I've downloaded Sonic Unleashed PS3, and I've been able to extract everything using QuickBMS to the point where I'm looking at .model files. I tried using the GensModel.Load(string filePath) function on these .model files, but it seems to fail to load. Is there something I'm doing wrong?

Currently, I'm just interested in extracting the model files from Sonic Unleashed, as a starting point, but then afterwards I'd like to work across to the other files types and be able to deserialize those into memory as well so that I can reconstruct the levels. This is less about modding the game, and more about rebuilding the levels in my Unity project. I'm unsure to what extent I want to re-create the levels, but for now, I'm just probably wanting to get the models, their textures, and their positions/rotations/scales for rebuilding the level.

Can you give me any insight? (Also, how did you figure out the .model file specifications? Did that come from reverse engineering the PC version of Generations? Or some other way? Or do you have a spec to the format you are following?

Thank you!