TDME2 1.9.121
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
FBXReader Class Referencefinal

FBX model reader. More...

#include <tdme/engine/fileio/models/FBXReader.h>

Collaboration diagram for FBXReader:
Collaboration graph

Static Public Member Functions

static Modelread (const string &pathName, const string &fileName)
 Reads FBX file. More...
 

Static Private Member Functions

static UpVectorgetSceneUpVector (FbxScene *fbxScene)
 Get scene up vector. More...
 
static RotationOrdergetSceneRotationOrder (FbxScene *fbxScene)
 Get scene rotation order. More...
 
static void setupModelImportRotationMatrix (Model *model)
 Set up model import rotation maxtrix. More...
 
static void setupModelScaleRotationMatrix (FbxScene *fbxScene, Model *model)
 Set up model import scale maxtrix. More...
 
static void processScene (FbxScene *fbxScene, Model *model, const string &pathName)
 Process FBX scene. More...
 
static void processNode (FbxNode *fbxNode, Model *model, Node *parentNode, const string &pathName)
 Process FBX node. More...
 
static NodeprocessMeshNode (FbxNode *fbxNode, Model *model, Node *parentNode, const string &pathName)
 Process FBX mesh node. More...
 
static NodeprocessSkeletonNode (FbxNode *fbxNode, Model *model, Node *parentNode, const string &pathName)
 Process FBX skeleton node. More...
 
static void processAnimation (FbxNode *fbxNode, const FbxTime &fbxStartFrame, const FbxTime &fbxEndFrame, Model *model, int frameOffset)
 Process animation. More...
 

Static Private Attributes

static STATIC_DLL_IMPEXT const Color4 BLENDER_AMBIENT_NONE
 
static constexpr float BLENDER_AMBIENT_FROM_DIFFUSE_SCALE { 0.7f }
 
static constexpr float BLENDER_DIFFUSE_SCALE { 0.8f }
 

Detailed Description

FBX model reader.

Author
Andreas Drewke
Version
$Id$

Definition at line 28 of file FBXReader.h.

Member Function Documentation

◆ getSceneRotationOrder()

RotationOrder * getSceneRotationOrder ( FbxScene *  fbxScene)
staticprivate

Get scene rotation order.

Parameters
fbxScenefbx scene
Exceptions
tdme::engine::fileio::models::ModelFileIOException

Definition at line 213 of file FBXReader.cpp.

◆ getSceneUpVector()

UpVector * getSceneUpVector ( FbxScene *  fbxScene)
staticprivate

Get scene up vector.

Parameters
fbxScenefbx scene
Exceptions
tdme::engine::fileio::models::ModelFileIOException

Definition at line 234 of file FBXReader.cpp.

◆ processAnimation()

void processAnimation ( FbxNode *  fbxNode,
const FbxTime &  fbxStartFrame,
const FbxTime &  fbxEndFrame,
Model model,
int  frameOffset 
)
staticprivate

Process animation.

Parameters
fbxNodeFBX node
fbxStartFrameFBX start frame
fbxEndFrameFBX end frame
modelmodel
frameOffsetframe offset

Definition at line 913 of file FBXReader.cpp.

◆ processMeshNode()

Node * processMeshNode ( FbxNode *  fbxNode,
Model model,
Node parentNode,
const string &  pathName 
)
staticprivate

Process FBX mesh node.

Parameters
fbxNodeFBX node
modelmodel
parentNodeparent node
pathNamepath name

Definition at line 330 of file FBXReader.cpp.

◆ processNode()

void processNode ( FbxNode *  fbxNode,
Model model,
Node parentNode,
const string &  pathName 
)
staticprivate

Process FBX node.

Parameters
fbxNodeFBX scene
modelmodel
parentNodeparent node
pathNamepath name

Definition at line 272 of file FBXReader.cpp.

◆ processScene()

void processScene ( FbxScene *  fbxScene,
Model model,
const string &  pathName 
)
staticprivate

Process FBX scene.

Parameters
fbxSceneFBX scene
modelmodel
pathNamepath name

Definition at line 264 of file FBXReader.cpp.

◆ processSkeletonNode()

Node * processSkeletonNode ( FbxNode *  fbxNode,
Model model,
Node parentNode,
const string &  pathName 
)
staticprivate

Process FBX skeleton node.

Parameters
fbxNodeFBX node
modelmodel
parentNodeparent node
pathNamepath name

Definition at line 908 of file FBXReader.cpp.

◆ read()

Model * read ( const string &  pathName,
const string &  fileName 
)
static

Reads FBX file.

Parameters
pathNamepath name
fileNamefile name
Exceptions
tdme::engine::fileio::models::ModelFileIOException
tdme::os::filesystem::FileSystemException
Returns
model instance

Definition at line 66 of file FBXReader.cpp.

◆ setupModelImportRotationMatrix()

void setupModelImportRotationMatrix ( Model model)
staticprivate

Set up model import rotation maxtrix.

Parameters
modelmodel

Definition at line 250 of file FBXReader.cpp.

◆ setupModelScaleRotationMatrix()

void setupModelScaleRotationMatrix ( FbxScene *  fbxScene,
Model model 
)
staticprivate

Set up model import scale maxtrix.

Parameters
fbxScenefbx scene
modelmodel

Definition at line 259 of file FBXReader.cpp.

Member Data Documentation

◆ BLENDER_AMBIENT_FROM_DIFFUSE_SCALE

constexpr float BLENDER_AMBIENT_FROM_DIFFUSE_SCALE { 0.7f }
staticconstexprprivate

Definition at line 44 of file FBXReader.h.

◆ BLENDER_AMBIENT_NONE

const Color4 BLENDER_AMBIENT_NONE
staticprivate

Definition at line 43 of file FBXReader.h.

◆ BLENDER_DIFFUSE_SCALE

constexpr float BLENDER_DIFFUSE_SCALE { 0.8f }
staticconstexprprivate

Definition at line 45 of file FBXReader.h.


The documentation for this class was generated from the following files: