Page 1 of 4

A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 8:51 am
by hellwig74
Hi,

cleaning up the basement I found my old Dreamcast and started to play Shenmue (I never finished it in 2000).
It made me think about the engine and suddenly I was in the middle of writing a reader for the geometry files to export them to a documented format. Using the knowledge already collected I made good progress and I'm ready to give a first preview.

Image

The prototype exports the MT5 models to a Blender compatible Collada import file (.dae).
All the object hierachy is preserved, it´s possible to move individual coke can, tables, ...
The texture maps are UV mapped and automatically converted to png files.
Right now only triangle strip primitives are supported.
All the objects are exported as opaque using a single material. Further reversing is necessary to handle the materials in the right way. Handling of flat shaded, Gouraud shaded and Gouraud textured objects is also lacking. Transparent and punchthrough texture nearly work.
For the sake of a good screenshot I manually added transparency to the scene.

Some objects are turned on and off depending on the gamestate (Coke can closed/open).

Here are the binaries for Win7 (64bit).
To get things running first download http://spole.cebix.net/Unpacker.exe and http://spole.cebix.net/MT5Converter.exe.
Unpack the PKF and PKS files using 7zip.
Run Unpacker on both files.
Code: Select all
Unpacker.exe MPK00.PKF

Code: Select all
Unpacker.exe MPK00.PKS

Call MT5Converter on the model file
Code: Select all
MT5Converter.exe MAP.MAPM map.dae

Import the map.dae file into Blender and add a camera and lights.

Source will follow as soon as the program is more feature complete and stable.

Enjoy!
Marc

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 8:56 am
by ShenmueTree
Wow. Will you release builds for 32bit and for Linux? Maybe the source?

This seems amazing.

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 10:43 am
by shengoro86
This is great stuff! Thanks for your hard work!

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 11:24 am
by Fenix
Lol I love these threads. You enter the forum one day and BAM! Somebody has made a new tool, haha. How about character models?

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 12:16 pm
by Esppiral
OMFG, I love you! this is awesome!!!

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 12:40 pm
by BlueMue
Wow that really came out of nowhere. Seems to be the ultimate tool for Shenmue ripping. I'm definately gonna mess around with this sometime. Right now I have more then enough to do with making videos.

Re: A new converter for Shenmue geometry including textures

PostPosted: Fri Nov 14, 2014 3:27 pm
by ReeceKun
I spent so much time getting YMT5 ripper to work lol !!

Re: A new converter for Shenmue geometry including textures

PostPosted: Sat Nov 15, 2014 11:25 am
by IlDucci
It's so freaking awesome! Do you plan on doing an importer?

Re: A new converter for Shenmue geometry including textures

PostPosted: Sat Nov 15, 2014 11:36 am
by mrslig100
Well it looks like we have a new king in converters :king:
Quite possibly the best so far! Especially for shenmue 1!
I dont know what it is that makes the first game's engine so fussy but thats a fantastic rip!

The only comment I have is that it would be great to have a converter for linux.

Re: A new converter for Shenmue geometry including textures

PostPosted: Sat Nov 15, 2014 2:05 pm
by ShenmueTree
Yeah, I need that 'nix lov'n.

Re: A new converter for Shenmue geometry including textures

PostPosted: Sat Nov 15, 2014 2:08 pm
by Esppiral
I have a question, what is exactly preventing from getting a .mt7 model extractor? is that format so much different?

Re: A new converter for Shenmue geometry including textures

PostPosted: Sun Nov 16, 2014 4:17 am
by Fenix
It seems they're not the same. We're more focused on MT5 because MT7 works with 3D Ripper.

Re: A new converter for Shenmue geometry including textures

PostPosted: Sun Nov 16, 2014 8:42 am
by Esppiral
Oh I see... but would be nice to obtain full location models, since 3D ripper only rips what its seen on screen.

Anyway, thanks again for this awesome ripper. :)

Image

Re: A new converter for Shenmue geometry including textures

PostPosted: Sun Nov 16, 2014 1:49 pm
by ShenmueTree
Since I can't use the exacter could someone please upload some map.dae files of locations? Come on, it's my bday. :( I need that Sakuragaoka and Dobuita love. :X

Re: A new converter for Shenmue geometry including textures

PostPosted: Sun Nov 16, 2014 2:41 pm
by MiTT3NZ
3D Ripper X doesn't exactly extract models, it rips "draw calls", so a true extraction tool for MT5-7 is perhaps one of the greatest and most significant achievements/contributions to the modding community.

For that, hellwig has hit instant legend status in my eyes. The community owes you a great debt. Thank you.