8

1510 Chapter 16: Material Editor, Materials, and Maps
the illusion that the surrounding maps are seen
through the surface.
Note: Reflect/Refract is meant to be used with
cur ved or irregularly shaped objects. For
mirror-like flat surfaces that you want to reflect
the environment accurately, use
Flat Mirror (p age
2–1505)
material. For more accurate refractions,
especially for an object in a refractive medium
(such as a pencil in a glass of water), use
Thin Wall
Refract ion material (page 2–1513)
.
Automatic Cubic Ma ps
When you choose automatic cubic maps, 3ds Max
generates the maps based on the perspective of the
mapped object’s pivot point. Automatic maps are
based on the geometry of the scene.
The advantage to using automatic maps is that the
six views are automatically generated at rendering
time and can b e easily updated for each frame of an
animation. The disadvantage is that regenerating
the maps increases rendering time. In addition,
the maps exist only for the rendering and can’t be
edited or otherwise manipulated.
In the Material Editor , automatic reflections or
refractions reflect or refract the background of the
sample slot.
Assigning Cubic Maps
When yo u choose to load cubic maps from files,
you use the controls in the Fr om File group. The
advantage to using From File is that the bitmap
files already exist and take less rendering tim e.
In addition, you can edit the bitmap images.
Thedisadvantageisthatitsmoredifficulttouse
bitmaps to render an animation because first you
need to create the animated bitmaps.
Impor tant: Assigned cubic m aps must b e square, and
eachofthesixmapsmustbethesamesize.
Yo u c a n a u t o m a t i c a l l y l o a d s i x b i t m a p s a t o n c e i f
thesixbitmapshavevalidcubic-mapfilenames.
Thefirstpartofallsixfilenamesmustbethe
same, and the last part is an underscore followed
byatwo-letterabbreviationofthemapposition,
asshowninthefollowingtable:
Last Par t of Cubic Map File
Name
Meaning
_UP Up
_DN Down
_LF
Left
_RT
Right
_FR Front
_BK
Back
For example, if you have six bitmaps on disk,
labeled
view_up.bmp, view_fr.bmp, view_lf.bmp,
and so on, when you click one of the file buttons
and choose the bitmap for that p osition, all six
views are loaded.
Ifyouselectabitmapwhosenamedoesntfollow
the convention, or you select one with a valid
cubic-mapnamebutassignittothewrongbutton,
only that bitmap will be loaded.
Since all assigned bitmaps must b e the same
size, when you assign a new bitmap to one of
the windows, the sample slot doesn’t update
automatically. This avoids generating an error
message each time you assig n a bitmap. Once
you’ve assig ned al l six maps and are sure they are
square and the same size, click the Reload button
to update all of the maps and redisplay the sample
slot.
YoucanalsousetheReloadbuttontoseeyour
changes after you’ve edited one of the cubic maps
by using a paint program.
Rendering Cubic Maps
ThecontrolsintheRenderCubicMapFilesgroup
let you generate the maps automatically and save
them to disk. Use the To File button to specify the