POV-Ray : Newsgroups : povray.general : Glass : Re: Glass Reflections Server Time
8 Aug 2024 16:19:22 EDT (-0400)
  Re: Glass Reflections  
From: Tom Melly
Date: 10 Jan 2001 10:31:56
Message: <3a5c806c@news.povray.org>
"J-Print News" <vir### [at] iconcoza> wrote in message
news:3a5c77fc@news.povray.org...
> I just thought of something else. Glass reflects not only on the outside
but
> on the inside as well. If you look carefully at a window pane at night
> you'll notice there is actually a double reflection.
>
> Can this be done in Pov?
>

I wasn't sure so I tried it. This behaviour as far as I can see is
reproduced by default in both pov and mp. Try the following code:

#include "colors.inc"

light_source{<0,0,0> color rgb<1,1,1>*2 translate <0, 30, 0>}
light_source{<0,0,0> color rgb<1,1,1>*2 translate <0, -30, 0>}

camera{location  <5.0, 0.0, -5.0> look_at   <0.0, 0.0,  0.0>}

box{
  <-10,-10,0>,<10,10,1>
  pigment{rgbf 1}
  finish{reflection 1/2 ambient 0 diffuse 0}
}

sphere{0, 1 translate<-5,0,-5> pigment{Red}}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.