Professional Documents
Culture Documents
3ds Max (Glass)
3ds Max (Glass)
8
Glass
GLASS CAN SEEM TO BE awfully complicated. Plain old transparency
with a bit of shine doesn’t do the trick. You search in vain for the
Instant Glass button, but somehow the developers of 3ds Max left it
out of the user interface.
The key is to use reference images to find the look you want, and
then consider which maps and parameters will create a material that
simulates that look.
133
8 Exterior daytime windows
Glass
2 You can use a photo as a basis for a texture and map it onto the windows. This will give you a realistic
look, but only if the light is coming from the same angle as in the photo. For a still image, this is a viable
option. With an animated camera, the lack of a changing reflection will become obvious as soon as the camera
moves.
134
How to Cheat in 3ds Max
ExtWindows.max
1 From photos, you can see that exterior windows in daylight aren’t really transparent. Depending on
the lighting, you might be able to see partway into the building, or you only see a reflection of the
environment.
3 To reflect the sky and also show shadows from the scene’s light source, apply a Matte/Shadow material
to the windowpanes. Be sure to turn on Receive Shadows and Additive Reflection for the material. If
using Mental Ray, use the Matte/Shadow/Reflection (mi) material. Here, a large plane creates the panes for all
the windows at once, and mullions are modeled separately to sit above the plane.
135
8 Interior daytime windows
Glass
through the windows coupled with the play of light on the floor will do most of the work for you.
136
How to Cheat in 3ds Max
137
8 Nighttime and dusk
Glass
W INDOWS AT NIGHTTIME are perhaps the easiest to do. For exterior scenes, they’re
just clear panes showing the scene lit within. For interiors, the scene outside is dark,
perhaps showing a brightly lit cityscape but not much else.
For exterior scenes at dusk, the appearance of windows varies according to the direction of
the sun and also whether anyone has bothered to turn on the lights. The reference images shown
above help show the various ways windows can look at these different times of day.
RENDERINGS: NEOSCAPE, INC.
138
How to Cheat in 3ds Max
3 Interior windows at night are dark, not allowing much of an exterior view. In the picture at
right, at bit of the cityscape is visible.
139
8 Pint glass
Glass
1
environment map will help. You can use the
Let’s take a look at a few reference photos. The cut-glass
same technique to create drinking glasses, vase refracts light aplenty, creating an irregular pattern of
vases, and any kind of curved glass object. black and white reflections. In fact, there’s so much refraction
you can hardly see through it at all. Even a simple drinking
glass refracts light.
140
How to Cheat in 3ds Max
ScanlineGlass.max
MRGlass.max
141
8 Glass
INTERLUDE
BEHOLD THE HUMBLE drinking glass. You’ve seen a glass like this a hundred times, so you
know what it should look like, right? Unfortunately, so does everyone else. This means you
can’t get away with a cheesy rendering of a transparent tube. A little physics is required to get a
realistic rendering.
To study the properties of curved glass, I placed a pencil into an ordinary drinking glass. As
light passes through the glass, it bends, bounces around a bit, and eventually makes it into your
eyes (or in this case, the camera lens). The picture at the far left shows the actual photograph,
where the pencil inside the glass appears bent.
Modeling the glass, pencil, and tabletop in 3ds Max was a pretty simple exercise. I used Bevel
on each of the polygons in the middle portion of the glass to simulate the indentations in the glass
I photographed, and I made a custom texture to simulate the spots on the glass.
Next up was the material for the glass. In life, some transparent media, such as glass and
water, bend light to some degree. In physics, this degree is expressed as a number called the
Index of Refraction. Clear air, which doesn’t bend light at all, has an Index of Refraction of 1.0.
Numbers greater and lesser than 1.0 indicate bending of light. The farther you get from 1.0, the
more the light bends. Numbers less than 1.0, such as 0.8 and 0.9, bend the light one way, while
142
How to Cheat in 3ds Max
n The first image shows a photo of a pencil in a glass. The rest of the
images are renderings, with an IOR of 0.8, 0.9, 1.1, and 1.2 respectively,
and then a last rendering with an IOR that varies over the surface of
the glass. The variable IOR was created with a pair of Gradient Ramp
maps in the IOR channel of an Arch & Design (mi) material. When a
map is used to set the IOR, white represents 1.0, and darker colors DrinkingGlass.max
descend to lower IOR values.
HOT TIP
The 3ds Max
file contains
numerous lights,
many of which
illuminate just one
or two objects.
This makes it
easier to control
the highlights
and brightness of
individual objects
in the rendering
so the reference
photo could be
matched as closely
as possible. In
addition, Exposure
Control was used
on the image
with Render >
Environment >
Exposure Control
numbers such as 1.1 and 1.2 bend it in the other direction. rollout.
For many materials, 3ds Max provides a parameter to set the Index of Refraction for
transparent/refractive objects. You can find the Index of Refraction parameter in the Extended
Parameters rollout for Standard materials and the IOR parameter in the Main Material
Parameters rollout for Arch & Design (mi) materials.
There are numerous websites where you can find the real-life IOR for everyday items
like glass, plastic, water, and gemstones. However, getting a realistic rendering isn’t as simple
as setting the IOR to the specified number. The IOR for glass clocks in at about 1.5, but the
outside of a drinking glass might have a different IOR than the inside, and the glass might have
imperfections. In other words, the physics-based IOR is just a guide. If the rendering looks good,
the IOR is right; if it doesn’t, it isn’t.
Physics tells us that the IOR for all known substances is above 1.0. But the second and last
renderings shown above, both of which use IORs under 1.0, are actually truer to the reference
photo than those with IORs above 1.0.
So when you need to simulate refraction, go with what your eyes tell you, not with what the
physics book says. A realistic rendering is always more “correct” than a technically accurate one.
143
How to Cheat in 3
n Learning a few
animation tricks of the
trade will make it possible
for you to animate scenes
quickly and effectively.
144