Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
fbx_io.h File Reference
#include <momentum/character/fwd.h>
#include <momentum/character/marker.h>
#include <momentum/common/filesystem.h>
#include <momentum/io/file_save_options.h>
#include <momentum/math/types.h>
#include <span>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  momentum

Enumerations

enum class  momentum::KeepLocators { momentum::No , momentum::Yes }
enum class  momentum::LoadBlendShapes { momentum::No , momentum::Yes }

Functions

Character momentum::loadFbxCharacter (const filesystem::path &inputPath, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
Character momentum::loadFbxCharacter (std::span< const std::byte > inputSpan, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadFbxCharacterWithMotion (const filesystem::path &inputPath, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadFbxCharacterWithMotion (std::span< const std::byte > inputSpan, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
void momentum::saveFbx (const filesystem::path &filename, const Character &character, const MatrixXf &poses=MatrixXf(), const VectorXf &identity=VectorXf(), double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation to an FBX file.
void momentum::saveFbxWithJointParams (const filesystem::path &filename, const Character &character, const MatrixXf &jointParams=MatrixXf(), double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation using joint parameters directly.
void momentum::saveFbxWithSkeletonStates (const filesystem::path &filename, const Character &character, std::span< const SkeletonState > skeletonStates, double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation using skeleton states directly.
void momentum::saveFbxModel (const filesystem::path &filename, const Character &character, const FileSaveOptions &options=FileSaveOptions())
 Save a character model (skeleton and mesh) without animation.
MatrixXf momentum::loadFbxBlendShapeWeights (const filesystem::path &filename)
 Load per-frame blend shape animation weights from an FBX file.
MarkerSequence momentum::loadFbxMarkerSequence (const filesystem::path &filename, bool stripNamespaces=true)
 Loads a MarkerSequence from an FBX file.
MarkerSequence momentum::loadFbxMarkerSequence (std::span< const std::byte > inputSpan, bool stripNamespaces=true)
 Loads a MarkerSequence from an in-memory FBX byte buffer.