Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Rage (idTech5) model format md6

Post questions about game models here, or help out others!
Szkaradek123
mega-veteran
mega-veteran
Posts: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 742 times

Re: Rage (idTech5) model format md6

Post by Szkaradek123 »

Update for Blender249:
-add materials with correct uv (no the face UVs overlapping )
You do not have the required permissions to view the files attached to this post.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: Rage (idTech5) model format md6

Post by howfie »

was there a bug in our code szkaradek123?
Szkaradek123
mega-veteran
mega-veteran
Posts: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 742 times

Re: Rage (idTech5) model format md6

Post by Szkaradek123 »

Qartar wrote: "At the very end of the file there is a footer with a list of materials, generally more materials than there are surfaces so I'm not sure what it represents."

This part is important for reading correct textures:

File format for this section:

dword[1] - nMaterials
nMaterials x {
dword[1] - long
string[long] - name of the material
dword[1] - get object id
dword[1] - get vertex id from object id - id_min
dword[1] - get vertex id from object id - id_max
id_max = id_max+1
}
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: Rage (idTech5) model format md6

Post by howfie »

cool, thx. fixed!
You do not have the required permissions to view the files attached to this post.
652845095
beginner
Posts: 29
Joined: Tue May 31, 2011 5:22 am

Re: Rage (idTech5) model format md6

Post by 652845095 »

:wink: u guys really amazing!thanks
User avatar
Skykila
advanced
Posts: 47
Joined: Sat Apr 03, 2010 8:03 am
Location: Russia
Has thanked: 154 times
Been thanked: 6 times

Re: Rage (idTech5) model format md6

Post by Skykila »

This is a very very very cool! But what about animation?
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: Rage (idTech5) model format md6

Post by howfie »

anim files don't look that difficult, it's just a matter of having enough time. there are so many anim files all over the place (many shared animations). i provided source code so if anyone else who has the time wants to try... be my guest :-).
dragbody
veteran
Posts: 126
Joined: Tue Sep 20, 2011 4:33 am
Has thanked: 137 times
Been thanked: 10 times

Re: Rage (idTech5) model format md6

Post by dragbody »

Skykila wrote:
This is ALL models
http://www.multiupload.com/FQYQXSR2RM
Do you have the textures decompiled? If so, I've got the Blender importer working for the models and believe I could manually apply the textures now.

Or, can you tell me what tools I would need to decompile the textures myself?
Panzah
advanced
Posts: 62
Joined: Wed Jul 21, 2010 10:11 pm
Has thanked: 6 times
Been thanked: 3 times

Re: Rage (idTech5) model format md6

Post by Panzah »

RAGE uses 4 megatextures for whole game so good luck using that with models, unless you cut it.
For reference, Megatexture is what Google Maps uses for example, from afar it's nice and dandy but from up close it's horridly blured, it's 1 texture of giant proportions that covers everything or almost everything in software it was used in. Very bad idea for games really.
dragbody
veteran
Posts: 126
Joined: Tue Sep 20, 2011 4:33 am
Has thanked: 137 times
Been thanked: 10 times

Re: Rage (idTech5) model format md6

Post by dragbody »

Panzah wrote:RAGE uses 4 megatextures for whole game so good luck using that with models, unless you cut it.
For reference, Megatexture is what Google Maps uses for example, from afar it's nice and dandy but from up close it's horridly blured, it's 1 texture of giant proportions that covers everything or almost everything in software it was used in. Very bad idea for games really.
I have no problem cutting it. The UV map of the models appears to be preserved with the import script linked above, and I don't mind the work. I just need the files themselves.

EDIT: Here's a view from Blender of the models:

Image
User avatar
rev3n4nt
ultra-n00b
Posts: 8
Joined: Tue Nov 15, 2011 12:49 am

Re: Rage (idTech5) model format md6

Post by rev3n4nt »

Alright! :D You guys are amazing! It would be awesome if there is a way to grab those textures out of the game :)
P.S
By the way..I made my own doomguy model just a few month before the game "Rage" out..and it's too sad that some modeller from Id software made it already :( ..just want it to check :?
Image
rmezatang
advanced
Posts: 40
Joined: Mon Jun 21, 2010 3:32 am
Has thanked: 2 times
Been thanked: 6 times

Re: Rage (idTech5) model format md6

Post by rmezatang »

was able to unpack the bmodel, bcm, and use the rage.exe to create the ls files...
Blender (2.49b) import script errors out when trying to import the bmodel file - (or bcm)
Traceback (most recent call last):
File rage.py line 365 in importer
File rage.py line 282 in parser
File rage.py line 116 in Bf
struct.error: unpack requires a string argument of length 4

Tried importing the .ls files using Lightwave 3D 9, but no luck there.
Lightwave files are .lwo, the .ls file opens in lsed.exe (script editor) but only as text,
how do I get it loaded as a model? (lightwave noob here - work mostly with 3dsmax, maya, and daz/poser)

any help greatly appreciated.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: Rage (idTech5) model format md6

Post by howfie »

Open Modeler.
Select Utilities tab.
Select LScript > LScript from menu.
Find ls file.
Click Open.
Done.

As for textures, hooking the OpenGL API is still on my TODO list. If anyone wants to try, I can give you my replacement core OpenGL 1.2 header and source file. All you gotta do is modify the glTexImage2D function (which still applies in OpenGL 3.3), compile it as a DLL, place the new OpenGL32.dll in the game directory and hopefully Rage doesn't contain code to prevent people from hooking the OpenGL API. It will forward calls to the system OpenGL32.dll if necessary.

If you don't know how to compile a DLL, don't even bother trying he he he.
You do not have the required permissions to view the files attached to this post.
rmezatang
advanced
Posts: 40
Joined: Mon Jun 21, 2010 3:32 am
Has thanked: 2 times
Been thanked: 6 times

Re: Rage (idTech5) model format md6

Post by rmezatang »

Thanks for quick reply, imports work now - uv maps don't seem to always work though.
Not really a problem since we don't have textures ^0^

Blender import is supposed to have the UV mapping but still can't get that script to work. :(



and I was so happy when I got the Red Faction models out too...
dragbody
veteran
Posts: 126
Joined: Tue Sep 20, 2011 4:33 am
Has thanked: 137 times
Been thanked: 10 times

Re: Rage (idTech5) model format md6

Post by dragbody »

rmezatang wrote:Thanks for quick reply, imports work now - uv maps don't seem to always work though.
Not really a problem since we don't have textures ^0^

Blender import is supposed to have the UV mapping but still can't get that script to work. :(



and I was so happy when I got the Red Faction models out too...
Which Red Faction game? I own Armageddon but I've been unable to figure out anything for its models.

As for RAGE, I still hope that it gets figured out sometime. Howfie--I have no idea how to do the things you described. I learn more modding tricks everyday, but I think you're well over my head at the moment.

And while I'm talking about models that haven't been figured out yet, if anyone gets the chance to work on Brink, I would be overjoyed. There's the gibbed trunk thing, but I can't figure that out. I'm not even sure it unpacks the files to a usable format.
Post Reply