Show in Contents
![](../images/show_in_contents.gif)
Add to Favorites
![](../images/add_favorite.gif)
Home: FBX SDK Help
Sample programs
![](./../images/nav-prev-xp.gif)
Sample programs
![](./../images/nav-up-xp.gif)
Advanced sample programs
Tutorial programs
These tutorial programs
are aimed at programmers who are learning to use FBX SDK. The source
code is explained in detail in three tutorials.
Tutorial program |
Tutorial and description |
ImportExport |
Tutorial 1: Importing, Converting, Exporting a File.
Shows how to import a file and how to export a file. Builds and
runs on Windows only.
|
SceneTreeView |
Tutorial 2: Traversing the Scene Graph. Shows
how to traverse all the nodes in an FBX scene, and how to determine
the content of each node, i.e., whether a node contains a camera,
a light, a mesh, etc. Builds and runs on Windows only.
|
CubeCreator |
Tutorial 3: Adding Textures, Materials, and Animation.
Shows how to add textures, materials, and animation to meshes representing
a model. Builds and runs on Windows only.
|
Common |
No tutorial. Contains utility functions used by the tutorial
programs. Also contains librarychooser.h,
a header file that selects the appropriate FBX SDK library file based
on compiler options and defined symbols.
|
Folders for each of these
programs are located in \examples\UI
Examples. Each folder contains Visual Studio project files
to help you build and run the program.
ImportExport
Shows how to import a
file and how to export a file. Operations include:
- Building and running a sample program
using Visual Studio.
- Managing memory with SDK Manager.
- Creating an empty scene.
- Creating a file importer.
- Loading the import file into the scene.
- Creating a file exporter.
- Specifying the file format of the export
file.
- Specifying whether media are embedded
in the export file.
- Exporting the scene to the export file.
- Cleaning up and shutting down.
NoteBuilds and runs on
Windows only.
See Tutorial 1: Importing, Converting, Exporting a File.
SceneTreeView
Shows how to traverse
all the nodes in an FBX scene, and how to determine the content
of each node, i.e., whether a node contains a camera, a light, a mesh,
etc. Operations include:
- Getting a reference to the root node
of a scene.
- Getting references to each of the child
nodes.
- Getting references in both directions
of a two-way relationship.
- Getting a node’s properties as a point
in space.
- Getting a node’s attribute type and contents.
NoteBuilds and runs on
Windows only.
See Tutorial 2: Traversing the Scene Graph.
CubeCreator
This tutorial program
shows how to add textures, materials, and animation to meshes representing
a model (in this case, a cube). Operations include:
High level operations |
Low level operations |
Constructing the baseline scene |
- Naming the take which will contain the animation.
- Creating a marker to be used as a reference point.
- Creating a camera.
- Creating one texture available to all
cubes.
- Embedding media files in an FBX file.
- Processing FBX files that contain embedded media.
- Processing scene files with references
to media.
- Creating an array of materials to be
shared.
- Pointing the camera at the marker.
- Setting the position of the marker.
- Setting the position of the camera.
|
Adding animation to the camera |
- Build the initial scene graph.
- Set the camera as the scene’s default
camera.
- Adding a cube to the scene.
- Setting the cube’s name, position, and rotation.
- Applying the user’s specifications to
the cube.
- Setting the cube’s position in the scene.
- Creating a mesh for the cube.
- Defining the cube’s vertices and the
normals.
- Defining the cube’s faces.
- Using layer 0 to store a normal to each
face.
- Creating a layer element for the materials
and textures.
- Saving memory by sharing a mesh among multiple
nodes.
- Adding animation to a cube.
- Adding a texture to a cube.
|
Adding a material to a cube |
None. |
NoteBuilds and runs on
Windows only.
See Tutorial 3: Adding Textures, Materials, and Animation.
Common
The folder \examples\UI Examples contains utility
functions used by the tutorial programs.
Also contains librarychooser.h, a header file that
selects the appropriate FBX SDK library file based on compiler options
and defined symbols.