No Man's Sky Modding Wiki
No edit summary
Tags: Visual edit apiedit
No edit summary
Tags: Visual edit apiedit
Line 14: Line 14:
   
 
== Scene Node Types ==
 
== Scene Node Types ==
  +
* '''MODEL '''- this scene node type references a GEOMETRY MBIN. Most SCENE files have this as the type used for their root node.

Revision as of 07:43, 3 December 2016

SCENE's are MBIN files used as containers for object references in the game. SCENE files can reference a lot of things - including ENTITIES, EFFECTS, other SCENES, MESHES and so forth. Using SCENE files, you can attach scripts and objects together into one form, like a prefab.

All objects in the game are spawned from SCENE files from plants, ships, and to even your multitool. As you will eventually find out, SCENE files are extremely powerful and can be used for more than just stringing objects together.

For those already used to game development, SCENE files are similar to Unity GameObjects - they are containers that reference models, sounds, scripts, and more.

Scene Nodes

Each SCENE file contains Scene Nodes (TkSceneNodeData) which is a complete data group that defines the basic structure of a SCENE. These include:

  • Name - the name of the scene file. The root node of the scene file usually bears the directory and the name of the scene itself i.e. a DRONE.SCENE has the name "MODELS\COMMON\ROBOTS\DRONE"
  • Type - the type of scene node. This will influence the attributes declared within in the Attribute container. The types are listed in a category further below.
  • Transform - the vector3 (x, y, z) position, rotation, and scale of an object
  • Attributes - depending on the scene node Type, different fields will be declared here along with their corresponding values.
  • Children - each scene node can have more scene nodes as children

Scene Node Types

  • MODEL - this scene node type references a GEOMETRY MBIN. Most SCENE files have this as the type used for their root node.