Material class.
Public Member Functions | |
__init__ (str pName, object pObject=None) | |
Constructor. | |
FBMaterial | Clone () |
Clone the material. | |
FBTexture | GetTexture (FBMaterialTextureType pType=kFBMaterialTextureDiffuse) |
Retrieve associated texture. | |
SetTexture (FBTexture pTexture, FBMaterialTextureType pType=kFBMaterialTextureDiffuse) | |
Set associated texture. | |
OGLInit () | |
Setup OpenGL fixed pipeline material settings. | |
str | GetMaterialName () |
Return Material Name. | |
str | GetMaterialDesc () |
Return Material Desc Name. | |
bool | FbxStore (FBFbxObject pFbxObject, kFbxObjectStore pStoreWhat) |
Store and Retrieve function that can be overloaded. | |
bool | FbxRetrieve (FBFbxObject pFbxObject, kFbxObjectStore pStoreWhat) |
str | FbxGetObjectType () |
Returns the class type inherited by the class of an object, for example: 'Material'. | |
str | FbxGetObjectSubType () |
Returns the class sub type inherited by the class of an object, for example: 'Default', 'Custom Material'. | |
Public Attributes | |
FBPropertyBaseAnimatable | Ambient |
Read Write Property: Ambient color. | |
FBPropertyBaseAnimatable | AmbientFactor |
Read Write Property: Ambient Factor value. | |
FBPropertyBaseAnimatable | Emissive |
Read Write Property: Emissive color. | |
FBPropertyBaseAnimatable | EmissiveFactor |
Read Write Property: Emissive Factor value. | |
FBPropertyBaseAnimatable | Diffuse |
Read Write Property: Diffuse color. | |
FBPropertyBaseAnimatable | DiffuseFactor |
Read Write Property: Diffuse Factor value. | |
FBPropertyBaseAnimatable | TransparentColor |
Read Write Property: Transparent color. | |
FBPropertyBaseAnimatable | TransparencyFactor |
Read Write Property: Transparency Factor value. | |
FBPropertyBaseAnimatable | Bump |
Read Write Property: Bump. | |
FBPropertyBaseAnimatable | NormalMap |
Read Write Property: Normal Map. | |
FBPropertyBaseAnimatable | BumpFactor |
Read Write Property: Bump Factor value. | |
FBPropertyBaseAnimatable | Specular |
Read Write Property: Specular color. | |
FBPropertyBaseAnimatable | SpecularFactor |
Read Write Property: Specular Factor value. | |
FBPropertyBaseAnimatable | Shininess |
Read Write Property: Shininess value. | |
FBPropertyBaseAnimatable | Reflection |
Read Write Property: Reflection color. | |
FBPropertyBaseAnimatable | ReflectionFactor |
Read Write Property: Reflection Factor value. | |
FBPropertyBaseAnimatable | DisplacementColor |
Read Write Property: Displacement color. | |
FBPropertyBaseAnimatable | DisplacementFactor |
Read Write Property: Displacement Factor value. | |
Protected Member Functions | |
FBProperty | CreateTextureConnectableUserProperty (str pName, FBPropertyType pType, str pDataType, bool pAnimatable) |
Create user custom texture connect property for custom material derived from FBMaterial only. |
Constructor.
pName | Name of material. |
pObject | For internal use only(default=NULL). |
Reimplemented from FBBox.
FBMaterial Clone | ( | ) |
Clone the material.
This will duplicated the current material.
FBTexture GetTexture | ( | FBMaterialTextureType | pType = kFBMaterialTextureDiffuse | ) |
Retrieve associated texture.
pType | MaterialTextureType to get connected texture from (default is Diffuse is not specified). |
SetTexture | ( | FBTexture | pTexture, |
FBMaterialTextureType | pType = kFBMaterialTextureDiffuse |
||
) |
Set associated texture.
pTexture | texture to be connected. |
pType | MaterialTextureType to set connected texture to. |
OGLInit | ( | ) |
Setup OpenGL fixed pipeline material settings.
str GetMaterialName | ( | ) |
str GetMaterialDesc | ( | ) |
bool FbxStore | ( | FBFbxObject | pFbxObject, |
kFbxObjectStore | pStoreWhat | ||
) |
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. |
Reimplemented from FBBox.
str FbxGetObjectType | ( | ) |
Returns the class type inherited by the class of an object, for example: 'Material'.
Reimplemented from FBBox.
str FbxGetObjectSubType | ( | ) |
Returns the class sub type inherited by the class of an object, for example: 'Default', 'Custom Material'.
Reimplemented from FBBox.
FBProperty CreateTextureConnectableUserProperty | ( | str | pName, |
FBPropertyType | pType, | ||
str | 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.. |
FBPropertyBaseAnimatable Ambient |
Read Write Property: Ambient color.
FBPropertyBaseAnimatable AmbientFactor |
Read Write Property: Ambient Factor value.
FBPropertyBaseAnimatable Emissive |
Read Write Property: Emissive color.
FBPropertyBaseAnimatable EmissiveFactor |
Read Write Property: Emissive Factor value.
FBPropertyBaseAnimatable Diffuse |
Read Write Property: Diffuse color.
FBPropertyBaseAnimatable DiffuseFactor |
Read Write Property: Diffuse Factor value.
FBPropertyBaseAnimatable TransparentColor |
Read Write Property: Transparent color.
FBPropertyBaseAnimatable TransparencyFactor |
Read Write Property: Transparency Factor value.
FBPropertyBaseAnimatable Bump |
Read Write Property: Bump.
FBPropertyBaseAnimatable NormalMap |
Read Write Property: Normal Map.
FBPropertyBaseAnimatable BumpFactor |
Read Write Property: Bump Factor value.
FBPropertyBaseAnimatable Specular |
Read Write Property: Specular color.
FBPropertyBaseAnimatable SpecularFactor |
Read Write Property: Specular Factor value.
FBPropertyBaseAnimatable Shininess |
Read Write Property: Shininess value.
FBPropertyBaseAnimatable Reflection |
Read Write Property: Reflection color.
FBPropertyBaseAnimatable ReflectionFactor |
Read Write Property: Reflection Factor value.
FBPropertyBaseAnimatable DisplacementColor |
Read Write Property: Displacement color.
FBPropertyBaseAnimatable DisplacementFactor |
Read Write Property: Displacement Factor value.