Show in Contents

Add to Favorites

Home: Autodesk FBX SDK Progammer's Guide
SceneTreeView: the main logic

Sample programs

CubeCreator: Organization of the Project
CubeCreator tutorial program
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 |
- Defining the animation stack and animation layer
that 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 |
- Constructing the initial scene graph.
- Setting a 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 |
No lower-level operations. |
NoteBuilds and runs on
Windows only.
For information about
the concepts behind this sample program, and the operations it performs,
see: