45 const std::string& characterPath,
46 const std::string& parametersPath = std::string(),
47 const std::string& locatorsPath = std::string(),
60 std::span<const std::byte> characterBuffer,
61 std::span<const std::byte> paramBuffer = std::span<const std::byte>(),
62 std::span<const std::byte> locBuffer = std::span<const std::byte>(),
78 const filesystem::path& filename,
79 const Character& character,
82 std::span<
const std::vector<Marker>> markerSequence = {},
99 const filesystem::path& filename,
102 std::span<const SkeletonState> skeletonStates,
103 std::span<
const std::vector<Marker>> markerSequence = {},
void saveCharacter(const filesystem::path &filename, const Character &character, const float fps, const MatrixXf &motion, std::span< const std::vector< Marker > > markerSequence, const FileSaveOptions &options)
High level function to save a character with motion and markers to any supported format.
CharacterFormat
Represents the supported character formats.
@ Unknown
Unknown or unsupported file format.
Character loadFullCharacter(const std::string &characterPath, const std::string ¶metersPath, const std::string &locatorsPath, LoadBlendShapes loadBlendShapes)
High level function to load a character of any type, with a local path.
MatrixX< float > MatrixXf
Character loadFullCharacterFromBuffer(CharacterFormat format, const std::span< const std::byte > characterBuffer, const std::span< const std::byte > paramBuffer, const std::span< const std::byte > locBuffer, LoadBlendShapes loadBlendShapes)
Buffer version of loadFullCharacter function, supports .glb and .fbx file formats.
A character model with skeletal structure, mesh, and optional components.
Unified options for saving files in both FBX and GLTF formats.