Page 1 of 1

Proper md2 to mdl conversion?

Posted: Sun Apr 28, 2013 1:09 pm
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.

Re: Proper md2 to mdl conversion?

Posted: Sun Apr 28, 2013 5:29 pm
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.

Re: Proper md2 to mdl conversion?

Posted: Sun Apr 28, 2013 7:17 pm
by Mathuzzz
That´s sadly not the case :)
I´ll post the screenshot which says it better.
Image

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 2:13 pm
by ceriux
looks kinda like uv maps are getting messed up. i cant really tell what the model is. but you could try noesis.

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 2:33 pm
by Mathuzzz
This is what the model was supposed to look like.

Image

So I guess it is not just UV maps.

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 3:25 pm
by Spirit

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 4:17 pm
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. :(

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 4:31 pm
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

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 4:49 pm
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 :) ).

Re: Proper md2 to mdl conversion?

Posted: Mon Apr 29, 2013 4:54 pm
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.