Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
gltf_animation_io.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

std::tuple< MotionParameters, IdentityParameters > momentum::getMotionFromModel (fx::gltf::Document &model)
 Get motion parameters from a glTF model.
float momentum::calculateFpsFromAnimationData (const fx::gltf::Document &model)
 Calculate FPS from glTF animation data.
std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotionFromModel (fx::gltf::Document &model)
 Load motion data from a glTF model.
std::tuple< Character, MatrixXf, JointParameters, float > momentum::loadCharacterWithMotionCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input, bool mapParameters=false)
 Load character with motion from input (common implementation).
std::tuple< MatrixXf, JointParameters, float > momentum::loadMotionOnCharacterCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input, const Character &character)
 Load motion onto a character (common implementation).
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadCharacterWithSkeletonStatesCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input)
 Load character with skeleton states from input (common implementation).