warcraft model importer

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

warcraft model importer

Post by qqta »

hi.. i'm a newbie here.. this is my first post and i really really need help.. :(

i'm working on my college final project, it's a tower defense game (if you play warcraft, it's something similar like TD in warcraft).. i decided to use irrlicht and i want to import the model from warcraft because my final project is focusing on implementing the a* pathfinding algorithm, not the modelling

warcraft model is in .mdx format and i can succesfully convert it into .md3 but the problem is irrlicht doesn't fully support .md3 format, i can't move or do createflystraightanimator with it..
i tried to convert the .md3 to other formats (.x,.obj,etc) but i can't convert the animation, the new format model just stays put.. except for the .md2 format, the animation works but the texture completely goes wrong (i used .bmp).. i don't know what to do..

so can someone please help me?
- does anyone know about converter from .mdx or .md3 format to other format that irrlicht supports including animation and right texture?
- or i should just wait until irrlicht fully supports .md3 but for how long?

i really really need help and i hope you can help me.. i really appreciate it

ps: please ignore my bad english :wink:
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

you could write your own mdx importer for irrlicht, if you could get hold of the format specification (it's probably online somewhere i guess).

How is the texture messed up in md2? Maybe try flipping the texture horizontally? I've come across that problem before.
Image Image Image
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

Post by qqta »

hmm.. i have no idea about writing my own mdx importer.. irrlicht is kinda new for me.. do you know anyone who has written some mdx importer for irrlicht?

the texture is completely different, i have one of the templates here (i used misfit model 3d to convert .md3 into .md2)

this one is for md3
Image

this one is for md2
Image

it's completely different and i'm so dumb about this modelling n texturing thing.. any advice?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Maybe post a screenshot of how the texture appears in irrlicht and how you'd expect it to appear.
Image Image Image
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

Post by qqta »

when i use md3 it appears like this
Image

but when i use md2
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Do you use a Mac, or some other non-x86 architecture? That's where I saw this kind of artifacts before.
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

Post by qqta »

i use vista (hate it but still using it)
is it something to do with my os?

what should i do then?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Don't think so. Seems to be a problem with the converter, or it's not possible with md2 due to limited values available to some attributes. I guess you should search for other converters, maybe md3 to something else.
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

Post by qqta »

i have searched a lot (trust me..) but i can't find any good working converter.. it doesn't have to be .md2, any irrlicht supported format would do great..

please help me if u know 1
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: warcraft model importer

Post by sudi »

qqta wrote: warcraft model is in .mdx format and i can succesfully convert it into .md3 but the problem is irrlicht doesn't fully support .md3 format, i can't move or do createflystraightanimator with it..
u ca't create flystraightanimator? hmmm thats intresting
bc its just a scenenode. didn'T use md3 but even if the format isn'T fully supported u should still be able to move the model.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, md3 cannot be moved, rotated or anything, because the transformation stuff is handled differently.
qqta
Posts: 15
Joined: Tue Mar 04, 2008 11:05 am

Post by qqta »

i'm so depressed.. my deadline is in couple months and i'm still stuck about this modelling thing..

sorry to keep bothering you guys but can someone help me find any converter.. thx
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Why not find some other models to use? Try turbosquid.com and search for the free models (max price 0), there's loads there and there's probably something you could use.
Image Image Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I'm pretty sure MilkShape3D can convert MDX to B3D, X, or just use native MS3D. It's not free but pretty cheap and it's an invaluable tool to have for converting models.
Also, I didn't try this yet, but putting the MD3 parts inside an empty scene node may work
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah Milkshape might help, try out the free trial of it. I've got a paid up version now as i found it so easy to use!
Image Image Image
Post Reply