POV-Ray : Newsgroups : povray.binaries.images : Question about light groups Server Time
17 Aug 2024 02:28:21 EDT (-0400)
  Question about light groups (Message 1 to 7 of 7)  
From: Ruy
Subject: Question about light groups
Date: 11 Nov 2001 07:06:23
Message: <3bee69bf@news.povray.org>
I have some questions about light groups.

In this scene I have a white sphere iluminated by red light, both forming a
light group. I also have a white light iluminating the global scene. The
plane is correctly unnaffected by the red light: the sphere casts no shadow
resulting from this red light. Now here is what seems odd to me. If the
white light is, in this case, the global light, and I have the command
global_lights set to off, how come the white light still interacts with the
sphere, causing it to cast a shadow on the plane? Is this really the
intended behaviour? If so, is there a reason for it being so?

Ruy

========================

Here is the code:

#declare RedLight = light_source {
  <-5,5,-5>
  rgb <1,0,0>
}

camera{
  location <0, 5, -10>
  look_at 0
}

light_source { y*100 rgb 1 }

light_group {
  light_source {RedLight}
  sphere {0,1 pigment {rgb 1}}
  global_lights on
}

plane { y, -2 pigment { rgb 1 } }


Post a reply to this message


Attachments:
Download 'light group test.jpg' (8 KB)

Preview of image 'light group test.jpg'
light group test.jpg


 

From: Tony[B]
Subject: Re: Question about light groups
Date: 11 Nov 2001 10:01:36
Message: <3bee92d0@news.povray.org>
> How come the white light still interacts with the
> sphere, causing it to cast a shadow on the plane? Is this really the
> intended behaviour? If so, is there a reason for it being so?

I'm not sure why it does it, but using no_shadow in your sphere {} block
fixes it.


Post a reply to this message

From: Ruy
Subject: Re: Question about light groups
Date: 11 Nov 2001 11:52:07
Message: <3beeacb7@news.povray.org>
> I'm not sure why it does it, but using no_shadow in your sphere {} block
> fixes it.

Yes, I realize this, but what I'm trying to achieve here is control over the
shadows. For my real scene, I have set three different light sources, but I
only wanted some of them to cast shadows. I thought I could achieve this
with light groups, but it doesn't seem so. If I use no_shadow, all my
shadows are gone, and I need some of them.

On the example I gave, is there a way to iluminate the ground plane and
still avoid the shadow that the white light currently forces the sphere to
cast over it?

Ruy


Post a reply to this message

From: Lutz-Peter Hooge
Subject: Re: Question about light groups
Date: 11 Nov 2001 12:33:08
Message: <MPG.1658d4cf50f4f9e89896b2@news.povray.org>
In article <3bee69bf@news.povray.org>, ruy### [at] hipernetcombr says...

> global_lights set to off, how come the white light still interacts with the
> sphere, causing it to cast a shadow on the plane? 

Even worse: a global light will cast a shadow from an object A in 
lightgroup X on an object B in lightgroup Y, but another object C in 
lightgroup X  wich is directly behind B (from the view of A), will not be 
shadowed by A, neither by the global light, nor by a light_source in 
light_group X, wich is in the same location as the global light. 
"global_lights off" is specified for X. 

Irritating, isn't it ;-)


Post a reply to this message

From: Tony[B]
Subject: Re: Question about light groups
Date: 11 Nov 2001 16:18:41
Message: <3beeeb31@news.povray.org>
> On the example I gave, is there a way to iluminate the ground plane and
> still avoid the shadow that the white light currently forces the sphere to
> cast over it?

Make the light shadowless?


Post a reply to this message

From: Ruy
Subject: Re: Question about light groups
Date: 11 Nov 2001 17:04:13
Message: <3beef5dd@news.povray.org>
> Make the light shadowless?

Yup, it'll have to do. Truth is I wanted some of the objects to cast a
shadow for that particular light, while some I would like to remain
shadowless for the same light, but not for others. *sigh*

Gracias, anyway :o)

Ruy


Post a reply to this message

From: Tony[B]
Subject: Re: Question about light groups
Date: 11 Nov 2001 20:36:22
Message: <3bef2796@news.povray.org>
You might have to have several lights repeated in the same spot, but in
different light groups and with shadowless on and off. If you could
illustrate the effect, I could try to figure something out for you.

PS: De nada. :)


Post a reply to this message

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