POV-Ray : Newsgroups : povray.general : silly features : Re: silly features Server Time
11 Aug 2024 23:17:56 EDT (-0400)
  Re: silly features  
From: Robert Dawson
Date: 11 Jun 1999 09:24:50
Message: <37610e22@news.povray.org>
Ron Parker <par### [at] fwicom> wrote

> Anyway, there's an easier way to get that effect:
>
>   #declare LightPos=<...>;
>   #declare ShadowOnlyObject=...
>
>   light_source { LightPos rgb 1}
>   object { ShadowOnlyObject bounded_by {sphere { LightPos .001 }}}

    Cool. This doesn't look as if it *ought* to work, because POV-Ray has an
absolute concept of "inside" - but it does. Clearly the shadow test uses ray
intersections to determine whether a "legal" part of the object is blocking
light, so is fooled if the lightsource is inside the bounding object.

    -Robert Dawson


Post a reply to this message

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