POV-Ray : Newsgroups : povray.binaries.images : Bug in fog behind transparent triangles? : Re: Bug in fog behind transparent triangles? Server Time
30 Jul 2024 18:15:17 EDT (-0400)
  Re: Bug in fog behind transparent triangles?  
From: Trevor G Quayle
Date: 13 Mar 2011 15:20:00
Message: <web.4d7d17c73d6a51dfb05ef170@news.povray.org>
"Cousin Ricky" <ric### [at] yahoocom> wrote:
> Fog does not appear to work behind transparent triangles.  In the attached
> image, the triangle has a transparent stripe across the middle.  The green
> background{} shows through the gray fog.
>
> The problem occurs in both 3.6.2 and 3.7 RC3.  I am using Windows XP.
> ________________________________________
>
> global_settings { assumed_gamma 1 }
>
> triangle
> {  <-1, -1, 0>, <1, -1, 0>, <0, 1, 0>
>    pigment
>    {  gradient y color_map
>       {  [0.5 rgb x]
>          [0.5 rgbt 1]
>       }
>       scale 2 translate y/2
>    }
>    translate 3 * z
> }
>
> light_source { <1, 1, -2> * 1000 rgb 1 }
>
> background { rgb y }
>
> fog
> {  distance 1000
>    color rgb 0.5
> }

Look like triangles aren't a true 2D shape.  Add 'hollow' to your triangle and
it's fine.

-tgq


Post a reply to this message

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