POV-Ray : Newsgroups : povray.newusers : Colored shadows : Re: Colored shadows Server Time
18 Apr 2024 00:53:39 EDT (-0400)
  Re: Colored shadows  
From: Alain
Date: 1 Feb 2017 16:25:37
Message: <58925251$1@news.povray.org>

> Hi,
> I know this is not a realistic feature.
> Is there a way to specify that all shadows cast by one light are colored by some
> tint? (I'm not talking of the highlight color, but rather separate tint of the
> shadows and on a per light basis.)
>
>

Possible but cumbersome. It involve using projected_through lights 
associated with your base light(s).

It should work as follow:
Declare all the objects that are to have coloured shadows in some large 
unions.
Place that, or those, union in your scene.
Place all of your lights.
Place copies of all the lights that are to cast coloured shadows. Those 
copies have the colour that you want the shadows to have. They also have 
the projected_through attribute using your large union.


shine in areas that would otherwise be in shadow and don't shine in 
areas that would be lighted using a normal light_source.
It works well with area_light and parallel.
Using spot_light is pointless.
In my tests, it don't like photons. You need to set the 
projected_through object as photons{pass_thgough} or it won't produce 
any photons.

It should be interesting using transparent objects as projected_through 
object. Would an object with pigment{rgbf<0,1,0,1>} gives magenta 
illumination?


Alain


Post a reply to this message

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