This class provides functions to restructure the material and textures applied to geometries from FBX v5 material system to v6-and-up or the other way around.
Definition at line 67 of file kfbxmaterialconverter.h.
#include <kfbxmaterialconverter.h>
Public Member Functions |
|
KFbxMaterialConverter (KFbxSdkManager &mManager, KFbxSurfaceMaterial *pDefaultMaterial=NULL) | |
~KFbxMaterialConverter () | |
bool | ConnectTexturesToMaterials (KFbxScene &pScene) |
Moves textures in texture layer elements to
connections on the corresponding material's color properties, for
all geometries in the scene. |
|
bool | ConnectTexturesToMaterials (KFbxNode *pNode) |
Moves textures in texture layer elements to
connections on the corresponding material's color properties, for
the given geometry in the scene. |
|
bool | AssignTexturesToLayerElements (KFbxScene &pScene) |
This is the reverse operation of
ConnectTexturesToMaterials() Textures connected to Materials'
color properties are stored in layer elements, and their
connections to the color properties are broken. |
KFbxMaterialConverter | ( | KFbxSdkManager & | mManager, |
KFbxSurfaceMaterial * | pDefaultMaterial =
NULL |
||
) |
bool ConnectTexturesToMaterials | ( | KFbxScene & | pScene | ) |
Moves textures in texture layer elements to connections on the corresponding material's color properties, for all geometries in the scene.
(Convert scene from FBX v5 material system to v6-and-up)
pScene | The scene whose geometries should be converted. |
bool ConnectTexturesToMaterials | ( | KFbxNode * | pNode | ) |
Moves textures in texture layer elements to connections on the corresponding material's color properties, for the given geometry in the scene.
(Convert scene from FBX v5 material system to v6-and-up)
pNode | The geometry node to be converted. |
bool AssignTexturesToLayerElements | ( | KFbxScene & | pScene | ) |
This is the reverse operation of ConnectTexturesToMaterials() Textures connected to Materials' color properties are stored in layer elements, and their connections to the color properties are broken.
(Convert scene from FBX v6-and-up material system to v5)
pScene | The scene whose geometries should be converted. |