Page 1 of 1

Quake MDL vs MD2...

Posted: Tue Aug 05, 2014 3:41 pm
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?

Re: Quake MDL vs MD2...

Posted: Tue Aug 05, 2014 4:57 pm
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.

Re: Quake MDL vs MD2...

Posted: Tue Aug 05, 2014 6:27 pm
by leileilol
MD3 has vertex swimming too FYI.

Re: Quake MDL vs MD2...

Posted: Tue Aug 05, 2014 7:20 pm
by drm_wayne
looks like there is no way around IQM or DPM...

Re: Quake MDL vs MD2...

Posted: Tue Aug 05, 2014 9:47 pm
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) .

Re: Quake MDL vs MD2...

Posted: Wed Aug 06, 2014 11:34 pm
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.

Re: Quake MDL vs MD2...

Posted: Thu Aug 07, 2014 11:23 am
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.

Re: Quake MDL vs MD2...

Posted: Thu Aug 07, 2014 6:18 pm
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 :)

Re: Quake MDL vs MD2...

Posted: Thu Aug 07, 2014 8:35 pm
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?

Re: Quake MDL vs MD2...

Posted: Sat Aug 09, 2014 7:39 pm
by drm_wayne
nope, exported from the SAME MODELINGPROGRAM...

Re: Quake MDL vs MD2...

Posted: Sat Aug 23, 2014 8:04 pm
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.

Re: Quake MDL vs MD2...

Posted: Tue Aug 26, 2014 4:05 pm
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.

Re: Quake MDL vs MD2...

Posted: Tue Aug 26, 2014 6:39 pm
by goldenboy
IQM is excellent if you're creating original models in Blender - exporting to FTE or DP is almost a one-click thing.

Re: Quake MDL vs MD2...

Posted: Wed Aug 27, 2014 8:18 pm
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.