Entrypoint - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

290
APPENDIX E
castShadows
In worlds where dynamic lighting is enabled, controls whether the 'DistantLight' will cause dynamically lit
objects to cast shadows. Note that a dynamically lit object will only require processing (thereby reducing
performance) when it moves. Moving your avatar around in the world and changing views does not require an
update to the dynamic light, and therefore should not affect performance.
// Enable the light's ability to cast shadows
stageModel.getDistantLight(0).castShadows = true;
color
The color of the light as an Array or Vector of three values ordered as (red, green, and blue).
// make the light red
stageModel.getDistantLight(0).color = [1, 0, 0];
// make the light green
stageModel.getDistantLight(0).color = [0, 1, 0];
// make the light blue
stageModel.getDistantLight(0).color = [0, 0, 1];

EntryPoint

The EntryPoint scene element represents the starting position (and orientation) when a visitor enters your world.
Identifying the EntryPoint in JavaScript might be useful if you desire to return the visitor to the starting location for
any given reason. Multiple entrypoints can be created and used when specifying the URL of the Atmosphere world
in your webpage, and are referenced by appending the pound sign followed by the Entrypoint name (example: "./
myFileName.aer#entryPosition2". see more details about EntryPoints in the Atmosphere Application Help).
Local Properties
type
The object's type; returns "EntryPoint".
if (myObject.type == 'EntryPoint') { ... }
name
Returns the name of the object as assigned in the Application.
if (myObject.name == 'myCoolObject') { ... }
loaded
Returns true once the object has fi nished loading.
if (myObject.loaded) { ... }
parent
A reference to the parent SceneGroup containing the object
myParent = myObject.parent;

Advertisement

Table of Contents
loading

Table of Contents