POV-Ray : Newsgroups : povray.binaries.images : Bug in fog behind transparent triangles? Server Time
2 Nov 2024 10:15:37 EDT (-0400)
  Bug in fog behind transparent triangles? (Message 1 to 3 of 3)  
From: Cousin Ricky
Subject: Bug in fog behind transparent triangles?
Date: 13 Mar 2011 14:30:01
Message: <web.4d7d0ba59cfb0293167f1e0c0@news.povray.org>
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
}


Post a reply to this message


Attachments:
Download 'invisible2.png' (3 KB)

Preview of image 'invisible2.png'
invisible2.png


 

From: Trevor G Quayle
Subject: Re: Bug in fog behind transparent triangles?
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

From: Cousin Ricky
Subject: Re: Bug in fog behind transparent triangles?
Date: 13 Mar 2011 23:00:01
Message: <web.4d7d84043d6a51df167f1e0c0@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> Look like triangles aren't a true 2D shape.  Add 'hollow' to your triangle and
> it's fine.

Thanks, it worked.


Post a reply to this message

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