C# 클래스 FBX.Scene.Scene

A scene is a collection of meshes, lights, cameras, textures and material parameters A mesh is a collection of primitives that are rendered by the renderer's render techniques You can load and save a scene in the Nuaj.Cirrus proprietary format. Scenes can also be imported through 3rd party formats (cf. FBXSceneLoader) then saved into the proprietary format.
파일 보기 프로젝트 열기: Patapom/GodComplex

보호된 프로퍼티들

프로퍼티 타입 설명
m_Cameras List
m_ID2MaterialParameters MaterialParameters>.Dictionary
m_ID2Node Node>.Dictionary
m_ID2Texture Texture2D>.Dictionary
m_Lights List
m_MaterialParameters List
m_MaterialParametersIDCounter int
m_Meshes List
m_NodeIDCounter int
m_Root FBX.Scene.Nodes.Node
m_TextureIDCounter int
m_Textures List
m_URL2Texture Texture2D>.Dictionary

공개 메소드들

메소드 설명
ClearMaterialParameters ( ) : void

Clear the list of material parameters

ClearNodes ( ) : void

Clear the hierarchy of nodes

ClearTextures ( ) : void

Clear the list of textures

ComputeObjectDeltaPositionRotation ( Matrix4x4 &_Previous, Matrix4x4 &_Current, Vector &_DeltaPosition, Quat &_DeltaRotation, Vector &_Pivot ) : void

Helper method that helps to compute the difference in translation and rotation of an object moving from one frame to the other This is essentially used for motion blur

CreateCamera ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Camera

Creates a new camera for the scene

CreateLight ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Light

Creates a new light for the scene

CreateMaterialParameters ( string _Name, string _ShaderURL ) : MaterialParameters

Creates a new material parameter block

CreateMesh ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Mesh

Creates a new mesh for the scene

CreateNode ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Node

Creates a new node for the scene

CreateTexture ( string _URL, string _OpacityURL, bool _bCreateMipMaps ) : Texture2D

Creates a new texture for the scene

FindMaterialParameters ( int _ID ) : MaterialParameters

Finds a material parameter block by ID

FindMaterialParameters ( string _Name ) : MaterialParameters

Finds a material parameter block by name

FindMesh ( string _Name, bool _bCaseSensitive ) : Mesh

Finds a mesh by name

FindNode ( Node _Node, FindNodeDelegate _D ) : Node

Custom node finder

FindNode ( int _NodeID ) : Node

Finds a node by ID

FindNode ( string _Name, bool _bCaseSensitive ) : Node

Finds a node by name

FindTexture ( int _ID ) : Texture2D

Finds a texture by ID

Load ( System _Reader ) : void

Creates a scene from a stream

Save ( System _Writer ) : void

Writes a scene to a stream

Scene ( ) : System

Creates a default scene

보호된 메소드들

메소드 설명
FindMesh ( Node _Node, string _Name, bool _bCaseSensitive ) : Mesh
FindNode ( Node _Node, int _NodeID ) : Node
FindNode ( Node _Node, string _Name, bool _bCaseSensitive ) : Node

비공개 메소드들

메소드 설명
QuatFromMatrix ( Matrix4x4 M ) : Quat
QuatInvert ( Quat q ) : Quat
QuatMultiply ( Quat q0, Quat q1 ) : Quat
RegisterNodeID ( Node _Node ) : void

Registers the node's ID and associate it to the node so we can find nodes by ID later

RotateAbout ( Vector _Point, Vector _Pivot, Quat _Rotation ) : Vector

메소드 상세

ClearMaterialParameters() 공개 메소드

Clear the list of material parameters
public ClearMaterialParameters ( ) : void
리턴 void

ClearNodes() 공개 메소드

Clear the hierarchy of nodes
public ClearNodes ( ) : void
리턴 void

ClearTextures() 공개 메소드

Clear the list of textures
public ClearTextures ( ) : void
리턴 void

ComputeObjectDeltaPositionRotation() 공개 정적인 메소드

Helper method that helps to compute the difference in translation and rotation of an object moving from one frame to the other This is essentially used for motion blur
public static ComputeObjectDeltaPositionRotation ( Matrix4x4 &_Previous, Matrix4x4 &_Current, Vector &_DeltaPosition, Quat &_DeltaRotation, Vector &_Pivot ) : void
_Previous Matrix4x4 The object's matrix at previous frame
_Current Matrix4x4 The object's matrix at current frame
_DeltaPosition Vector Returns the difference in position from last frame
_DeltaRotation Quat Returns the difference in rotation from last frame
_Pivot Vector Returns the pivot position the object rotated about
리턴 void

CreateCamera() 공개 메소드

Creates a new camera for the scene
public CreateCamera ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Camera
_Name string
_Parent FBX.Scene.Nodes.Node
_Local2Parent Matrix4x4
리턴 FBX.Scene.Nodes.Camera

CreateLight() 공개 메소드

Creates a new light for the scene
public CreateLight ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Light
_Name string
_Parent FBX.Scene.Nodes.Node
_Local2Parent Matrix4x4
리턴 FBX.Scene.Nodes.Light

CreateMaterialParameters() 공개 메소드

Creates a new material parameter block
public CreateMaterialParameters ( string _Name, string _ShaderURL ) : MaterialParameters
_Name string The name of the parameter block
_ShaderURL string The URL of the shader that uses theses parameters (this can be a path to an actual shader, or an identifier like Phong, Lambert, Blinn, whatever really as anyway these parameters are later read and identified by you so you can use whatever makes you comfortable)
리턴 FBX.Scene.Materials.MaterialParameters

CreateMesh() 공개 메소드

Creates a new mesh for the scene
public CreateMesh ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Mesh
_Name string
_Parent FBX.Scene.Nodes.Node
_Local2Parent Matrix4x4
리턴 FBX.Scene.Nodes.Mesh

CreateNode() 공개 메소드

Creates a new node for the scene
public CreateNode ( string _Name, Node _Parent, Matrix4x4 _Local2Parent ) : Node
_Name string
_Parent FBX.Scene.Nodes.Node
_Local2Parent Matrix4x4
리턴 FBX.Scene.Nodes.Node

CreateTexture() 공개 메소드

Creates a new texture for the scene
public CreateTexture ( string _URL, string _OpacityURL, bool _bCreateMipMaps ) : Texture2D
_URL string The relative texture URL to identify the texture
_OpacityURL string The optional relative URL to identify the opacity texture
_bCreateMipMaps bool True if the texture should be created using mip-maps
리턴 FBX.Scene.Materials.Texture2D

FindMaterialParameters() 공개 메소드

Finds a material parameter block by ID
public FindMaterialParameters ( int _ID ) : MaterialParameters
_ID int
리턴 FBX.Scene.Materials.MaterialParameters

FindMaterialParameters() 공개 메소드

Finds a material parameter block by name
public FindMaterialParameters ( string _Name ) : MaterialParameters
_Name string
리턴 FBX.Scene.Materials.MaterialParameters

FindMesh() 보호된 메소드

protected FindMesh ( Node _Node, string _Name, bool _bCaseSensitive ) : Mesh
_Node FBX.Scene.Nodes.Node
_Name string
_bCaseSensitive bool
리턴 FBX.Scene.Nodes.Mesh

FindMesh() 공개 메소드

Finds a mesh by name
public FindMesh ( string _Name, bool _bCaseSensitive ) : Mesh
_Name string
_bCaseSensitive bool
리턴 FBX.Scene.Nodes.Mesh

FindNode() 공개 메소드

Custom node finder
public FindNode ( Node _Node, FindNodeDelegate _D ) : Node
_Node FBX.Scene.Nodes.Node
_D FindNodeDelegate
리턴 FBX.Scene.Nodes.Node

FindNode() 보호된 메소드

protected FindNode ( Node _Node, int _NodeID ) : Node
_Node FBX.Scene.Nodes.Node
_NodeID int
리턴 FBX.Scene.Nodes.Node

FindNode() 보호된 메소드

protected FindNode ( Node _Node, string _Name, bool _bCaseSensitive ) : Node
_Node FBX.Scene.Nodes.Node
_Name string
_bCaseSensitive bool
리턴 FBX.Scene.Nodes.Node

FindNode() 공개 메소드

Finds a node by ID
public FindNode ( int _NodeID ) : Node
_NodeID int
리턴 FBX.Scene.Nodes.Node

FindNode() 공개 메소드

Finds a node by name
public FindNode ( string _Name, bool _bCaseSensitive ) : Node
_Name string
_bCaseSensitive bool
리턴 FBX.Scene.Nodes.Node

FindTexture() 공개 메소드

Finds a texture by ID
public FindTexture ( int _ID ) : Texture2D
_ID int
리턴 FBX.Scene.Materials.Texture2D

Load() 공개 메소드

Creates a scene from a stream
public Load ( System _Reader ) : void
_Reader System
리턴 void

Save() 공개 메소드

Writes a scene to a stream
public Save ( System _Writer ) : void
_Writer System
리턴 void

Scene() 공개 메소드

Creates a default scene
public Scene ( ) : System
리턴 System

프로퍼티 상세

m_Cameras 보호되어 있는 프로퍼티

protected List m_Cameras
리턴 List

m_ID2MaterialParameters 보호되어 있는 프로퍼티

protected Dictionary m_ID2MaterialParameters
리턴 MaterialParameters>.Dictionary

m_ID2Node 보호되어 있는 프로퍼티

protected Dictionary m_ID2Node
리턴 Node>.Dictionary

m_ID2Texture 보호되어 있는 프로퍼티

protected Dictionary m_ID2Texture
리턴 Texture2D>.Dictionary

m_Lights 보호되어 있는 프로퍼티

protected List m_Lights
리턴 List

m_MaterialParameters 보호되어 있는 프로퍼티

protected List m_MaterialParameters
리턴 List

m_MaterialParametersIDCounter 보호되어 있는 프로퍼티

protected int m_MaterialParametersIDCounter
리턴 int

m_Meshes 보호되어 있는 프로퍼티

protected List m_Meshes
리턴 List

m_NodeIDCounter 보호되어 있는 프로퍼티

protected int m_NodeIDCounter
리턴 int

m_Root 보호되어 있는 프로퍼티

protected Node,FBX.Scene.Nodes m_Root
리턴 FBX.Scene.Nodes.Node

m_TextureIDCounter 보호되어 있는 프로퍼티

protected int m_TextureIDCounter
리턴 int

m_Textures 보호되어 있는 프로퍼티

protected List m_Textures
리턴 List

m_URL2Texture 보호되어 있는 프로퍼티

protected Dictionary m_URL2Texture
리턴 Texture2D>.Dictionary