|
![](/i/fill.gif) |
How: use CSG to give the front and back faces different textures, the
front in this case is 90% reflective, with 10% transmission, and the
back face is simply 50% filtering. When seen from the front, objects
behind the glass are filtered through both layers while reflections are
unfiltered. When seen from the back, objects behind the glass pass
through the same layers, but the reflections are filtered twice. Here's
the code for the objects:
difference {
sphere {< 0, 1, 0>, 1
texture {
pigment {color rgb 1 transmit 0.1}
finish {ambient 0 diffuse 0 reflection 0.9}
}
}
sphere {< 0, 1, 0>, 1 scale < 1, 1, 0.8>
texture {
pigment {color rgb 1 filter 0.5}
finish {ambient 0 diffuse 0}
}
}
plane {-z, 0 pigment {color rgb 0}}
scale < 1, 1, 0.2>
}
--
Christopher James Huff <cja### [at] gmail com>
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
Attachments:
Download 'onewayglass.png' (109 KB)
Preview of image 'onewayglass.png'
![onewayglass.png](/povray.binaries.images/attachment/%3Ccjameshuff-7A235D.10304802032005%40news.povray.org%3E/onewayglass.png?preview=1)
|
![](/i/fill.gif) |