|
|
Hi all,
I have one code as following with two cylinders in x and z axes:
#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
#include "stones.inc"
background{White}
camera {
location <1., 2, -2.1>
look_at <0, 0, 0>
}
cylinder { //MOT Beams in x axis
<-5, 0, 0>, // Center of one end
<5, 0, 0>, // Center of other end
0.3 // Radius
//open // Remove end caps
hollow
texture {
pigment{ color rgbft <0.2,0.64,1,0.9,0.42>} }
//rotate <0,45,0>
}
cylinder { //MOT Beams in z axis
<0, 0, -8>, // Center of one end
<0, 0, 8>, // Center of other end
0.3 // Radius
//open // Remove end caps
hollow
texture {
pigment{ color rgbft <0.2,0.64,1,0.9,0.42>} }
//rotate <0,45,0>
}
light_source
{
<5, 5, 0>, color White cylinder
shadowless
}
It is ok. However, if I add the third beams in y axis:
#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
#include "stones.inc"
background{White}
camera {
location <1., 2, -2.1>
look_at <0, 0, 0>
}
cylinder { //MOT Beams in x axis
<-5, 0, 0>, // Center of one end
<5, 0, 0>, // Center of other end
0.3 // Radius
//open // Remove end caps
hollow
texture {
pigment{ color rgbft <0.2,0.64,1,0.9,0.42>} }
//rotate <0,45,0>
}
cylinder { //MOT Beams in y axis
<0, -5, 0>, // Center of one end
<0, 5, 0>, // Center of other end
0.3 // Radius
//open // Remove end caps
hollow
texture {
pigment{ color rgbft <0.2,0.64,1,0.9,0.42>} }
//rotate <0,45,0>
}
cylinder { //MOT Beams in z axis
<0, 0, -8>, // Center of one end
<0, 0, 8>, // Center of other end
0.3 // Radius
//open // Remove end caps
hollow
texture {
pigment{ color rgbft <0.2,0.64,1,0.9,0.42>} }
//rotate <0,45,0>
}
light_source
{
<5, 5, 0>, color White cylinder
shadowless
}
There will be a black overlapping cube.
Can anyone help me?
Thanks so much!
Mi
Post a reply to this message
|
|