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

|
 |
|
 |
"Cousin Ricky" <ric### [at] yahoo com> 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
|
 |