mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 18:47:06 +01:00
115c13b274
- A node of a model made anew (legacy_flags 0) with a transform gets 0x8000, as a converted one has it: the walk and posed_transform() left such nodes out, so a skin was drawn off its place in the bind pose (the tube: the upper half 2 m off) and jumped when an animation set 0x4000 on the joint. - Normals are skinned by the cofactors of the blended rotation (the direction of its inverse transpose), with the sign of its determinant, not by the rotation: a joint scaled unevenly tilted the normals of its part. - rest_pose() takes the translation within the tolerance times the distance from the origin of the mesh and the joints (palette_scale()): the float chain rounds in proportion to it, and a model a few kilometres out counted as posed in the bind pose, with a geometry copy and a skinning pass of its own. Tests: the rest pose far from the origin, the normals of a stretched and of a mirroring joint.