POV-Ray : Newsgroups : povray.general : transparency difficulties Server Time
17 Nov 2024 17:19:11 EST (-0500)
  transparency difficulties (Message 1 to 2 of 2)  
From: d-fence
Subject: transparency difficulties
Date: 13 Feb 2003 15:00:17
Message: <web.3e4bf8fef0b7d4adeed26860@news.povray.org>
I was trying to do a simple scene with a glass half filled with water but I
have a problem with transparency.

I'm doing the glass with a classical difference between two cylinders but
when I try to put water inside, the water is completely black.

I tried a lot of tricks but nothing works. I even tried to render a scene
downloaded from the irtc but the probleme was the same.

I'm using povray 3.5 whith GNU/Linux.

Here is a simple scene to show the problem :
camera { location <3,3.5,-3> look_at <0,0,0> }
light_source { <3,4,-3>,1  }
light_source { <-3,4,-2>,1 }
plane { <0,1,0>,1 pigment { color rgb <0.1,0.2,0.8> } translate -3*y }

#declare M_transp=material {
        interior { ior 1.03 }
        texture { pigment { color rgbf <1,1,1,0.9> }
                finish { reflection 0.1 specular 0.8 roughness 0.01 metallic
}
                }
        }

difference {
                cylinder { <0,-1,0>,<0,1,0>,1.5 hollow material { M_transp }
}
                cylinder { <0,-0.9,0>,<0,1.2,0>,1.4 hollow material {
M_transp } }
        }
sphere { <0,0,0>,0.5 hollow material { M_transp } }
//##################################################

When I render this scene, the part of the sphere that shows through the
cylinder is black and the part that shows trough the hole of the cylinder
is correct.

The scene that I tried from the irtc is "2lonely" from Tim Nikias Wenclawiak
from july-august 2002.

Thanks for any help.


Post a reply to this message

From: d-fence
Subject: Re: transparency difficulties
Date: 13 Feb 2003 15:15:08
Message: <web.3e4bfc82f596f7b6deed26860@news.povray.org>
Sorry for this post, I'm an idiot !

I tried to render the scene for a last test and that's when I saw the
warning : max_trace_level reached !

The thing to remember is "always read the warnings".

sorry again


Post a reply to this message

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