User Guide
350 APPENDIX E
alwaysVisible
Returns whether the text will always be visible in Atmosphere, or will only show during a “MouseOver” event.
Note that for this release, changing this property has no effect and should be considered “read only”. It’s also
important to note that this attribute must be present in the MTX description fi le, and set to “1” in order for the
text to be visible in Atmosphere.
bIsVisible = textObj.alwaysVisible;
MTSMaterial
An MTSMaterial is an object used to represent a Viewpoint material. This allows for control of different aspects of a
surface’s appearance including surface and bump textures, specular and diffuse shading coeffi cients and opacity. An
MTSMaterial object also supports all the methods of MTSBaseObject.
Properties
ambientColor
Specifi es the ambient color of the material as an array of three values [ R, G, B ].
material.ambientColor = [ 0, 0, 0.5 ]; //set to 50% blue
bumpStrength
Scales the apparent depth of the bump map on the surface of the geometry.
material.bumpStrength = 0.7; //set bump strength to 70% intensity
bumpTextureName
Returns the value of the “name” property for the bump texture.
btName = material.bumpTextureName;
diffuseColor
Specifi es the diffuse color of the material as an array of three values [ R, G, B ]. When “rendermode” is set to “12”
(see below), the diffuse color is composited (combined) with the diffuse texture.
material.diffuseColor = [1.0, 0.0, 0.0]; //set the diffuse color to red.
diffuseTextureName
Returns the value of the “name” property for the diffuse texture.
dtName = material.diffuseTextureName;
emmissiveColor
Specifi es the emissive color as an array of three values [ R, G, B ].
material.emmissiveColor = [ 0, 1, 0 ]; //set to green
environmentTextureName
Returns the value of the “name” property for the environment texture.
name = material.environmentTextureName;










