Instancing Example
•// Create a cube instance with the given mesh as node attribute, and add it to the scene.
•FbxNode* CreateCubeInstance(FbxScene* pScene, const char* pName, FbxMesh* pFirstCube)
•{
•    // create a FbxNode
•    FbxNode* lNode = FbxNode::Create(pScene,pName);
• 
•    // set the node attribute
•    lNode->SetNodeAttribute(pFirstCube);
• 
•    // rescale the cube
•    lNode->LclScaling.Set(FbxVector4(0.3, 0.3, 0.3));
• 
•    // Add node to the scene
•    pScene->GetRootNode()->AddChild(lNode);
• 
•    // return the FbxNode
•    return lNode;
•}
•
36