Page 4 of 4

Re: Mafia 2 models [pc]

Posted: Tue Nov 16, 2010 10:59 am
by huckleberrypie
Nice, I've been waiting for some time for this to happen. Any plans for an export plugin or a Max script for the game?

Re: Mafia 2 models [pc]

Posted: Tue Nov 16, 2010 3:07 pm
by DerPlaya
@CityPoke912: be sure to use the latest version (i edited the post some time ago). post the errors...

@huckleberrypie: i don't have max... and there's too much unknown stuff (collision models, LOD related structures, lights, ...)
the fileformat is pretty complicated (almost as bad as GTA4's). maybe oleg(zmodeler) takes a look at it some time...

Re: Mafia 2 models [pc]

Posted: Wed Nov 17, 2010 2:12 am
by huckleberrypie
I don't have max... and there's too much unknown stuff (collision models, LOD related structures, lights, ...)
the fileformat is pretty complicated (almost as bad as GTA4's). maybe oleg(zmodeler) takes a look at it some time...
Yeah, pretty much so. Which explains why it took a very long time for IV's model formats to be cracked, and as of today it still isn't fully documented.

Re: Mafia 2 models [pc]

Posted: Sat Nov 27, 2010 8:38 pm
by Tosyk
Here you can find info about converting models, but no english yet, sorry.

Re: Mafia 2 models [pc]

Posted: Tue Dec 07, 2010 8:49 pm
by lUIGUIPIETRO
Tosik I can not add textures

Re: Mafia 2 models [pc]

Posted: Wed Dec 08, 2010 2:39 am
by Tosyk
lUIGUIPIETRO wrote:Tosik I can not add textures
What do you mean "can not add textures"?

1 - you can't add textures to model?
just drag to mesh from material editor

2 - you can't add textures to 3ds max\maya\xsi\blender?
just add to material editor

Re: Mafia 2 models [pc]

Posted: Wed Dec 08, 2010 5:09 pm
by lUIGUIPIETRO
Tosyk wrote:
lUIGUIPIETRO wrote:Tosik I can not add textures
What do you mean "can not add textures"?

1 - you can't add textures to model?
just drag to mesh from material editor

2 - you can't add textures to 3ds max\maya\xsi\blender?
just add to material editor
I had a problem with 3DS Max. I can now add textures.
Thanks and great job on his blog.

Now you just need to add vehicles to Mafia II.

(Translation from Russian to Spanish is horrendous in google ,...)

Re: Mafia 2 models [pc]

Posted: Thu Jan 27, 2011 10:42 pm
by ReeceMix
The english translation has been added
http://cg.forexperts.ru/en/2011/01/410/

Ive been extracting parts of the landscape. SDS 2 DAE (M2ObjMC v2.2)

Image
(this is made up of 16 individual DAEs)

The Material IDs are intact, and If I found the textures and reconstructed the Multimaterial slots It would render correctly but that would take forever.

Can this program be updated to either show which DDS textures are used for each DAE model extracted (in a text file) or export the DAE's with the Material/DDS names intact?


-----------------------------------------

Tosyk wrote:January 29th, 2011 - 09:32

Right now i’m analyzed structure of arpatro.Object05.L0.dae (converted by M2ObjMC) and arpatro.Object05.L0.dae (converted by Mafia2ModelDumper) from arpatro.sds. And I must admit that there is no logical connection between all material/object/texture files inside arpatro.sds, or maybe this information encrypted.

Mafia2ModelDumper converting in *.dae only one object (with Multimaterial, like you said).
M2ObjMC separating by material and converting in *.dae separated objects.

But not in the first case and not in the second there is no information on which object which texture you should apply to.

So for now you must looking for object’s texture by object’s UV.

Re: Mafia 2 models [pc]

Posted: Wed Mar 09, 2011 9:16 am
by RoadTrain
Can anyone provide a link to M2ObjMC since one I've found contains a virus?
http://www.virustotal.com/file-scan/rep ... 1299658108

Re: Mafia 2 models [pc]

Posted: Wed Mar 09, 2011 11:04 am
by ReeceMix
RoadTrain wrote:Can anyone provide a link to M2ObjMC since one I've found contains a virus?
http://www.virustotal.com/file-scan/rep ... 1299658108
the link above in my last post is from the offical author of the program it has no virus

Re: Mafia 2 models [pc]

Posted: Wed Mar 09, 2011 9:47 pm
by RoadTrain
ReeceMix wrote:
RoadTrain wrote:Can anyone provide a link to M2ObjMC since one I've found contains a virus?
http://www.virustotal.com/file-scan/rep ... 1299658108
the link above in my last post is from the offical author of the program it has no virus
Oh my antivir Avast! detects a virus there.
http://virusscan.jotti.org/ru/scanresul ... 8564937f6d
http://www.virustotal.com/file-scan/rep ... 1299702356

Re: Mafia 2 models [pc]

Posted: Wed Mar 09, 2011 11:09 pm
by ReeceMix
False Positive

Re: Mafia 2 models [pc]

Posted: Sun Jul 15, 2012 1:45 pm
by AceVentura
Hi DerPlaya!

im using your programm to export dae files from sds, and it works very well, but it is very hard to identify which mesh to which texure belongs.

Over Tosyks' page WinOSi pointed out that there is some kinda connection between meshes and textures.
OK, “mafia ii\edit\materials\default.mtl” is the materials library containing all the texture-names.
“mafia2modeldumper\release\Mafia2Tool\FileFormats\MaterialLibrary.cs” is the source code to load this material library.
In “MaterialInfoEntry.cs” there is imported a 64-bit “MaterialHash” for each group of triangles. With this Hash-Key you can query the materials library to find the textures.
In file “BaseComponent.cs”, there is a “TransformMatrix” for each objects, that tells exactly where to place and orient that object. In my tests, I had to scale the dae’s by before applying the matrix.

er… the missing scale factor from above is (-0.01, -0.01, 0.01).
The only thing missing for the complete city are the shared objects like trees etc.
They are stored in city_crash.sds, but the exported dae’s of the foliage seems to be corrupt. Maybe you can help here…
Can u please somehow modify ur programm to export which dae belongs to which dds?

Thank you

Re: Mafia 2 models [pc]

Posted: Thu Aug 01, 2013 11:21 am
by ReeceMix
Taken From Tosyk's website
OK, “mafia ii\edit\materials\default.mtl” is the materials library containing all the texture-names.
“mafia2modeldumper\release\Mafia2Tool\FileFormats\MaterialLibrary.cs” is the source code to load this material library.
In “MaterialInfoEntry.cs” there is imported a 64-bit “MaterialHash” for each group of triangles. With this Hash-Key you can query the materials library to find the textures.
In file “BaseComponent.cs”, there is a “TransformMatrix” for each objects, that tells exactly where to place and orient that object. In my tests, I had to scale the dae’s by before applying the matrix.
Has there been any progress in assigning the correct dds UVs to the dae models?

Re: Mafia 2 models [pc]

Posted: Thu Feb 06, 2020 5:01 pm
by Henchman800
Tosyk wrote: Sat Aug 14, 2010 3:59 am Requesting for Mafia 2 models converter.

Hey there!
Many years later, I'm on ripping a few mafia assets myself! ^^

I used your extractors to get the .dae files out of the .sds archives.
I wanna import the carshowroom into blender. The problem is that some objects seem to have incorrect positions:
Image

So far so good....
The problem is that the showrooms interior is misplaced. Is there a way to fix that? Or do I have to do it manually?
Thx for the great tools by the way :-)

PEACE