Module fyrox::scene::base

source ·
Expand description

Contains all structures and methods to create and manage base scene graph nodes.

For more info see Base

Structs§

  • Base scene graph node is a simplest possible node, it is used to build more complex ones using composition. It contains all fundamental properties for each scene graph nodes, like local and global transforms, name, lifetime, etc. Base node is a building block for all complex node hierarchies - it contains list of children and handle to parent node.
  • Base node builder allows you to create nodes in declarative manner.
  • Level of detail is a collection of objects for given normalized distance range. Objects will be rendered only if they’re in specified range. Normalized distance is a distance in (0; 1) range where 0 - closest to camera, 1 - farthest. Real distance can be obtained by multiplying normalized distance with z_far of current projection matrix.
  • LOD (Level-Of-Detail) group is a set of cascades (levels), where each cascade takes specific distance range. Each cascade contains list of objects that should or shouldn’t be rendered if distance satisfy cascade range. LOD may significantly improve performance if your scene contains lots of high poly objects and objects may be far away from camera. Distant objects in this case will be rendered with lower details freeing precious GPU resources for other useful tasks.
  • A custom property.
  • Unique id of a node, that could be used as a reliable “index” of the node. This id is mostly useful for network games.
  • A script container record.

Enums§

  • Mobility defines a group for scene node which has direct impact on performance and capabilities of nodes.
  • A script message from scene node. It is used for deferred initialization/deinitialization.
  • A property value.