XSI_Material

Defines a Autodesk Softimage material. This template contains the list of connections and the name of the sources (if connected).

This new material template is closer to the Softimage conceptual model. In Softimage, a material is essentially a placeholder for shaders. So now there is an entity that is a placeholder for both realtime and mental ray shaders in the dotXSI file format as well.

See also XSI_MaterialInfo.

 

This template corresponds to the CSLXSIMaterial class.

Limitations

SI|3D does not export this template. See SI_Material for the corresponding 3D template.

Introduced

3.5

Template

XSI_Material <material name>
{
   <cnx_number>,
   <cnx_name>, <cnx_source>,
   // for each connection
   XSI_Shader {
       ... // usually contains one or more XSI_Shader 
           // templates
   }

   XSI_TextureLayer
   // for each texture layer

   XSI_ShaderMultiPortConnection
   // for each connection with a multi-output shader

   XSI_UserKeyword
}

Members

Member name

Description

cnx_number

Number of connections (that is, <cnx_name, <cnx_source> pairs) listed in this template

cnx_name

Name of connection

cnx_source

Name of connection source

Example

In the example below, the material’s surface, shadow and photon ports connect to a shader called Phong:

XSI_Material sphere 

{ 
10, 
"surface","Phong",
"volume","",
"environment","",
"contour","",
"displacement","",
"shadow","Phong",
"Photon","Phong",
"PhotonVolume","",
"normal","",
"RealTime","",
...
}


Autodesk Crosswalk v4.0