*SetColorMaterialComplex()

Sets the properties for a complex color material.

Syntax

*SetColorMaterialComplex(color_name,alpha,shininess, 
                                   emission_red, emission_green, emission_blue, 
                                   specular_red, specular_green, specular_blue, 
                                   ambient_red, ambient_green, ambient_blue, 
                                   diffuse_red, diffuse_green, diffuse_blue)

Arguments

color_name
The variable name of the material color.
Data type: varname
alpha
Specifies the transparency of a material.
A value between 0 and 1.
0
most transparent.
1
opaque.
Data type: integer
shininess
Specifies the degree of shininess of the specular light component of a material.
The greater the value, the higher the degree of shininess.
A value between ?
Data type: integer
emission_red
Specifies the red value for the emitted light component of a material.
A value from 0 to 1.
0
No emitted light.
1
Highest intensity.
Data type: integer
emission_green
Specifies the green value for the emitted light component of a material.
A value from 0 to 1.
0
No emitted light
1
Highest intensity.
Data type: integer
emission_blue
Specifies the blue value for the emitted light component of a material.
A value from 0 to 1.
0
No emitted light
1
Highest intensity
Data type: integer
specular_red
Specifies the red value for the specular light component of a material.
A value from 0 to 1.
0
No specular light.
1
Highest intensity.
Data type: integer
specular_green
Specifies the green value for the specular light component of a material.
A value from 0 to 1.
0
No specular light.
1
Highest intensity.
0 = 1 = .
Data type: integer
specular_blue
Specifies the blue value for the specular light component of a material.
A value from 0 to 1.
0
No specular light.
1
Highest intensity.
Data type: integer
ambient_red
Specifies the red value for the ambient light component of a material.
A value from 0 to 1.
0
No ambient light
1
Highest intensity.
Data type: integer
ambient_green
Specifies the green value for the ambient light component of a material.
A value from 0 to 1.
0
No ambient light.
1
Highest intensity.
Data type: integer
ambient_blue
Specifies the blue value for the ambient light component of a material.
A value from 0 to 1.
0
No ambient light.
1
Highest intensity.
Data type: integer
diffuse_red
Specifies the red value for the diffuse light component of a material.
A value from 0 to 1.
0
No diffuse light.
1
Highest intensity.
Data type: integer
diffuse_green
Specifies the green value for the diffuse light component of a material.
A value from 0 to 1.
0
No diffuse light.
1
Highest intensity.
Data type: integer
diffuse_blue
Specifies the blue value for the diffuse light component of a material.
A value from 0 to 1.
0
No diffuse light.
1
Highest intensity.
Data type: integer

Example

*ColorMaterial(mat_aluminum_alloy, "Aluminum alloy")
*SetColorMaterialComplex(mat_aluminum_alloy, 1, 32.7007, 0, 0, 0, 1, 1, 1, 0.13923, 0.13923, 0.13923, 0.69615, 0.69615, 0.69615)
*ColorMaterial(mat_color1, "Color 1")
*SetColorMaterialSimple(mat_color1, 0.4, 0.7, 0.8, 1.0)
*SetColorMaterialReference(gra_0, mat_color1)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

A color material can be set using either the simple or complex method.