|
"Fun" used to be marble and texture maps.
Not anymore. When you throw glass and mirrors into the
picture, it's a whole new ballgame. Now, glass
and mirrors, I found, are only interesting if they are in some
environment...so I had to create one for them. (Yes, I
realize that I didn't have to use a Cornell Box color scheme, but
I was feeling a little left out because I didn't have a Cornell
Box of my own.) Each wall is made from 128 triangles in
order to get the shading correct. There are six walls to my
box; triangles (e.g. the ones that make up the near wall) are only
culled with respect to the ray that hits them. So, for our
purposes, the viewer can see into the box but the reflective
objects still see all the walls. Below are
sample output images. Each one contains a partially
reflective marble sphere, a lambertian sphere, a near total
reflective sphere, a partially reflective texture mapped (pool
ball) sphere, and a dielectric (usually glass) sphere.
Except when noted, the walls and ceiling are lambertian while the
floor is partially (35%) reflective. The point light is
about 1/4 back in the room in the z-direction and near the
ceiling.
|