News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

The md5 file

Started by doom3xbox, July 17, 2016, 09:21:44 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

doom3xbox

Hi,

I read the dev site about exporting model meshes for the game. As well as animation.

I want to add a animated model into a map, will this replace an existing character? Or an actual custom should be fine, I think so.

As for exporting into md5, I tried using blender 2.63 with the export from the kats site. It doesn't work.

Reminds me a little of the ASE file and GTKradiant for a game like elite force. Not that an example file work for me at all that is. But yes, that file only worked in that format once everything was connected.

As for texturing, I'd have to load the textures I have used and place them in a textures folder in the Doom 3 folder. I've changed one of four so that isn't a problem, since they are all uv mapped.

Thank you.

doom3xbox

I just read on a topic at the bottom of this section, that there is an up to date mesh and animation export available for version 2.76.

From what I read, they both must be exported seperately? And the amount of bones making up a skeleton should be a handful or can ten be used for example?


doom3xbox

Well I have sixteen bones, and I added the whole skeleton with Add in the MD5 window area, and I then tried individually, they both have errors, and that was with selecting the object which is parented to the skeleton.


doom3xbox

For anyone who has used Blender, would you like to try and get the animated enemy working in the game.

doom3xbox

For anyone who can use Blender, please try and get this mesh problem sorted, working for Doom 3. I'm no good with this.

Thank you.

doom3xbox

I was never able to get this into Doom 3.

Could I not use any animation in it?

bitterman

Not sure what exactly problem you have.

Try to add a new md5 model with simple armature (origin and few other bones), two anim states only (idle and walk), simple .def, .mtr and ai.script files (based on original assets). In my case that was a simple bobbing cube with moveToEnemy task.


argoon

Is very easy to export animated md5 models, to idtech 4 after you know how (obviously).

First you need to have a working md5 exporter for blender.

Second you need to know how to correctly use that exporter, the one i use for example (the one graciously given by the arx team), needs the exported bones to be in a separated layer, layer 5 to be exact. That is so you can have a complex animating rig in one layer and only export the bones you need in another.

Third the root bone MOST be called origin, is a requirement and it is used as the root point of the animated model, as well has the "floor" for characters, so it should be put where it makes sense, like between the feet of a character. Btw i don't know if this is really necessary but i heard that you should animate the root bone as well when you want a model to move from a place to another ingame.

Four you need to make a .def file for the animated model, is a requirement, in this .def file you define, the md5 mesh and the md5 animations, this file is very important and very powerful, on it you can define from particle effects to particular sounds that come from particular bones or animation frames, plus other things.

Five a idle animation should always be defined, it can be a single frame.


About bone limitations, i'm no expert but this is what i recall, idtech 4 supports max 256 bones on a single character (the animation rig on blender or others can have more but it should be baked to 256 bones or less) and a vertex on the mesh can only be assigned to a single bone, but the bone can influence many vertex's (this is equal to many other engines), md5 only supports bone animation.   

TeaMonster

Working with MD5 is a nightmare. The Blender exporter is a major pain in the arse to work with due to it being very picky on what bones are supposed to go on which level. I was never able to get it to export anything. The only importer I ever got working works with 2.49, which is like working with a stone axe. I'm not wanting to work with an ancient version of Blender to do modding. I don't have time for the hassle.

I have no idea if you can even get exporters for 3D Max nowadays at all. This could be a major reason why modding for Doom 3 is dying out. I don't know why nobody ever used assimp to get the FBX file format working with Doom 3.

The Happy Friar

I only 2.49 almost exclusively (because it's what I know and it does everything I want).  Motorsep released some good modern Blender md5 exporters.
The only bone issue I know of with md5 is that the first bone must be "origin" (no caps) & everything must be under that. 
md5 exporters have nothing to do with Doom 3 not being modded.  The largest factor is that Epic is a tech company & sells tech, so they're trying to sell tech, not a game.  id's a game company that has tech to sell, Epic switched to being a tech company a while ago & uses games as advertising, and when you want to sell tech you need people to know how to use it.

You'll have a hard time finding tools for most games that are 13 years old.  I'm not even sure you can get the free modeling program that Valve said to use with HL2 any more.

TeaMonster

We were originally going to use MD5 for the new Doomsday. I'm aware of the origin bone for D3 models as I worked on the Severance mod before and I helped out the Doom Reborn guys too.

With Doomsday, The problem we had was that our animator would create a rig for the character with extra driver bones to power IK and constraints. He created a proper rig. I think we used the Arx exporter, it was a while ago,  and it was terribly finicky. It would demand that certain bones be put on certain layers. But no matter how we moved the bones around, it would always throw up errors. It would also give the error that half the vertices didn't have any weights to them, which was just preposterous.

Another problem we had, I can't remember if it was with the Arx exporter or the other one posted here, is that half the model would be the wrong scale, sort of like two-face got hit by a shrinkray.

After messing with this for a few days, we got one of the Doomsday devs to implement FBX and all our problems were solved. It's a shame as the next time someone made a Doom-in-Doom 3 mod, they would be all set to go.

The new Blender has a lot of new tools that make game modelling a LOT easier, such as cage baking, a pretty good LOD tool and a ton of new modelling tools. Transporting animations and meshes back and forth between 2.49 and 2.7 is very problematical at best.


The Happy Friar

I've found the xReal md5 exporter the best for 2.49 D3 work (http://idtechforums.fuzzylogicinc.com/index.php?topic=17.0)

The biggest issue with md5 export/import scripts is that they're normally tailored to the dev style of the one making them.

Years ago I did some work for a small game company in breaking down the md5 format for their artists.  I found lots of things you can't do to export properly (scaling in the wrong way messes with stuff), and I've helped out some modelers/animators get stuff out.  With Blender md5 exporters you can't scale the bone, do object motions, a whole bunch of other things I don't remember, all because Maya didn't have issues with them when id make the game but other programs do.

For your layers, I'm imagining that it's so the controller bones don't get exported, just the ones bounds to the mesh.

Motorsep's the one who got md5 assets out of the newer Blender versions in to md5.  Maybe he can chime in.  :)

motorsep

Hoi hoi !

https://github.com/motorsep/blender-idtech4-md5

Haven't tested with Blender 2.78, but works with 2.77

The Happy Friar

I was looking in the steel storm 2 git, that's why I couldn't find it!  :)

TeaMonster

#14
Thank you! I'll let you know how it goes. The guys at Doom Reborn asked for a hand with getting the Doomsday models into their mod. 

I was talking to gamehacker over at Doom Reborn and we are both wondering if the lack of exporters for MD5 is part of the reason why the modding community has pretty much dried up.