Ron Parker <par### [at] fwi com> 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
|