Table of Contents

Advertisement

glareEffect.brightness = 1.0;
color
An array of three fl oats representing the scales of the color of the glare in RGB values. The default color scale
is a [1.0, 1.0, 1.0]. Please note that changing the color values every frame (such as in a timestep function) is
not recommended. Changing the color causes the recomputation of internal data, and slows down rendering
performance. However, changing values once at initial load time (or changing it based upon an event) is
reasonable.
glareEffect.color = [0.5, 0.7, 1.0];
nonlinearity
The degree of non-linear remapping of the color values. Nonlinearity determines how the glare is combined
with the rendered background. A very small value produces a linear response, but can too easily reach the
maximum pixel level with a bright background. A high value of non-linearity tends to make the glare more
smoothly varying without obvious clamping. The default value is 0.5. Please note that changing the value of
nonlinearity every frame (such as in a timestep function) is not recommended. Changing the nonlinearity causes
the recomputation of internal data, and slows down rendering performance. However, changing the value once
at initial load time (or changing it based upon an event) is reasonable.
glareEffect.nonlinearity = 0.5;
radius
Glare size in screen pixels. The available range for radius is 16 to 64. The current implementation only works
accurately for radius values that are multiples of 8.
glareEffect.radius = 16;

Sound

The Sound module enables a script to add sounds to the world. The sounds can be positional (localized), or ambient
(uniformly everywhere). They can be started or stopped at any time, and may be set to play once, some number of
successive repetitions, or to loop indefi nitely. Presently, the fi le formats supported for sound are: WAV, MP3, and CEL)
When you use a script to specify a sound fi le, the Atmosphere application will keep track of the fi les for you. During
'publish' , any referenced fi les in your script will be copied and included with the world fi le, and the fi le reference will
be updated to match the sound fi le location.
Global Methods
Sound(url)
Creates a new Sound in the current world from the specifi ed URL (but does not start playing the sound).
windSound = Sound("http://myDomain.com/myHomePage/wind.wav");
265
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents