POV-Ray : Newsgroups : povray.general : Lights only in shadows? : Re: Lights only in shadows? Server Time
1 Aug 2024 00:18:52 EDT (-0400)
  Re: Lights only in shadows?  
From: PM 2Ring
Date: 27 May 2006 13:05:01
Message: <web.447885df9215ab7e76ba2c900@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote:
> Greetings again!
>
> I am searching for a way to have lights (ambient 1.0) only in shadow regions
> of a planet. Does anyone know a way to do that?
>
> At the moment, I have a made a planet out of three layers: the planet itself
> (a sphere with a high-resolution image map), another sphere with a
> semi-transparent PNG map at ambient 1.0 for the city lights, and a sphere
> with a semi-transparent PNG map for the clouds.

You can do this with a texture_map, with the gradient pattern using the
vector from the centre of the Earth to the centre of the Sun. Sorry, I'm
too tired to write any code right now. :)


Post a reply to this message

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