18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 14:07:06 +01:00
Files
maszyna/rendering/common
maj00r 115c13b274 fix(model): EU07M review of #539: a model made anew keeps its transforms, normals of scaled joints, the rest pose far from the origin
- 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.
2026-11-29 18:16:19 +01:00
..
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-11-17 01:02:52 +01:00
2026-10-26 15:51:56 +01:00