POV-Ray : Newsgroups : povray.general : Can't make object shadowless : Re: Can't make object shadowless Server Time
3 Aug 2024 08:10:29 EDT (-0400)
  Re: Can't make object shadowless  
From: Warp
Date: 20 Mar 2004 05:14:49
Message: <405c1999@news.povray.org>
dt7### [at] bellsouthnet wrote:
> difference { 
>     sphere {<0, 0, 0>, 
>         1
>         pigment {color Green filter .35}
>        }

>     cylinder {<0, -1, 0>,
>               <0, 1, 0>,
>         .2
>         pigment {color Green}
>         no_shadow
>        }
> }

  One solution which comes to mind is to clip the sphere with the
cylinder (with clipped_by) and then adding an shadowless open cylinder
in the same place. Something like this:

union
{ sphere
  { 0, 1
    clipped_by { cylinder { -y, y, .2 inverse } }
    pigment { rgb y filter .35 }
  }
  cylinder
  { -y, y, .2 open no_shadow
    pigment { rgb y }
  }
}

  (The problem is that the borders of the cylinder will not match with
the surface of the sphere so you'll have to shorten the cylinder so that
they match.)

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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