Mtstimeelem - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

opacity
Sets the opacity of a material ( 0.0 - 1.0 ) , which allows the underlying geometry to appear transparent.
material.opacity = 0.2; //Nearly transparent
renderMode
Changes the manner in which the Viewpoint scene is rendered. The following settings are most commonly used:
renderMode = 1024 (default)
renderMode = 7; (wireframe)
renderMode = 8; (points & lines)
renderMode = 11; (full)
renderMode = 12; (color & texture composite)
material.renderMode = 12;
specularCoeffi cient
Specifi es the specular coeffi cient of the material.
material.specularCoeffi cient = 10.0;
specularColor
Specifi es the specular color to be used on the material as an array of three values [ R, G, B ]. A bright or white
value gives the appearance of a hard or smooth surface.
material.specularColor = [0.3, 0.3, 0.3]; // Future enhancement
Methods
getBumpTexture()
Gets a reference to the bump texture used by the material, if present.
material.getBumpTexture()
getDiffuseTexture()
Gets a reference to the diffuse texture used by the material, if present.
material.getDiffuseTexture()

MTSTimeElem

An MTSTimeElem object is used to present a Viewpoint "time element" or animation object. Note that these
objects are called TimeElem in the MTX fi le. This type of object also supports the methods and properties of
MTSBaseObject.
Properties
pauseTime
The fl ag to control whether the animation is paused. If set to true, while running is also set to true, this fl ag
allows the animator to be set (and rendered) to a particular time.
//composite the diffuse color and diffuse texture
351
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents