Embedding media files in an FBX file
 
 
 

When you run CubeCreator, you can save the scene in the file format of your choice and in the folder of your choice.

If you save the scene as a binary FBX file, CubeCreator embeds the texture file crate.jpg in the FBX file. This ensures that if you send your FBX file to a co-worker, the FBX file will contain all files referenced by the scene.

In general, you can embed any kind of media file in a binary FBX file—providing you set the EXP_FBX_EMBEDDED export option to true:

// Create export options object
KFbxStreamOptionsFbxWriter* lExportOptions=
    KFbxStreamOptionsFbxWriter::Create(pSdkManager, "");
 
// If the file format is FBX binary, then ...
if (pSdkManager->GetIOPluginRegistry()->WriterIsFBX(pFileFormat))
{
    // Embed the media file in the FBX binary file
    IOSREF.SetBoolProp(EXP_FBX_EMBEDDED, pEmbedMedia);
}