Exporting the scene to the export file
 
 
 

FBX SDK provides various export options.SaveScene()creates anexport optionsobject:

 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);
 }

NowSaveScene()exports the scene to the export file, using the specified export options:

 // Export the scene.
 lStatus = lExporter->Export(*pScene, lExportOptions);