Accessibility
 
Home > Products > Director > Support > Basics of Director 3D
Macromedia Director Support Center - Basics of Director 3D
Creating your own backdrop or overlay

In addition to using the behaviors in the sample movie to create a backdrop or overlay, you can create a backdrop with just a few lines of Lingo. In its simplest form, a backdrop or overlay is created from a texture, which in turn is created from a valid cast member type. You first get a reference to a valid texture object by either creating a new texture or using one that exists in the 3D world. You then create the new backdrop or overlay for the camera using the texture object.

The following Lingo creates a backdrop that appears in the upper left corner of the 3D world:

on DoBackdrop
    textr=member ("3d").newTexture("BackdropTextureName", #fromCastmember, member("AnyBitmapMember")
    sprite(1).camera.addBackdrop(textr, point (0,0), 0)
end
You can use the same script to create an overlay by substituting the word "overlay" for "backdrop" each time it appears in the handler.

To Table of Contents Back to Previous document Forward to next document