Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
The scene and its organization

Detailed Description

Scene overview

The scene which is CDScene object is the entry point for using the SDK.
This is what you get when loading a file.

C3DIo file("sample.fbx", FILE_PARSER_LOADING);
C3DScene* scene = file.Read(&options); // &options is optional and can be removed if you don't need JT
C3DIo class handles reading / writing / updating 3D file.
Definition Io3dmgr.h:233
The class allows to get access to the scene graph, node hierarchy, material.
Definition 3DScene.h:306

The scene gives access to all entities of this 3D file: nodes, geometry, textures, materials...

The scene organizes hierarchically C3DSceneNode which consist mainly of a transformation + a reference to an object.

The scene also contains the list of materials (CMaterials) used by the objects. Each C3DMaterial might have some textures (CMaterialMap).

You can build a scene from scratch, or perform different operations on its objects such ray casting, optimization, node collapsing, cleaning operations.
And, of course!, you optimize it, which is the main purpose of the SDK.

All scene entities are serializable, which means that it can be saved to memory, transmitted, then reloaded.

Modules

 Traversing the different nodes of the scene
 
 Working with nodes
 
 Working with objects
 
 About animation