|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/io/character_io.h"#include "momentum/character/character.h"#include "momentum/character/skeleton_state.h"#include "momentum/io/fbx/fbx_io.h"#include "momentum/io/gltf/gltf_io.h"#include "momentum/io/shape/pose_shape_io.h"#include "momentum/io/skeleton/locator_io.h"#include "momentum/io/skeleton/mppca_io.h"#include "momentum/io/skeleton/parameter_transform_io.h"#include "momentum/io/skeleton/parameters_io.h"#include "momentum/math/fwd.h"#include <algorithm>#include <optional>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| Character | momentum::loadFullCharacter (const std::string &characterPath, const std::string ¶metersPath=std::string(), const std::string &locatorsPath=std::string(), LoadBlendShapes loadBlendShapes=LoadBlendShapes::No) |
| High level function to load a character of any type, with a local path. | |
| Character | momentum::loadFullCharacterFromBuffer (CharacterFormat format, std::span< const std::byte > characterBuffer, std::span< const std::byte > paramBuffer=std::span< const std::byte >(), std::span< const std::byte > locBuffer=std::span< const std::byte >(), LoadBlendShapes loadBlendShapes=LoadBlendShapes::No) |
| Buffer version of loadFullCharacter function, supports .glb and .fbx file formats. | |
| void | momentum::saveCharacter (const filesystem::path &filename, const Character &character, float fps=120.f, const MatrixXf &motion=MatrixXf(), std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions()) |
| High level function to save a character with motion and markers to any supported format. | |
| void | momentum::saveCharacter (const filesystem::path &filename, const Character &character, float fps, std::span< const SkeletonState > skeletonStates, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions()) |
| High level function to save a character with motion in skeleton states and markers to any supported format. | |