HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tech-ni-cal question about mdl

08-26-2004, 11:12 AM#1
deffer
Greetings.
I'm new to this forum, so - hi to all.

I'm currently writing an mdl loader for war3 models('cause they are the best;)).
I want to support animations, particles and all that stuff.

I know mdl specification, so it was not to hard to read and display a static model. But for the animations, there are still some features I'm not sure about. On all the net people point at this forum, that you know all the needed stuff. That's for introduction, let's get going:
As far as I know(correct me, if I'm wrong):
- bones(and helpers) are arranged into a tree(that's pretty standard), so a child node inherits transformation from it's parent, then applies it's own, then passes merged transformation to all it's children,
- vertices are sticked to a particular a bone in entire groups, so a vertex inherits transformation from it's bone...

That would be fine, but which vert-group is sticked to which bone is written in so-called Matrices. And there I see, that a vert-group can be dependent on more than one bone. So if, for example, a vertex is sticked to left leg and right leg, and they are moving quite independently, should the vertex transformation be interpolated between transformations of the legs?

Thanks if you can answer that...
def
08-26-2004, 06:42 PM#2
RodOfNOD
You should PM "Cookie". He has written these types of tools and would be able to help you with the details. There are several mdl tutorials on this site but they may not be detailed enough for you.

If you don't get any good results then let me know with a PM.

While we have lots of good tools regarding mdl we can always use more.

Good Luck,

Rod
08-26-2004, 08:50 PM#3
Oinkerwinkle
The position of the vertex will be the average of all the positions it would have been if it were controlled by only one of them.

So, if you have a vertex being controlled by bones 0 and 1, and they are moving with opposite vectors, it will not move (average to 0).
08-27-2004, 09:16 AM#4
deffer
Oinkerwinkle:
That's just the accurate answer that I needed.

Rod:
For now, I will have much work with the stuff I already know all about.
But I will surely follow your advice later.

Thanks, guys.
/def