POV-Ray : Newsgroups : povray.advanced-users : milky glass problem : Re: milky glass problem Server Time
29 Jul 2024 20:12:49 EDT (-0400)
  Re: milky glass problem  
From: Ken
Date: 20 Feb 2002 09:50:55
Message: <3C73B7CA.B1ECBB35@pacbell.net>

> 
> > Truth is you CAN apply media to the interior of a triangle. The problem
> 
> How? I thought a triangle / smooth_triangle doesn't have interiors?

Au contraire!  Try it and see. Consider the following example and
note the difference in defraction between the triangle on the left
and the defraction of the triangle on the right.

camera{location<0,1,-3>look_at 0}
light_source{<0,5,-20> rgb 1}

triangle{<-1,0,0>,<-.5,1,0>,< 0,0,0>pigment{rgbf .5}interior{ior 1.0}}
triangle{< 0,0,0>,< .5,1,0>,< 1,0,0>pigment{rgbf .5}interior{ior 2.0}}

plane{y,0 pigment{checker color rgb 1 color rgb 0 scale .5}finish{ambient .5}}

-- 
Ken Tyler


Post a reply to this message

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