Customizing FBX SDK
 
 
 

You can customize or extend the features of FBX SDK in various ways.

Defining custom properties (user properties)

You can definecustom propertiesfor any object. To learn how, look at sample program UserProperties (seeUserProperties).

To learn how how to get data from custom properties, see functionDisplayUserProperties()in sample program ImportScene.

Defining a custom object type

The FBX SDK object model can be extended with acustom object type. For an example, see how a new class MyKFbxMesh is created from class KFbxMesh in sample program ExportScene03 (seeExportScene03).

Defining a custom type (user data) for layer elements

To create a layer element with a custom type, use class KFbxLayerElementUserData. Like any other layer element, it can be mapped by polygon vertex, by vertex, by polygon, etc.

See functionCreateCubeWithMaterialAndMyKFbxMesh()in sample program ExportScene03 (seeExportScene03). It creates a custom compound based on float and boolean data types, and adds data per vertex.

Supporting additional file formats

FBX imports and exports scene data using several file formats, including FBX, COLLADA, OBJ, etc.

Each of these file formats has its own writer class (subclassed from classKFbxWriter) reader and reader class (subclassed from classKFbxReader).

FBX SDK implements Scene I/O using a plug-in architecture. This makes it relatively easy to extend FBX SDK so that it supports an additional file format (usually called a"custom"file format) of your own design.

Sample programMyOwnReaderWriter(seeSample programs) shows how to use FBX SDK to write and read"CustomWriter"files, which use file extension.abc.

In general, to support your own custom file format, you must:

You must also use classKFbxIOPluginRegistry(seeMyOwnWriterReaderPlugin.cppand.h) to:

NoteDo not confuse Scene I/O plugins with the plug-ins to 3ds Max and Maya.

TheMyOwnWriterReaderfolder does not contain a stand-alone sample program. Instead, it contains sample functions that supportCustomWriterfiles. The sample functions are in turn used by other sample programs (ExportScene05,ImportScene, andViewScene) to write and readCustomWriterfiles.

See alsoExtending FBX or Collada file formatson this page.

Extending FBX or Collada file formats

FBX Extensions SDK allows you to extend FBX file format (versions 5 and 6) and the Collada file format. You can:

FBX Extensions SDK contains: