SI_Material

Defines a SOFTIMAGE|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.

Introduced

1.3

Limitations

SOFTIMAGE|XSI exports this template in v3.0. For v3.5/3.6, XSI exports it when there is a legacy shader imported from SOFTIMAGE|3D (via either dotXSI v3.0 or the ImportSi3D).

See XSI_Material for the corresponding XSI template.

Members

Member name

Type

Description

faceColor

ColorRGBA

Diffuse color

power

float

Specular decay

specularColor

ColorRGB

Specular color

emissiveColor

ColorRGB

Emissive color. Not supported by SOFTIMAGE|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

Nested Templates

SI_Texture2D

Local 2d textures applied to the material. If not present, the face is untextured.

SI_ElementUserData _<userDataTag>

Material user data.

Note: This tag is only available in SOFTIMAGE|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)
}

Example (with 2D Textures)

See the example for SI_MaterialLibrary.



Softimage|Crosswalk v3.11