FbxMaterialConverter Class Reference

FbxMaterialConverter Class Reference

#include <fbxmaterialconverter.h>

Class Description

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.

See also
FbxSurfaceMaterial, FbxTexture

Definition at line 31 of file fbxmaterialconverter.h.

Public Member Functions

 FbxMaterialConverter (FbxManager &mManager, FbxSurfaceMaterial *pDefaultMaterial=((void *) 0))
 
 ~FbxMaterialConverter ()
 
bool ConnectTexturesToMaterials (FbxScene &pScene)
 Moves textures in texture layer elements to connections on the corresponding material's color properties, for all geometries in the scene. More...
 
bool ConnectTexturesToMaterials (FbxNode *pNode)
 Moves textures in texture layer elements to connections on the corresponding material's color properties, for the given geometry in the scene. More...
 
bool AssignTexturesToLayerElements (FbxScene &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. More...
 

Constructor & Destructor Documentation

FbxMaterialConverter ( FbxManager mManager,
FbxSurfaceMaterial pDefaultMaterial = ((void *) 0) 
)

Member Function Documentation

bool ConnectTexturesToMaterials ( FbxScene 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)

Parameters
pSceneThe scene whose geometries should be converted.
Returns
true on success, false otherwise
bool ConnectTexturesToMaterials ( FbxNode 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)

Parameters
pNodeThe geometry node to be converted.
Returns
true on success, false otherwise
bool AssignTexturesToLayerElements ( FbxScene 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)

Parameters
pSceneThe scene whose geometries should be converted.
Returns
true if all geometries were converted, false otherwise

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