|
![](/i/fill.gif) |
Hello,
I have a problem with transparency while rendering. To make it simple I've made
an example to explain it. The scene consists of 3 cubes of different size,
placed one in another. The problem here is that if I put all the transmit
parameter to 1 with a white background; we should see only a completely white
picture. Here it's not the case, the last cube (the smallest and the one
surrounded by the 2 others) appears black. I don't know if a parameter is
missing in my code,... Here is the code:
#include "colors.inc"
#declare amb = 1;
#declare dif = 0;
#declare ref = 0.001;
camera {
location <45,45,45>
look_at 0
angle 30
}
background { color White}
box
{
<10,10,10>, <-10,-10,-10>
texture {
pigment{color White transmit 1}
finish { ambient amb diffuse dif reflection ref }
}
}
box
{
<6,6,6>, <-6,-6,-6>
texture {
pigment{color White transmit 1}
finish { ambient amb diffuse dif reflection ref }
}
}
box
{
<2,2,2>, <-2,-2,-2>
texture {
pigment{color White transmit 1}
finish { ambient amb diffuse dif reflection ref }
}
}
The version I use is the 3.6.
So if someone can help me! :D
Thank you!
Post a reply to this message
|
![](/i/fill.gif) |