]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
redesigned skeletal model animation bone pose format - instead of
[xonotic/darkplaces.git] / model_shared.h
index 19b252b1200971be1c642a0d59d90ce217f15c04..36336d2d62f80c76af544e77c4f26479e0c6e267 100644 (file)
@@ -868,8 +868,10 @@ typedef struct model_s
        // for skeletal models
        int                             num_bones;
        aliasbone_t             *data_bones;
+       float                   num_posescale; // scaling factor from origin in poses6s format (includes divide by 32767)
+       float                   num_poseinvscale; // scaling factor to origin in poses6s format (includes multiply by 32767)
        int                             num_poses;
-       float                   *data_poses;
+       short                   *data_poses6s; // origin xyz, quat xyz, w implied negative, unit length, values normalized to +/-32767 range
        float                   *data_baseboneposeinverse;
        // textures of this model
        int                             num_textures;