84 const std::
string& name =
"",
85 size_t parentJoint = 0,
127 const Character& character,
128 const std::string& name,
150 const std::string& name,
153 const Vector3f& translationOffset = Vector3f::Zero(),
160 void addMarkerSequence(
float fps, std::span<
const std::vector<Marker>> markerSequence);
167 void save(
const filesystem::path& filename);
171 std::unique_ptr<Impl> impl_;
void addMarkerSequence(float fps, std::span< const std::vector< Marker > > markerSequence)
Add a marker sequence to the scene.
void addMotionWithJointParams(const Character &character, float fps, const MatrixXf &jointParams)
Add joint-parameter animation for a previously added character.
FbxBuilder(FbxBuilder &&) noexcept
void save(const filesystem::path &filename)
Save the FBX scene to a file.
void operator=(FbxBuilder const &)=delete
void addRigidBody(const Character &character, const std::string &name="", size_t parentJoint=0, const FileSaveOptions &options=FileSaveOptions())
Add a rigid body (skeleton + mesh parented to a joint, no skinning).
void addMotion(const Character &character, float fps, const MatrixXf &motion={}, const VectorXf &offsets={})
Add model-parameter animation for a previously added character.
void addCharacter(const Character &character, const FileSaveOptions &options=FileSaveOptions())
Add a skinned character (skeleton + mesh with skin weights) to the scene.
FbxBuilder(FbxBuilder const &)=delete
void addAnimatedMesh(const Character &character, const std::string &name, float fps, const MatrixXf &jointParams, const FbxUserProperties &userProperties={})
Add an animated mesh (mesh node with per-frame transform, no skeleton).
std::variant< bool, int, float, std::string > FbxUserPropertyValue
Value of a user-defined FBX property.
std::map< std::string, FbxUserPropertyValue > FbxUserProperties
User-defined FBX properties, keyed by property name.
Vector3< float > Vector3f
VectorX< float > VectorXf
MatrixX< float > MatrixXf
A character model with skeletal structure, mesh, and optional components.
Unified options for saving files in both FBX and GLTF formats.