Proper md2 to mdl conversion?

Discuss the creation of various model formats for Quake engines, and related matters to modeling.
Post Reply
Mathuzzz
Posts: 21
Joined: Sun May 09, 2010 3:59 pm

Proper md2 to mdl conversion?

Post by Mathuzzz »

Hi, as title says, I was trying to convert md2 to Hexen 2 mdl. It was the weapon model(Elven Wand from Heretic). What is the proper way to convert these two formats? Because after I converted it with Quark model editor, both the model and the texture were messed. I tried it the other way, converting it to md3 and then to mdl. While the model was OK, texture was messed again. So is there some better converter or did I missed anything? Thanks.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: Proper md2 to mdl conversion?

Post by Spike »

hexen2 has a different palette. you'll need to find a converter that either explicitly supports hexen2 or has an option to change the palette.
Mathuzzz
Posts: 21
Joined: Sun May 09, 2010 3:59 pm

Re: Proper md2 to mdl conversion?

Post by Mathuzzz »

That´s sadly not the case :)
I´ll post the screenshot which says it better.
Image
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: Proper md2 to mdl conversion?

Post by ceriux »

looks kinda like uv maps are getting messed up. i cant really tell what the model is. but you could try noesis.
Mathuzzz
Posts: 21
Joined: Sun May 09, 2010 3:59 pm

Re: Proper md2 to mdl conversion?

Post by Mathuzzz »

This is what the model was supposed to look like.

Image

So I guess it is not just UV maps.
Spirit
Posts: 1065
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Re: Proper md2 to mdl conversion?

Post by Spirit »

Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Mathuzzz
Posts: 21
Joined: Sun May 09, 2010 3:59 pm

Re: Proper md2 to mdl conversion?

Post by Mathuzzz »

Hm, same result with Qwalk. What is strange is that the model looks fine in model editor, but in game it looks like this. :(
Seven
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Proper md2 to mdl conversion?

Post by Seven »

Hello Mathuzzz,

I think I have seen you in the Quakeone Hexen2 thread.
Good to see you working on H2. :)

Regarding your question:
I think it is an engine dependent issue.
I quickly converted the Heretic wand model to .mdl (like you did) and got these results:

With FTE engine:
Image

With UQE engine:
Image

With DP engine:
Image

With jhexen2 engine I received a similar result like you have (model is totally messed up).
So I think it is the replacement feature of the engine, that causes this.

Anyway, this is what I did:
- Converted .dmd model from Cain / PiCKleBro into .md2 with "md2tool"
- Converted .md2 model to .mdl with "Noesis" (you can also use "qwalk" for this step)
- Created matching replacement texture with "QME"

It was necessary to create a replacement texture, due to different color palette (just like Spike said !).
Without replacement texture, the colors do not match to Hexen2 palette.

I hope this could help you a little bit.
Seven
Mathuzzz
Posts: 21
Joined: Sun May 09, 2010 3:59 pm

Re: Proper md2 to mdl conversion?

Post by Mathuzzz »

Hi Seven, yes I use jsHexen and I thought the engine might be the case.
Thing is that I think jsHexen is the best engine for Hexen 2. UQE is OK, but has fewer features and with more recent release it has strange movement physics for weapons. Some of them are "flying" in front of you and move differently when you walk. (even though I like the jumping there more :) ).
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: Proper md2 to mdl conversion?

Post by Spike »

glquake has a few limits that if exceeded can result in memory corruption, I guess that's what's happening here. Try simplifying the model down to <512 verts? might be less, not sure what the actual limit is.
Post Reply