POV-Ray : Newsgroups : povray.newusers : One problem about the black zone of overlapping cylinders Server Time
23 Dec 2024 15:24:49 EST (-0500)
  One problem about the black zone of overlapping cylinders (Message 1 to 2 of 2)  
From: my3
Subject: One problem about the black zone of overlapping cylinders
Date: 24 Apr 2009 22:20:00
Message: <web.49f272fb582a3e7ce4f90ef60@news.povray.org>
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

From: Mike Williams
Subject: Re: One problem about the black zone of overlapping cylinders
Date: 24 Apr 2009 22:45:38
Message: <$uOZtnAPln8JFwr3@econym.demon.co.uk>
Wasn't it my3 who wrote:
>Hi all,
>
>I have one code as following with two cylinders in x and z axes:

Multiple overlapping transparent objects nee higher max_trace_level

In this case
   global_settings {  max_trace_level 7}
suffices.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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