|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/io/gltf/gltf_io.h"#include "momentum/character/blend_shape.h"#include "momentum/character/character.h"#include "momentum/character/character_state.h"#include "momentum/character/character_utility.h"#include "momentum/character/collision_geometry_state.h"#include "momentum/character/inverse_parameter_transform.h"#include "momentum/character/joint.h"#include "momentum/character/skeleton.h"#include "momentum/character/skin_weights.h"#include "momentum/common/filesystem.h"#include "momentum/common/log.h"#include "momentum/io/common/json_utils.h"#include "momentum/io/common/stream_utils.h"#include "momentum/io/gltf/gltf_animation_io.h"#include "momentum/io/gltf/gltf_builder.h"#include "momentum/io/gltf/gltf_io_internal.h"#include "momentum/io/gltf/gltf_mesh_io.h"#include "momentum/io/gltf/gltf_skeleton_io.h"#include "momentum/io/gltf/utils/accessor_utils.h"#include "momentum/io/gltf/utils/coordinate_utils.h"#include "momentum/io/skeleton/locator_io.h"#include "momentum/io/skeleton/parameter_transform_io.h"#include "momentum/io/skeleton/parameters_io.h"#include "momentum/math/constants.h"#include "momentum/math/mesh.h"#include "momentum/math/mppca.h"#include "momentum/math/utility.h"#include <algorithm>#include <iterator>#include <limits>#include <set>#include <variant>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| Character | momentum::loadGltfCharacterInternal (const fx::gltf::Document &model, std::vector< size_t > &nodeToObjectMap) |
| Internal function to load a character from a glTF model with node-to-object mapping. | |
| Character | momentum::loadGltfCharacter (const fx::gltf::Document &model) |
| Load a glTF character from a document. | |
| Character | momentum::loadGltfCharacter (const filesystem::path &gltfFilename) |
| Load a glTF character from a file path. | |
| Character | momentum::loadGltfCharacter (std::span< const std::byte > byteSpan) |
| Load a glTF character from a byte buffer. | |
| std::tuple< MotionParameters, IdentityParameters, float > | momentum::loadMotion (const filesystem::path &gltfFilename) |
| Load motion data from a glTF file. | |
| std::vector< int64_t > | momentum::loadMotionTimestamps (const filesystem::path &gltfFilename) |
| Load per-frame timestamps from a glTF file. | |
| std::tuple< Character, MatrixXf, JointParameters, float > | momentum::loadCharacterWithMotion (const filesystem::path &gltfFilename) |
| Load a glTF character with motion from a file path. | |
| std::tuple< Character, MatrixXf, JointParameters, float > | momentum::loadCharacterWithMotion (std::span< const std::byte > byteSpan) |
| Load a glTF character from a buffer. | |
| std::tuple< Character, MatrixXf, ModelParameters, float > | momentum::loadCharacterWithMotionModelParameterScales (const filesystem::path &gltfFilename) |
| Load a glTF character with motion and apply scale parameters to the motion. | |
| std::tuple< Character, MatrixXf, ModelParameters, float > | momentum::loadCharacterWithMotionModelParameterScales (std::span< const std::byte > byteSpan) |
| Load a glTF character with motion and apply scale parameters to the motion. | |
| std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > | momentum::loadCharacterWithSkeletonStates (std::span< const std::byte > byteSpan) |
| Load a glTF character with motion in the form of skeleton states. | |
| std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > | momentum::loadCharacterWithSkeletonStates (const filesystem::path &gltfFilename) |
| Load a glTF character with motion in the form of skeleton states. | |
| std::tuple< MatrixXf, JointParameters, float > | momentum::loadMotionOnCharacter (const filesystem::path &gltfFilename, const Character &character) |
| Load motion from a glTF file and map it to a character. | |
| std::tuple< MatrixXf, JointParameters, float > | momentum::loadMotionOnCharacter (std::span< const std::byte > byteSpan, const Character &character) |
| Load motion from a buffer and map it to a character. | |
| fx::gltf::Document | momentum::makeCharacterDocument (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, bool embedResource=true, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Create a glTF document from a character. | |
| MarkerSequence | momentum::loadMarkerSequence (const filesystem::path &filename) |
| Load a marker sequence from a glTF file. | |
| MarkerSequence | momentum::loadMarkerSequence (std::span< const std::byte > byteSpan) |
| Load a marker sequence from an in-memory glTF byte buffer. | |
| void | momentum::saveGltfCharacter (const filesystem::path &filename, const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Save a character with motion to a glTF file. | |
| void | momentum::saveGltfCharacter (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()) |
| Save a character with skeleton states to a glTF file. | |
| std::vector< std::byte > | momentum::saveCharacterToBytes (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Save a character with motion to a byte buffer. | |