07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling appearance<br />

clearValue<br />

The following example shows that the colorBuffer.clearValue is closely related to the 3D cast member's background<br />

color. Changing the member's bgColor will change the colorBuffer.clearValue for all cameras of that member.<br />

put member("3D").bgColor<br />

-- color( 0, 0, 0 )<br />

put member("3D").camera(1).colorBuffer.clearValue<br />

-- color( 0, 0, 0 )<br />

vSecond = member("3D").newCamera("Second")<br />

member("3D").bgColor = color( 111, 22, 3 )<br />

put member(1).camera(1).colorBuffer.clearValue<br />

-- color( 111, 22, 3 )<br />

put vSecond.colorBuffer.clearValue<br />

-- color( 111, 22, 3 )<br />

You may want different cameras in the same 3D cast member to have different background colors. If so, you must first<br />

adopt the camera for the 3D sprite, and then change the camera's colorBuffer.clearValue. If you set the<br />

colorBuffer.clearValue first, then its value will be overwritten by the member's bgColor when you adopt the camera<br />

for the sprite.<br />

To see an example, download the movie MultipleViews.dir and launch it. Each of the sprites shows a view from a<br />

different camera with a different colorBuffer.clearValue.<br />

Set a camera's colorBuffer.clearValue after adopting the camera for a sprite<br />

clearAtRender<br />

When a camera refreshes its view of the world, the render process follows this order:<br />

Fill view with background color<br />

Show backdrops<br />

Render visible models<br />

Show overlays<br />

Last updated 8/26/2011<br />

106

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

Saved successfully!

Ooh no, something went wrong!