POV-Ray : Newsgroups : povray.newusers : Refraction in transparent objects? : Re: Refraction in transparent objects? Server Time
14 Aug 2024 11:17:20 EDT (-0400)
  Re: Refraction in transparent objects?  
From: Bob Hughes
Date: 15 Jun 2000 14:16:03
Message: <39491d63@news.povray.org>
"Tim Gosnell" <gos### [at] lanlgov> wrote in message
news:3949198D.61B344B5@lanl.gov...
| Nevermind!
|
| That's what objects at infinity do!

I was about to post the same answer.
To see it right with non-infinite objects try this:

// BEGIN

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

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

box {-1,1 scale <20,.01,20>
 pigment{ checker color rgb 1 color rgb<0,0,1>}
  finish {ambient .5}
}

plane { y,500
 pigment {color rgb<0,1,1>}
  finish {ambient .5}
}

light_source { <0, 2, 3> , 1}

sphere {<-5,1,10>,1 pigment {rgb<0,1,0>}}
sphere {<0,1,10>,1 pigment {rgb<1,1,0>}}
sphere {<5,1,10>,1 pigment {rgb<1,0,0>}}

// END


Post a reply to this message

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