Defines a SI|3D material.
![]()
|
In v3.0 only SI_Material is exported. In v3.5 and 3.6, SoftMaterial is exported as SI_Material, and regular Material is exported as XSI_Material. This template corresponds to the CSLMaterial class. |
1.3
Autodesk Softimage exports this template in v3.0. For v3.5/3.6, Softimage exports it when there is a legacy shader imported from SI|3D (via either dotXSI v3.0 or the ImportSi3D).
See XSI_Material for the corresponding Softimage template.
|
Member name |
Type |
Description |
|
faceColor |
ColorRGBA |
Diffuse color |
|
power |
float |
Specular decay |
|
specularColor |
ColorRGB |
Specular color |
|
emissiveColor |
ColorRGB |
Emissive color. Not supported by SI|3D. |
|
shadingModel |
int |
Defines the material shading model: 0 = Constant 1 = Lambert 2 = Phong 3 = Blinn 4 = Shadow Object 5 = Vertex Colour |
|
ambientColor |
ColorRGB |
Ambient color |
|
Local 2d textures applied to the material. If not present, the face is untextured. |
|
|
Material user data. Note: This tag is only available in SI|3D. |
Example (Lambert shaded material)
SI_Material myMaterial { 1.0; 0.0; 0.0; 0.0;; // diffuse (red) 1.0; // specular exponent 0.0; 1.0; 0.0;; // specular (green) 0.0; 0.0; 0.0;; // emissive color (black) 1; // Lambert shading model 0.3; 0.3; 0.3;; // ambient color (light gray) }
See the example for SI_MaterialLibrary.
Autodesk Crosswalk v5.0