r/AskProgramming • u/Putrid-Board-5683 • Sep 17 '26
C/C++ Trying to Convert PS2 Models & Animations
I’ve been trying to get a project off the ground, but have been stuck on a big snag. I’m attempting to create a PC port of an obscure PS2/GameCube game: ‘Tak and the Power of Juju.’ Originally, I was going to use the 3D Screenshot Modded version of PCSX2, but that would’ve been way too tedious and I couldn’t even get animation data from it.
These past couple months, I’ve been trying to figure out how to rip files directly from the game. The files are in proprietary formats, and because the series is obscure, no one has made programs to reverse engineer the files. I’ve learned that I can use ImHex and Hex2Obj to read and parse hex data, but I don’t entirely understand how it works. I don’t know how to find patterns in hex data or write code to parse it.
From my understanding, I can write code to find patterns for me, but I’ve gotten conflicting search results on what code I need to write. Does anyone here know what code I should write in order to find and parse hex patterns? Thanks in advance.
2
u/cyberbemon Sep 17 '26
How familiar are you with reverse engineering? Im gonna assume you know some things, in that case here is a guide from the creator of ImHex on how to use it to work with unknown file formats: https://werwolv.net/posts/file_format_reverse_engineering/
This should get you comfortable enough to with ImHex.
For Hex2Obj try this: https://reshax.com/topic/183-ultimate-tutorial-for-reverse-engineering-a-game-model-wip/
unfortunately its not a complete tutorial, but it covers just enough for you to start using it.
Then go through this, there is a subsection on how to deal with extracting 3D models from games: https://reshax.com/topic/47-reverse-engineering-tutorials-collection/
Also read through this: https://www.gamedevs.org/uploads/the-definitive-guide-to-exploring-file-formats.pdf
unfortunately that entirely depends on how data is stored in each game, so you are gonna have to do some work on figuring that out, the links I have given you should be enough to teach you that. I'll be honest, you are gonna have to do quite a bit of work here. Its a good learning experience though. Good luck.
3
u/[deleted] Sep 17 '26
[removed] — view removed comment
1
u/[deleted] Sep 19 '26
[removed] — view removed comment