POV-Ray : Newsgroups : povray.newusers : Refraction in transparent objects? : Refraction in transparent objects? Server Time
5 Nov 2024 07:16:42 EST (-0500)
  Refraction in transparent objects?  
From: Tim Gosnell
Date: 15 Jun 2000 13:39:54
Message: <394914EB.83C7F01C@lanl.gov>
Glass lover POVers:

I'm a new user (Mac OS) as of yesterday and I'm already encountering
what I think are nonphysical effects.

I have a scene comprising a simple horizon and a glass box with ior=1.5.
The top of the box  is tilted by 30 degrees toward the horizon. When
viewing the horizon through the box, the horizon line should shift
relative to the horizon line outside the box. But what results is no
shift at all. All the internal reflections and such are present (through
use of the finish modifier). Here's the code:

#include "colors.inc"


 camera {
  location <0, 1, -5>
  look_at  <0, 0,  5>
 }


box {
 <-1,0,0>, <1,3,.5>
 pigment { Clear }
 finish {       ambient 0       diffuse 0       reflection .1
specular 1       roughness .001    }
 interior{ior 1.5}
 rotate x*30
}

 plane {
 y, 0
 pigment{ checker color White color Blue}
}

plane { y,500
 pigment {color Cyan}

}
light_source { <0, 2, 3> color White}


Post a reply to this message

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