|
I see the FBX 2012 SDK “Animation” example creates two animation layers, but doesn’t show how to
bake/combine them.
If my program doesn’t support multiple layer animations, can someone post an example of using the
BakeLayers() function from the KFbxAnimStack class?
Where does the KFbxAnimEvaluator* pEvaluator parameter come from?
Also, I don’t understand the meaning of the gPeriod parameter:
KTime pPeriod
“The time increment for the re-sampling.”
Is this the frame rate? e.g. 30fps ?
|
|
|
|
An example that call BakeLayers:
// frame period.
KTime lFramePeriod; lFramePeriod.SetSecondDouble(1.0 / 24); // 24 is the frame rate
KTimeSpan lTimeSpan = pAnimStack->GetLocalTimeSpan(); // get KFbxAnimEvaluator* pEvaluator from KFbxScene::GetEvaluator() if (pAnimStack->BakeLayers(pScene->GetEvaluator(), lTimeSpan.GetStart(), lTimeSpan.GetStop(), lFramePeriod))
{
// do something after merge layers
}
Nian Wu
AutoDesk FBX Team
|
|
|