POV-Ray : Newsgroups : povray.general : Thick walled tube problem. Server Time
20 Nov 2024 12:41:00 EST (-0500)
  Thick walled tube problem. (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: Thick walled tube problem.
Date: 26 Aug 2001 22:19:48
Message: <3b89ae44@news.povray.org>
Can someone explain to me why I get a "thick-walled tube" with the
following code?


#declare actuald=2;//d*0.125;

#declare scopey=
union{
        difference{
                cylinder {<0,0,-0>,<0,0,3>,actuald+.000000100}
                cylinder {<0,0,-.1>,<0,0,3.1>,actuald}
                pigment{Brown} finish {ambient 0.8}
                }
        }

object {scopey rotate <0,0,0>}

camera {
   location <0, 0, -15> //was z of 15
       angle 22
   look_at <0,0,60>
}


light_source { <80, 1620, 80> color White }
light_source { <-4000, -400, -4000> color White*.6 }


Post a reply to this message

From: Bob H 
Subject: Re: Thick walled tube problem.
Date: 27 Aug 2001 01:36:27
Message: <3b89dc5b@news.povray.org>
Perspective, my dear fellow.


"Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
news:3b89ae44@news.povray.org...
> Can someone explain to me why I get a "thick-walled tube" with the
> following code?
>


Post a reply to this message

From: Ben Chambers
Subject: Re: Thick walled tube problem.
Date: 27 Aug 2001 12:40:07
Message: <3b8a77e7@news.povray.org>
"Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
news:3b89ae44@news.povray.org...
> Can someone explain to me why I get a "thick-walled tube" with the
> following code?
>
>
> #declare actuald=2;//d*0.125;
>
> #declare scopey=
> union{
>         difference{
>                 cylinder {<0,0,-0>,<0,0,3>,actuald+.000000100}
>                 cylinder {<0,0,-.1>,<0,0,3.1>,actuald}
>                 pigment{Brown} finish {ambient 0.8}
>                 }
>         }
>
> object {scopey rotate <0,0,0>}
>
> camera {
>    location <0, 0, -15> file://was z of 15
>        angle 22
>    look_at <0,0,60>
> }
>
>
> light_source { <80, 1620, 80> color White }
> light_source { <-4000, -400, -4000> color White*.6 }
>
>

Try the following:

#declare actuald=2;//d*0.125;

#declare scopey=
union{
 difference{
  cylinder {<0,0,-0>,<0,0,3>,actuald+.000000100}
  cylinder {<0,0,-.1>,<0,0,3.1>,actuald}
  pigment{
   gradient z
   color_map {
    [0 color rgb 0]
    [1 color rgb 1]
   }
   scale <1,1,3>
  }
  finish {ambient 1}
 }
}

object {scopey rotate <0,0,0>}

camera {
 location <0, 0, -15> file://was z of 15
 angle 22
 look_at <0,0,0>
}

Basically, the tube itself is very thin walled, but the far end of the tube
is much smaller (on the screen) than the near end.  Because of this, you get
the illusion of a thick wall.  Really, you're just looking inside the tube.
The gradient pattern above should highlight this.

...Chambers


Post a reply to this message

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