BobDoleOwndU / FMDL-Studio-v2

Unity Engine importer and exporter for Fox Engine models.
MIT License
46 stars 13 forks source link

Question about FMDL format #23

Closed leus closed 4 years ago

leus commented 4 years ago

Hey,

Question: where do I can find information about the FMDL file format? I'm trying to come up with a nice way to read PES 2020 faces to Blender 2.80, and I'm stuck with textures. I see that in your parser there is a ReadMaterialInstances() function, but I'm having troubles following the logic regarding firstTextureIndex and such. Mind sharing a bit on how textures are defined inside the FMDL file?

Thanks in advance!

folly-ah-duh commented 4 years ago

Here is a relevant wiki page that breaks down the format. Bob can probably go into deeper detail, but this should be a good place to start.

leus commented 4 years ago

Wow, great - I went down this rabbit hole about two days ago and I can't even sleep :-D (trying to understand material parameters!)

leus commented 4 years ago

Yay!

41 - Texture: fox_skin_mat
                        Texture type Base_Tex_SRGB : face_bsm_alp.dds
        *** Executing tool: ""D:\TestTool\Tools\FtexDdsTools.exe" "D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_bsm_alp.ftex""
                Adding texture to material 'D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_bsm_alp.ftex'
                        Texture type NormalMap_Tex_NRM : face_nrm.dds
        *** Executing tool: ""D:\TestTool\Tools\FtexDdsTools.exe" "D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_nrm.ftex""
                Adding texture to material 'D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_nrm.ftex'
                        Texture type SpecularMap_Tex_LIN : face_srm.dds
        *** Executing tool: ""D:\TestTool\Tools\FtexDdsTools.exe" "D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_srm.ftex""
                Adding texture to material 'D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_srm.ftex'
                        Texture type Translucent_Tex_LIN : face_trm.dds
        *** Executing tool: ""D:\TestTool\Tools\FtexDdsTools.exe" "D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_trm.ftex""
                Adding texture to material 'D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_trm.ftex'
                        Texture type RoughnessMap_Tex_LIN : face_srm.dds
        *** Executing tool: ""D:\TestTool\Tools\FtexDdsTools.exe" "D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_srm.ftex""
                Adding texture to material 'D:\Whatever\1234\Asset\model\character\face\real\33633\sourceimages\#windx11\face_srm.ftex'

Now I need to figure out how Blender should use these textures to their intended use :-)