POV-Ray : Newsgroups : povray.general : Can't make object shadowless : Can't make object shadowless Server Time
3 Aug 2024 08:14:48 EDT (-0400)
  Can't make object shadowless  
From: dt731
Date: 19 Mar 2004 18:36:18
Message: <hgum505v3ifs97661oof92mhtitp1qfd5g@4ax.com>
The following code produces a sphere with a hole going through the
middle, and the sphere is semi-transparent so the hole can be seen.

The problem I am having is I can't stop the shadow from occurring on
the sphere from the cylinder object.

I know I can make the lightsource shadowless, but then I don't get the
shadow from the sphere on the plane.

The no_shadow keyword does not work for an object when it is inside a
difference command.

Help is appreciated.
DeLeon

*** CODE BELOW ***

# include "colors.inc"

#declare CamLoc = < 0,2,-2.5>;

camera {
	location CamLoc
	look_at < 0, 0, 0>
}

light_source {CamLoc color White*1.2}
light_source {<50, 50,75> color White*1.7}

plane { <0, 1, 0>, -1
    pigment {
      checker color Red * 0.5, color Blue * 0.5
    }
  }

difference { 
    sphere {<0, 0, 0>, 
        1
        pigment {color Green filter .35}
       }

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


Post a reply to this message

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