SaveScene()creates anexport optionsobject:
FBX SDK provides various export options.KFbxStreamOptionsFbxWriter* lExportOptions =
KFbxStreamOptionsFbxWriter::Create(pSdkManager, "");
Export options are available only when exporting FBX files:
if (KFbxIOPluginRegistryAccessor::Get()->WriterIsFBX(pFileFormat))
{
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_MATERIAL, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_TEXTURE, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_EMBEDDED, pEmbedMedia);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_LINK, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_SHAPE, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_GOBO, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_ANIMATION, true);
lExportOptions->SetOption(KFBXSTREAMOPT_FBX_GLOBAL_SETTINGS, true);
}
SaveScene()exports the scene to the export file, using the specified export options:
Now// Export the scene.
lStatus = lExporter->Export(*pScene, lExportOptions);