How to attach weapon on MD2 model

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.
Post Reply
prchakal
Posts: 58
Joined: Thu Sep 24, 2009 12:31 am

How to attach weapon on MD2 model

Post by prchakal »

Hi ppl,

I search for it on tutorials but not find, so i have this question:

How to attach weapon on MD2 model ?

I have:

ogre.md2 and weapon.md2, how to attach weapon on ogre.md2?
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

You cannot do this easily.
1. You can do that like they did in Quake 2, which means you`ll need to:
a) if you want to keep the .md2 model with animations you`ll need to get a .md2 editor and position the weapon for each frame manually, then make it child of the character and play same frame loops for both.
b) You can create your model with animations and weapon in 3d max or some other program, then export the character and/or weapon to .md2 format.
c) You may be able to get one triangle from the model and use it to transform the weapon model, but this is not recommended for a beginner, so don`t ask how exactly it could be done.
d) [put some other ideas here]
Keep in mind this is some lame way doing that, and the only advantage this has is the performance. IMO this is useful for some strategy type game or sth. similar. It still has its benefits, but it`s not flexible and not the animator`s-friendly dream as a whole.
2. Not use the old .md2 format, but use some skinned model.
3. Leave it the way it is and think about doing after some time.
4. [open for some other ideas here]
:D
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
prchakal
Posts: 58
Joined: Thu Sep 24, 2009 12:31 am

Post by prchakal »

wow...thanks for response...

and what format you use to then models and weapon?

you make the model with weapon and after change all the model for each weapon?

what other model format (skinned) i can animate with star/end frame like md2 ?

can i use counter strike/unreal 2004/lineage 2 model to test with irrlicht or i need to convert? if i need convert, what format i can use for animations?

sorry for all the questions, but i dont find this informations in anyone website, and i think that it will help the beginners too.
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

prchakal wrote: and what format you use to then models and weapon?
what other model format (skinned) i can animate with star/end frame like md2 ?

can i use counter strike/unreal 2004/lineage 2 model to test with irrlicht or i need to convert? if i need convert, what format i can use for animations?
Currently I`m using .X formatted models with bones and I attach the weapon model as a child of the hand bone, but it works with .ms3d and .b3d also. You can search how to do it- there`re many topics about that.(Try words like "attaching weapon") . As for the cs/unreal models I don`t know- I doubt you can use them directly, but you may be able to convert them to the formats irrlicht supports, which may need to create a skeleton and animations in your modelling program. Milkshape3d had some converter for such formats, but I`ve never used that, since I prefer creating my own models.
sorry for all the questions, but i dont find this informations in anyone website, and i think that it will help the beginners too.
Well, get used to checking the irrlicht website: http://irrlicht.sourceforge.net/features.html Browsing a little will give you some information about the model and any formats it supports.
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
Post Reply