POV-Ray : Newsgroups : povray.advanced-users : Tricky Light Server Time
1 Nov 2024 03:17:53 EDT (-0400)
  Tricky Light (Message 1 to 6 of 6)  
From: Woody
Subject: Tricky Light
Date: 2 Jul 2008 00:10:00
Message: <web.486afea135de7638f45a716c0@news.povray.org>
I'm trying to cast a light on a black surface such as

box{ -50, 50 scale x/500 pigment{color Black}}


  light_source {
    30*x, Red
    projected_through { sphere{20*x, 1} }
  }

but shining any light on a black surface and the light will not reflect (that is
it has not effect)

However, I want to have an effect like shining a red light on a white wall where
that light source is the only light scen. (or shining a white light on a red
surface, again the only light source in the scene.) So it will appear that the
surface is black and the light is red.

But I can't do that because I need to create a white object, such as

sphere{10*x,3 pigment{color White}}

However, in order to have that visible I would need to have an additional white
light somewhere in the scene, which would illuminate the true pigment of the
wall I'm trying to make look black.

Any ideas?


Post a reply to this message

From: Slime
Subject: Re: Tricky Light
Date: 2 Jul 2008 03:03:14
Message: <486b2832$1@news.povray.org>
If you want the wall to have any color when illuminated, you need it to have 
a pigment besides black. If you want another object to be illuminated 
without illuminating the wall, you could put it in a light_group.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Warp
Subject: Re: Tricky Light
Date: 2 Jul 2008 09:36:04
Message: <486b8444@news.povray.org>
Woody <nomail@nomail> wrote:
> But I can't do that because I need to create a white object, such as

> sphere{10*x,3 pigment{color White}}

> However, in order to have that visible I would need to have an additional white
> light somewhere in the scene

  No you don't. You just have to set finish { ambient 1 } to that sphere.

-- 
                                                          - Warp


Post a reply to this message

From: Chris B
Subject: Re: Tricky Light
Date: 2 Jul 2008 10:09:18
Message: <486b8c0e$1@news.povray.org>
"Woody" <nomail@nomail> wrote in message 
news:web.486afea135de7638f45a716c0@news.povray.org...
> I'm trying to cast a light on a black surface such as
> ...
> But I can't do that because I need to create a white object, such as
>
> sphere{10*x,3 pigment{color White}}
>
> However, in order to have that visible I would need to have an additional 
> white
> light somewhere in the scene, which would illuminate the true pigment of 
> the
> wall I'm trying to make look black.
>
> Any ideas?
>

A third idea is to illuminate the white object with a directional light (a 
spotlight), so that each object has its own light.
For the 'black' object you could then make it white or grey with 'finish 
{ambient 0}', so that only the illuminated bit showed up.

Regards,
Chris B.


Post a reply to this message

From: Tim Attwood
Subject: Re: Tricky Light
Date: 2 Jul 2008 22:05:57
Message: <486c3405$1@news.povray.org>
Add a normal to a black texture, then
there will be some highlights from a flat
surface...

   texture {
      pigment {
         Gray05
      }
      normal {
         granite
         scale 0.005
      }
      finish {
         specular 0.3
         roughness 0.02
      }
   }


Post a reply to this message

From: Alain
Subject: Re: Tricky Light
Date: 3 Jul 2008 19:38:30
Message: <486d62f6$1@news.povray.org>
Woody nous illumina en ce 2008-07-02 00:05 -->
> I'm trying to cast a light on a black surface such as
> 
> box{ -50, 50 scale x/500 pigment{color Black}}
> 
> 
>   light_source {
>     30*x, Red
>     projected_through { sphere{20*x, 1} }
>   }
> 
> but shining any light on a black surface and the light will not reflect (that is
> it has not effect)
> 
> However, I want to have an effect like shining a red light on a white wall where
> that light source is the only light scen. (or shining a white light on a red
> surface, again the only light source in the scene.) So it will appear that the
> surface is black and the light is red.
> 
> But I can't do that because I need to create a white object, such as
> 
> sphere{10*x,3 pigment{color White}}
> 
> However, in order to have that visible I would need to have an additional white
> light somewhere in the scene, which would illuminate the true pigment of the
> wall I'm trying to make look black.
> 
> Any ideas?
> 
> 
> 
> 
There is almost no "true" black in the real world. Replace your black with a 
very dark gray, like Gray05 or rgb 0.02.
You can use a second, shadowless, light placed behind the black object or add 
"no_shadow" to that wall.
You can use a very tight spotlight.
You can put your object and a light in a light_group. That light will not shine 
on any object outside it's group.

-- 
Alain
-------------------------------------------------
At twenty years of age the will reigns; at thirty, the wit; and at forty, the 
judgment.
Benjamin Franklin


Post a reply to this message

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