FBX model reader.
More...
#include <tdme/engine/fileio/models/FBXReader.h>
|
static Model * | read (const string &pathName, const string &fileName) |
| Reads FBX file. More...
|
|
|
static UpVector * | getSceneUpVector (FbxScene *fbxScene) |
| Get scene up vector. More...
|
|
static RotationOrder * | getSceneRotationOrder (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 Node * | processMeshNode (FbxNode *fbxNode, Model *model, Node *parentNode, const string &pathName) |
| Process FBX mesh node. More...
|
|
static Node * | processSkeletonNode (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...
|
|
FBX model reader.
- Author
- Andreas Drewke
- Version
- $Id$
Definition at line 28 of file FBXReader.h.
◆ getSceneRotationOrder()
Get scene rotation order.
- Parameters
-
- Exceptions
-
Definition at line 213 of file FBXReader.cpp.
◆ getSceneUpVector()
UpVector * getSceneUpVector |
( |
FbxScene * |
fbxScene | ) |
|
|
staticprivate |
Get scene up vector.
- Parameters
-
- Exceptions
-
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
-
fbxNode | FBX node |
fbxStartFrame | FBX start frame |
fbxEndFrame | FBX end frame |
model | model |
frameOffset | frame 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
-
fbxNode | FBX node |
model | model |
parentNode | parent node |
pathName | path 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
-
fbxNode | FBX scene |
model | model |
parentNode | parent node |
pathName | path name |
Definition at line 272 of file FBXReader.cpp.
◆ processScene()
void processScene |
( |
FbxScene * |
fbxScene, |
|
|
Model * |
model, |
|
|
const string & |
pathName |
|
) |
| |
|
staticprivate |
Process FBX scene.
- Parameters
-
fbxScene | FBX scene |
model | model |
pathName | path 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
-
fbxNode | FBX node |
model | model |
parentNode | parent node |
pathName | path name |
Definition at line 908 of file FBXReader.cpp.
◆ read()
Model * read |
( |
const string & |
pathName, |
|
|
const string & |
fileName |
|
) |
| |
|
static |
Reads FBX file.
- Parameters
-
pathName | path name |
fileName | file name |
- Exceptions
-
- Returns
- model instance
Definition at line 66 of file FBXReader.cpp.
◆ setupModelImportRotationMatrix()
void setupModelImportRotationMatrix |
( |
Model * |
model | ) |
|
|
staticprivate |
Set up model import rotation maxtrix.
- Parameters
-
Definition at line 250 of file FBXReader.cpp.
◆ setupModelScaleRotationMatrix()
void setupModelScaleRotationMatrix |
( |
FbxScene * |
fbxScene, |
|
|
Model * |
model |
|
) |
| |
|
staticprivate |
Set up model import scale maxtrix.
- Parameters
-
fbxScene | fbx scene |
model | model |
Definition at line 259 of file FBXReader.cpp.
◆ BLENDER_AMBIENT_FROM_DIFFUSE_SCALE
constexpr float BLENDER_AMBIENT_FROM_DIFFUSE_SCALE { 0.7f } |
|
staticconstexprprivate |
◆ BLENDER_AMBIENT_NONE
const Color4 BLENDER_AMBIENT_NONE |
|
staticprivate |
◆ BLENDER_DIFFUSE_SCALE
constexpr float BLENDER_DIFFUSE_SCALE { 0.8f } |
|
staticconstexprprivate |
The documentation for this class was generated from the following files:
- /home/andreas/Development/drewke.net/tdme2/src/tdme/engine/fileio/models/FBXReader.h
- /home/andreas/Development/drewke.net/tdme2/src/tdme/engine/fileio/models/FBXReader.cpp