Public Member Functions

KFbxMaterialConverter Class Reference

Search for all occurrences

Detailed 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:
KFbxSurfaceMaterial, KFbxTexture

Definition at line 67 of file kfbxmaterialconverter.h.

#include <kfbxmaterialconverter.h>

List of all members.

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.

Constructor & Destructor Documentation

KFbxMaterialConverter ( KFbxSdkManager mManager,
KFbxSurfaceMaterial pDefaultMaterial = NULL 
)

Member Function Documentation

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)

Parameters:
pScene The scene whose geometries should be converted.
Returns:
true on success, false otherwise
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)

Parameters:
pNode The geometry node to be converted.
Returns:
true on success, false otherwise
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)

Parameters:
pScene The 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:

KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter
KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter KFbxMaterialConverter