Adobe ATMOSPHERE User Manual page 330

Table of Contents

Advertisement

318
APPENDIX E
// Make the spider's feet just touch the fl oor
spider.y = fl oorHeight-spider.bounds[0].y;
opacity
The percentage value of opaqueness of the SolidObject. Valid values range from 0 to 1. (0.0, 0.125, 0.25, 0.375,
0.5, 0.625, 0.75, 0.875, 1.0)
// A ghost spider
spider.opacity = .5;
transparentParity
Shifts the scanline at which the transparent masking pattern is displayed.
box1.transparentParity = 1; // see other boxes through this
box2.transparentParity = 0;
box3.transparentParity = 0;
useDynamicLighting
A boolean fl ag that when set to true enables the DistantLight defi ned in the script to modulate the lighting on
the SolidObject.
// Dynamically light the spider
spider.useDynamicLighting = true;
visible
A boolean fl ag that sets if the SolidObject is visible or not. Default is true.
spider.visible = false; // Hide the spider for now
ambientBrightness
The scale value that modulates the ambient term. Default is 0.
sphere = SceneGroup ("./sphere.aer");
solidObject = spheres[i].getSolidObject(0);
solidObject.ambientBrightness = .1;
ambientColor
A Vector representing the color of the ambient term. Default is Vector(1, 1, 1).
sphere = SceneGroup ("./sphere.aer");
solidObject = spheres[i].getSolidObject(0);
solidObject.ambientColor = Vector (.25, .25, .28);
diffuseBrightness
The scale value that modulates the brightness of the lighting from Distant Light sources. Default is 0.75.
sphere = SceneGroup ("./sphere.aer");
solidObject = spheres[i].getSolidObject(0);
solidObject.diffuseBrightness = .6;

Advertisement

Table of Contents
loading

Table of Contents