48std::tuple<MotionParameters, IdentityParameters, float>
loadMotion(
49 const filesystem::path& gltfFilename);
69 const filesystem::path& gltfFilename);
77 std::span<const std::byte> byteSpan);
90std::tuple<Character, MatrixXf, momentum::ModelParameters, float>
104std::tuple<Character, MatrixXf, momentum::ModelParameters, float>
117std::tuple<Character, std::vector<SkeletonState>, std::vector<float>>
130std::tuple<Character, std::vector<SkeletonState>, std::vector<float>>
146 const filesystem::path& gltfFilename,
161 std::span<const std::byte> byteSpan,
201 std::span<const std::vector<Marker>> markerSequence = {},
202 bool embedResource =
true,
204 std::span<const int64_t> timestamps = {});
222 const filesystem::path& filename,
227 std::span<const std::vector<Marker>> markerSequence = {},
229 std::span<const int64_t> timestamps = {});
244 const filesystem::path& filename,
247 std::span<const SkeletonState> skeletonStates,
248 std::span<
const std::vector<Marker>> markerSequence = {},
271 std::span<const std::vector<Marker>> markerSequence = {},
273 std::span<const int64_t> timestamps = {});
std::tuple< MotionParameters, IdentityParameters, float > loadMotion(const filesystem::path &gltfFilename)
Load motion data from a glTF file.
std::tuple< std::vector< std::string >, JointParameters > IdentityParameters
A tuple of skeleton joint names and identity parameters.
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadCharacterWithSkeletonStates(std::span< const std::byte > byteSpan)
Load a glTF character with motion in the form of skeleton states.
void saveGltfCharacter(const filesystem::path &filename, const Character &character, const float fps, const MotionParameters &motion, const IdentityParameters &offsets, std::span< const std::vector< Marker > > markerSequence, const FileSaveOptions &options, std::span< const int64_t > timestamps)
Save a character with motion to a glTF file.
std::vector< std::byte > saveCharacterToBytes(const Character &character, float fps, const MotionParameters &motion, const IdentityParameters &offsets, std::span< const std::vector< Marker > > markerSequence, const FileSaveOptions &options, std::span< const int64_t > timestamps)
Save a character with motion to a byte buffer.
std::tuple< std::vector< std::string >, Eigen::MatrixXf > MotionParameters
A tuple of model parameter names and a matrix of poses across a sequence of frames.
fx::gltf::Document makeCharacterDocument(const Character &character, const float fps, const MotionParameters &motion, const IdentityParameters &offsets, std::span< const std::vector< Marker > > markerSequence, bool embedResource, const FileSaveOptions &options, std::span< const int64_t > timestamps)
Create a glTF document from a character.
std::tuple< Character, MatrixXf, ModelParameters, float > loadCharacterWithMotionModelParameterScales(const filesystem::path &gltfFilename)
Load a glTF character with motion and apply scale parameters to the motion.
MarkerSequence loadMarkerSequence(const filesystem::path &filename)
Load a marker sequence from a glTF file.
Character loadGltfCharacter(const fx::gltf::Document &model)
Load a glTF character from a document.
std::tuple< MatrixXf, JointParameters, float > loadMotionOnCharacter(const filesystem::path &gltfFilename, const Character &character)
Load motion from a glTF file and map it to a character.
std::tuple< Character, MatrixXf, JointParameters, float > loadCharacterWithMotion(const filesystem::path &gltfFilename)
Load a glTF character with motion from a file path.
std::vector< int64_t > loadMotionTimestamps(const filesystem::path &gltfFilename)
Load per-frame timestamps from a glTF file.
A character model with skeletal structure, mesh, and optional components.
Unified options for saving files in both FBX and GLTF formats.
All frames from a single motion capture sequence for one subject (actor).