This reference page is linked to from the following overview topics: MotionBuilder 2013, Your First Python Program, FBProperty - Object Properties, Scene Elements, FBModel - Transformation Data and the Scene Graph, FBMaterial and FBTexture - Materials and Textures.
#include <fbmodel.h>

Public Member Functions |
|
| FBMaterial (const char *pName, HIObject pObject=NULL) | |
| Constructor. |
|
| FBMaterial * | Clone () |
| Clone the material. |
|
| HFBTexture | GetTexture (FBMaterialTextureType=kFBMaterialTextureDiffuse) |
| Retrieve associated texture. |
|
| void | SetTexture (FBTexture *pTexture, FBMaterialTextureType pType=kFBMaterialTextureDiffuse) |
| Set associated texture. |
|
| void | OGLInit () |
| Setup OpenGL fixed pipeline material
settings. |
|
| virtual const char * | GetMaterialName () const |
| Return Material Name. |
|
| virtual const char * | GetMaterialDesc () const |
| Return Material Desc Name. |
|
| virtual bool | FbxStore (HFBFbxObject pFbxObject, kFbxObjectStore pStoreWhat) |
| Store and Retrieve function that can be
overloaded. |
|
| virtual bool | FbxRetrieve (HFBFbxObject pFbxObject, kFbxObjectStore pStoreWhat) |
| virtual const char * | FbxGetObjectType () override |
| Returns the class type inherited by the
class of an object, for example: 'Material'. |
|
| virtual const char * | FbxGetObjectSubType () override |
| Returns the class sub type inherited by the
class of an object, for example: 'Default', 'Custom Material'.
|
|
Public Attributes |
|
| FBPropertyAnimatableColor | Ambient |
| Read Write Property: Ambient color.
|
|
| FBPropertyAnimatableDouble | AmbientFactor |
| Read Write Property: Ambient Factor
value. |
|
| FBPropertyAnimatableColor | Emissive |
| Read Write Property: Emissive color.
|
|
| FBPropertyAnimatableDouble | EmissiveFactor |
| Read Write Property: Emissive Factor
value. |
|
| FBPropertyAnimatableColor | Diffuse |
| Read Write Property: Diffuse color.
|
|
| FBPropertyAnimatableDouble | DiffuseFactor |
| Read Write Property: Diffuse Factor
value. |
|
| FBPropertyAnimatableColor | TransparentColor |
| Read Write Property: Transparent
color. |
|
| FBPropertyAnimatableDouble | TransparencyFactor |
| Read Write Property: Transparency
Factor value. |
|
| FBPropertyAnimatableColor | Bump |
| Read Write Property: Bump. |
|
| FBPropertyAnimatableColor | NormalMap |
| Read Write Property: Normal Map.
|
|
| FBPropertyAnimatableDouble | BumpFactor |
| Read Write Property: Bump Factor
value. |
|
| FBPropertyAnimatableColor | Specular |
| Read Write Property: Specular color.
|
|
| FBPropertyAnimatableDouble | SpecularFactor |
| Read Write Property: Specular Factor
value. |
|
| FBPropertyAnimatableDouble | Shininess |
| Read Write Property: Shininess value.
|
|
| FBPropertyAnimatableColor | Reflection |
| Read Write Property: Reflection
color. |
|
| FBPropertyAnimatableDouble | ReflectionFactor |
| Read Write Property: Reflection
Factor value. |
|
| FBPropertyAnimatableColor | DisplacementColor |
| Read Write Property: Displacement
color. |
|
| FBPropertyAnimatableDouble | DisplacementFactor |
| Read Write Property: Displacement
Factor value. |
|
Protected Member Functions |
|
| HFBProperty | CreateTextureConnectableUserProperty (const char *pName, FBPropertyType pType, const char *pDataType, bool pAnimatable) |
| Create user custom texture connect property
for custom material derived from FBMaterial
only. |
|
| FBMaterial | ( | const char * | pName, |
| HIObject | pObject =
NULL |
||
| ) |
Constructor.
| pName | Name of material. |
| pObject | For internal use only(default=NULL). |
| FBMaterial* Clone | ( | ) |
Clone the material.
This will duplicated the current material.
| HFBTexture GetTexture | ( | FBMaterialTextureType | = kFBMaterialTextureDiffuse |
) |
Retrieve associated texture.
| pType | MaterialTextureType to get connected texture from (default is Diffuse is not specified). |
| void SetTexture | ( | FBTexture * | pTexture, |
| FBMaterialTextureType | pType =
kFBMaterialTextureDiffuse |
||
| ) |
Set associated texture.
| pTexture | texture to be connected. |
| pType | MaterialTextureType to set connected texture to. |
| void OGLInit | ( | ) |
Setup OpenGL fixed pipeline material settings.
| virtual const char* GetMaterialName | ( | ) | const [virtual] |
| virtual const char* GetMaterialDesc | ( | ) | const [virtual] |
| virtual bool FbxStore | ( | HFBFbxObject | pFbxObject, |
| kFbxObjectStore | pStoreWhat | ||
| ) | [virtual] |
Store and Retrieve function that can be overloaded.
| pFbxObject | FBX Object that is used to communicate I/O operations. |
| pStoreWhat | Which attributes are currently stored/retrieved. |
| virtual bool FbxRetrieve | ( | HFBFbxObject | pFbxObject, |
| kFbxObjectStore | pStoreWhat | ||
| ) | [virtual] |
| virtual const char* FbxGetObjectType | ( | ) | [override, virtual] |
Returns the class type inherited by the class of an object, for example: 'Material'.
Reimplemented from FBBox.
| virtual const char* FbxGetObjectSubType | ( | ) | [override, virtual] |
Returns the class sub type inherited by the class of an object, for example: 'Default', 'Custom Material'.
Reimplemented from FBBox.
| HFBProperty CreateTextureConnectableUserProperty | ( | const char * | pName, |
| FBPropertyType | pType, | ||
| const char * | pDataType, | ||
| bool | pAnimatable | ||
| ) | [protected] |
Create user custom texture connect property for custom material derived from FBMaterial only.
| pName | The name of the property. |
| pType | Type of the property. See enum FBPropertyType. |
| pDataType | DataType of the property. |
| pAnimatable | To specify if the property can be animated.. |
Read Write Property: Ambient color.
Read Write Property: Ambient Factor value.
Read Write Property: Emissive color.
Read Write Property: Emissive Factor value.
Read Write Property: Diffuse color.
Read Write Property: Diffuse Factor value.
Read Write Property: Transparent color.
Read Write Property: Transparency Factor value.
Read Write Property: Normal Map.
Read Write Property: Bump Factor value.
Read Write Property: Specular color.
Read Write Property: Specular Factor value.
Read Write Property: Shininess value.
Read Write Property: Reflection color.
Read Write Property: Reflection Factor value.
Read Write Property: Displacement color.
Read Write Property: Displacement Factor value.