07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADOBE DIRECTOR BASICS<br />

3D: Controlling appearance<br />

Ambient property<br />

The only active property for ambient light is light.color.<br />

To get the most realistic effect in your 3D world, the ambient light must be the same color as your main directional<br />

light. Ambient lights ignore all other properties that you set for a light object.<br />

Ambient color of #standard shaders<br />

Only #standard shaders react to ambient light. All other shaders ignore it. Standard shaders have an ambient color<br />

property. This determines how the shader reacts to ambient light. If the ambient light is yellow (red + green) and the<br />

shader's ambient color is magenta (red + blue), then all faces with that shader will be tinted red. The green channel of<br />

the ambient light will be ignored, and there will be no blue light for the shader to react to.<br />

If the ambient light is a shade of gray (equal amounts of red, green, and blue), then all faces with the shader will be<br />

tinted magenta. Normally the ambient color of a #standard shader will be a shade of gray. The default value is<br />

rgb("#3F3F3F). For more information on the properties of shaders, see “Shaders and appearance modifiers” on<br />

page 130.<br />

Directional lights<br />

A directional light acts as if its rays travel in parallel from infinity in the direction of the light's negative z-axis (from<br />

positive to negative). A directional light creates an effect of light and shade that enhances the illusion of three<br />

dimensions.<br />

Changing the position of a directional light has no effect. Changing the rotation of a directional light will change the<br />

way it illuminates each triangular face of the models in the 3D world. To get the most realistic effect in your 3D world,<br />

the ambient light needs to be the same hue as your main directional light.<br />

To experiment with directional lights, download the movie Lights.dir and launch it.<br />

Directional lights create an effect of light and shade, due to the angle of incidence of the light on each surface.<br />

Last updated 8/26/2011<br />

124

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!