POV-Ray : Newsgroups : povray.advanced-users : milky glass problem : Re: milky glass problem Server Time
29 Jul 2024 20:27:58 EDT (-0400)
  Re: milky glass problem  
From: Ron Parker
Date: 20 Feb 2002 11:06:43
Message: <slrna77ick.g7q.ron.parker@fwi.com>
On Wed, 20 Feb 2002 06:50:50 -0800, Ken wrote:
> 
> 

>> 
>> > 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.

Media is different, though, because the ray has to exit the triangle to get
media calculated.  This only happens when the ray hits another object after
having passed through the triangle, so you get media that obscures other
objects but that doesn't exist in areas where the background shows through.
A containing sphere can fix this effect to some extent, though.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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