Page 1 of 1

Metal Gear Solid 4 [Blender] [WIP]

Posted: Fri Nov 27, 2020 1:06 am
by MyRightArmTheGodHand
Heyy,
I've been looking to rip some models off MGS4. There were at least two maxscripts to import .mdn files, but unfortunately I don't have access to 3ds max. The .mdn format is mostly documented so I decided to look into this myself. I got a barebones blender importer that can do vertex positions and faces. Also supports batch import.

This would be my first on writing a blender plugin and fiddling with byte level data, so I'm kinda suprised I got something useable.
Image
Image

I tried to do bones, too, but couldn't find much reference on blender's end. I'll try to keep working on it and appreciate any input.

These helped me a lot:
https://www.mgsdevwiki.com/wiki/index.php/MDN
viewtopic.php?t=11013
viewtopic.php?f=10&t=11018
http://wiki.xentax.com/index.php/Blender_Import_Guide

EDIT:
UVs added, seems to produce correct results.
https://github.com/skelerang/mgs4mdn-blender-import

Re: Metal Gear Solid 4 [Blender] [WIP]

Posted: Sat Nov 28, 2020 1:41 pm
by Portugalotaku
Do these come with assigned textures?

Re: Metal Gear Solid 4 [Blender] [WIP]

Posted: Sat Nov 28, 2020 2:26 pm
by MyRightArmTheGodHand
No, also no UV's or anything. But I did intend to work on this next. I haven't looked at it much yet, but I expect to find "filenames" for the textures, which should make it easy.

Re: Metal Gear Solid 4 [Blender] [WIP]

Posted: Sat Nov 28, 2020 5:24 pm
by Portugalotaku
MyRightArmTheGodHand wrote: Sat Nov 28, 2020 2:26 pm No, also no UV's or anything. But I did intend to work on this next. I haven't looked at it much yet, but I expect to find "filenames" for the textures, which should make it easy.
Ah, a shame. The maxscript is pretty handy, but having no assigned textures makes it hard to use, since the texture files just have number strings as names.

Re: Metal Gear Solid 4 [Blender] [WIP]

Posted: Sun Sep 05, 2021 2:52 am
by jesus1259
Hey, I got my hands on a copy of metal gear solid 4 iso and from there I was able to extract numerous models using the "solid eye tool" as well as the "MDN plugin" for Noesis let me know if you'd like any models extracted and ill do the best I can to provide them!!!! Image Image

Re: Metal Gear Solid 4 [Blender] [WIP]

Posted: Sun Sep 05, 2021 8:58 am
by SecaProject
Congrats!
Bones are done in my script, I can help you.