About bones in modelfile

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

About bones in modelfile

Post by AdrTru »

I would like to make bone definition in model file becouse I had some problems with making new monster, but I dont understand function of InvResMatrix in bone definition.
IMHO it is important property for bones. I making some tool for managing modelfile (in Delphi) and this work so so for Add/set bones etc.

Can someone explain me what means vector in bone definition? (invRestMatrix)
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: About bones in modelfile

Post by petri »

As explained in the Model and Animation File Formats document, invRestMatrix is a 4x3 transformation matrix that transforms from the modeling pose (also called rest pose, t-pose etc.) to bone's local space. It's the inverse of bone's transformation matrix. These matrices are needed so that the rendering engine knows how the bone transformation in animations correlate to the modeling pose.
Post Reply