Creating an empty scene
 
 
 

A scene is a container for 3D objects such as models (e.g., meshes), cameras, lights, etc. One FBX file contains only one scene.

The 3D objects in a scene are stored as nodes in a scene graph. For FBX, the scene graph is actually a tree (i.e., a node hierarchy). Each node has a node attribute that determines whether the node contains a mesh, a camera, a light, etc. For more detail on scenes, nodes, node attributes, etc., see Tutorial 2: Traversing the Scene Graph.

Before you can import an FBX file, you must create a scene object to hold the scene stored in the FBX file (or the Collada file, or the 3DS file, etc.) Here is the code:

// Create a scene
KFbxScene* lScene = KFbxScene::Create(gSdkManager,"");