|
![](/i/fill.gif) |
I have some problems with refraction. If I put an object inside another;
both transparent; the innermost turns black! When only partially inside, the
part inside still is black, but the bart outside looks fine. Here's a
detailed description:
I wanted to make an image with a glass and water inside it. The glass has
ior 1.44 and the water an ior of 1.33. The glass is a merge-thing:
merge {
intersection { a cylinder with a smaller cylinder } // this makes a
cylinder with one end open and kind of hollowed out; just like a real glass
("water-container".)
torus // at the rim of the glass
texture {
pigment { color rgbf 1 }
finish { some phong, no reflection }
}
interior { ior 1.44 }
}
And the water is placed inside:
intersection {
a plane, tilted to make a sloped surface on the water
a cylinder, slightly smaller than the inside of the glass
texture { same as glass }
interior { ior 1.33 }
}
There is a checkered gound plane, too... :)
The problem is, that although the water-object is fully visible, it is
black! Also, when I change the ior of the glass to 1, the problem still
persists. Also, when I extend the water to be higher than the glass, the
part outside the glass is fully transparent.
Things I've tried, but didn't make me any wiser:
*max_intersections increase.
*removal of the glass - water looks fine.
*transmit instead of filter (ecxactly the same results)
*render it in megapov (blind shot, there...)
I cannot figure this out, and it really makes me angry at my computer! Can
anyone explain these results or maybe solve my problem, before I smash my
screen! (nonono...I won't.)
Regards,
Simen Kvaal.
Post a reply to this message
|
![](/i/fill.gif) |