|
|
When I make some the top of 2 layered objects (which have solid color)
transparent, I get a large checkered pattern appearing, rather than solid
color. Any suggestions?
#include "colors.inc"
#include "finish.inc"
#include "glass.inc"
#include "metals.inc"
#include "textures.inc"
background { color rgb<0.000000,0.000000,0.0000000> }
camera { orthographic location <-0.491178,-0.320733,-0.984815>
sky <0.121747,-0.960052,0.251947>
right <1.260921,0,0> up <1.260921,0,0>
look_at <-0.062685,-0.040932,-0.125684> }
light_source
{
<33.733015,-71.254273,-60.330759>
color rgb<0.00000,0.00000,0.00000> }
sky_sphere { pigment {gradient y color_map {[0, 1 color White color White]}
rotate x*45}}
global_settings { ambient_light rgb<4.000000, 4.000000, 4.000000>
assumed_gamma 2.2}
//object
//{
//intersection{
//plane { <0.555706, -0.000000, -0.831379>, 0.200000 }
//plane { <1.000000, -0.000000, -0.000000>, 0.100000 }
//plane { <0.000000, 1.000000, -0.000000>, 0.100000 }
//plane { <0.000000, -1.000000, 0.000000>, 0.100000 }
//plane { <-1.000000, 0.000000, 0.000000>, 0.100000 }
//plane { <-0.555706, 0.000000, 0.831379>, 0.200000 }
//plane { <0.555706, -0.000000, 0.831379>, 0.200000 }
//plane { <-0.555706, 0.000000, -0.831379>, 0.200000 }
//} interior { ior 2.500000 } pigment {color rgbt < 0.4, 0.4, 1, 0.1>}
// }
// arbitrary X,Y FINITE (no CSG) shape
// A complex example for a polygon is the letter "P":
polygon {
4, // number of points
<-0.188, -0.161> <-0.188, 0.042>, <-0.005, 0.162>, <-0.005, -0.0508>
interior { ior 1.50000 } pigment {Red_Marble color rgbt < 0.7, 0.2, 0.2,
0.6>}
}
polygon {
4, // number of points
<-0.005, 0.162>, <-0.005, -0.0508>, <0.112, -0.0358>, <0.112, 0.175>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
4, // number of points
<0.112, -0.0188>, <0.112, 0.175>, <0.19, 0.155>, < 0.19, -0.045>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
4, // number of points
<-0.185, -0.161> <-0.188, 0.042>, <-0.112, 0.021>, <-0.112, -0.179>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
4, // number of points
<-0.112, 0.021>, <-0.112, -0.179>, <0.013, -0.157>, <0.013, 0.043>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
4, // number of points
<0.013, -0.157>, <0.013, 0.043>, <0.19, 0.155>, < 0.19, -0.045>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
6, // number of points
<-0.188, -0.161>, <-0.005, -0.0508>, <0.112, -0.0358>, < 0.19, -0.045>,
<0.013, -0.157>, <-0.112, -0.179>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
6, // number of points
<-0.188, 0.042>, <-0.005, 0.1522>, <0.112, 0.1672>, < 0.19, 0.158>,
<0.013, 0.046>, <-0.112, 0.024>
interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
Post a reply to this message
|
|