Quake MDL vs MD2...

Discuss the creation of various model formats for Quake engines, and related matters to modeling.
Post Reply
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Quake MDL vs MD2...

Post by drm_wayne »

I have a question about those 2 modelformats..

I exported a Quake MDL out of MS3D which looks ok-ish, still has vectrex swimming but it looks ok-ish..
Same model gets exported as MD2, it looks VERY horrible, details are almost gone, and the animation is super ughly.

Also now i exported the same model out of 3dsmax with the MD2 exporter, and it isnt that bad like the MS3D MD2, but
still has more vectrex swimming than the MDL...

So i always thought MD2 was better and more improved unlike the old MDL, but it looks like i was wrong.
Is MD2 really worser than MDL?
qbism
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am
Contact:

Re: Quake MDL vs MD2...

Post by qbism »

Both formats store vertices in the same way: byte coordinates, normal index, and scale and translate factors for the model.

Ideally a modeling program would maximize coordinate space with scale and translate based on maximum extent of all animation frames. If it's some fixed scale assumption instead, md2 might swim more because of larger monsters.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Quake MDL vs MD2...

Post by leileilol »

MD3 has vertex swimming too FYI.
i should not be here
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Quake MDL vs MD2...

Post by drm_wayne »

looks like there is no way around IQM or DPM...
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: Quake MDL vs MD2...

Post by Spike »

as qbism says, mdl and md2 both use byte positions with origin+scale
the difference between the two is that md2 has that origin+scale on a per-frame basis while mdl is per-model.
this means that if your model moves/resizes then *EVERY SINGLE VERTEX* must move in order to stay aligned on the byte grid.

md3 is 16bit with 1/64th qu precision (iirc). if you move the verts at the extremity, nothing else needs to move. however, small movements (1/32th - 1/64th qu) will end up visibly snapped to the grid. maybe the user won't notice.

iqm has full 32bit float precision. being a skeletal format, it can be slower to render. frames are expressed as per-bone rotations or translations, as such, just moving verticies around randomly for each frame is a bad idea. you'll need to animate them properly, on a bone-by-bone basis. good luck fixing up problems after the fact. yes, you will need to be more careful with your rigging.

dpm as a format is pointless. its advantage is its obscurity, but that's basically it. use iqm. iirc, exporters for this format are somewhat compatible with halflife's smd stuff, so you may find it easier to export to if that's the you're already familiar with that (not a contradition: toolchains often make or break a format regardless of any technical merits of the format itself) .
qbism
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am
Contact:

Re: Quake MDL vs MD2...

Post by qbism »

Spike wrote:the difference between the two is that md2 has that origin+scale on a per-frame basis while mdl is per-model.
this means that if your model moves/resizes then *EVERY SINGLE VERTEX* must move in order to stay aligned on the byte grid
:shock: explains swimming of stationary cyborg parts.
mankrip
Posts: 924
Joined: Fri Jul 04, 2008 3:02 am

Re: Quake MDL vs MD2...

Post by mankrip »

qbism wrote:
Spike wrote:the difference between the two is that md2 has that origin+scale on a per-frame basis while mdl is per-model.
this means that if your model moves/resizes then *EVERY SINGLE VERTEX* must move in order to stay aligned on the byte grid
:shock: explains swimming of stationary cyborg parts.
Great observation.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Quake MDL vs MD2...

Post by drm_wayne »

Spike wrote:this means that if your model moves/resizes then *EVERY SINGLE VERTEX* must move in order to stay aligned on the byte grid.
This is really horrible, i have a reload loop on a rifle where the player holds the rifle and inserts bullets..
With MDL it looks good but with md2 everything seems to be made out of jelly..

But thanks for the information :)
Eukara
Posts: 31
Joined: Fri Jul 22, 2011 3:00 pm
Location: /dev/cdrom
Contact:

Re: Quake MDL vs MD2...

Post by Eukara »

It shouldn't look any different to MDL. They both work the same way in that aspect. You probably converted from MDL to MD2 which isn't exactly lossless?
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Quake MDL vs MD2...

Post by drm_wayne »

nope, exported from the SAME MODELINGPROGRAM...
Ace12GA
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: Quake MDL vs MD2...

Post by Ace12GA »

Spike wrote:dpm as a format is pointless. its advantage is its obscurity, but that's basically it. use iqm. iirc, exporters for this format are somewhat compatible with halflife's smd stuff, so you may find it easier to export to if that's the you're already familiar with that (not a contradition: toolchains often make or break a format regardless of any technical merits of the format itself) .
I would hardly say its pointless. If you're using Darkplaces it is very useful, as it handles smd files very well, unlike the iqm tools. Like half life mdl files, it includes the ability to rotate and move the mesh around at compile time without changes in your 3D modelling suite. I spent days fighting with iqm, trying to get my meshes into that format, and eventually gave up. Dpm took an hour to get up and going with porting some of my Half Life and Half Life 2 content.

In short, if you like working with smd files as your export medium, steer clear of iqm.
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Quake MDL vs MD2...

Post by drm_wayne »

Ace12GA wrote:In short, if you like working with smd files as your export medium, steer clear of iqm.
I have to say i got a headache when i tried to make an IQM (impossible Quake Model haha), my models are always fucked... :?
The Darkplaces DPM worked like a charm with my SMDs... :D

About MDL/MD2: im only using those for my mods which dont use darkplaces.
goldenboy
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel
Contact:

Re: Quake MDL vs MD2...

Post by goldenboy »

IQM is excellent if you're creating original models in Blender - exporting to FTE or DP is almost a one-click thing.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Quake MDL vs MD2...

Post by leileilol »

His concern is convenient origin/rotate/scale adjustment which isn't a bad idea to have in the IQM pipeline.


and his models are original and he doesn't use blender.
i should not be here
Post Reply