|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
FBX animation key times as the original Autodesk FBX SDK loader saw them. More...
#include <cmath>#include <set>Go to the source code of this file.
Namespaces | |
| namespace | hpl |
Functions | |
| long long | hpl::FbxTimeToMs (double afSeconds) |
| Seconds -> whole milliseconds, truncated like KTime::GetMilliSeconds. | |
| float | hpl::FbxKeyTime (double afSeconds) |
| The time the SDK loader stored for a key: its whole milliseconds, in seconds. | |
| template<class tIt> | |
| void | hpl::FbxAddKeyTimes (std::set< float > &aTimes, tIt aBegin, tIt aEnd) |
| Adds key times (seconds) to the bone's sorted set of sample times. | |
| float | hpl::FbxAnimLength (double afEndSeconds) |
| Length the SDK loader gave an animation: the take's end in whole milliseconds, in seconds. | |
| bool | hpl::FbxTakeHasLength (double afBeginSeconds, double afEndSeconds) |
| The SDK loader used the first take whose span is at least one millisecond. | |
FBX animation key times as the original Autodesk FBX SDK loader saw them.
The SDK loader read every key time as whole milliseconds (KTime::GetMilliSeconds truncates), merged the translation / rotation / scale keys of a bone into one sorted set and sampled the bone at each of those times. The ufbx loader (MeshLoaderFBX.cpp) does the same so its output matches the .anm files the original loader cached. Pure, unit tested in tests/cpp/test_fbx_anim_times.cpp.
Definition in file FbxAnimTimes.h.