POV-Ray : Newsgroups : povray.beta-test : Scattering media, lightgroups and shadowless lights Server Time
30 Jul 2024 00:27:26 EDT (-0400)
  Scattering media, lightgroups and shadowless lights (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Coridon Henshaw
Subject: Re: Scattering media, lightgroups and shadowless lights
Date: 5 Mar 2002 18:47:49
Message: <Xns91C8BF36A63E4CQ@204.213.191.226>
Peter Popov <pet### [at] vipbg> wrote in
news:khp88us6ttlb5fvqe1atehojkdhkrt8jae@4ax.com: 

> So basically what you're suggesting that objects will not cast shadows
> from shadowless lights anywhere except in scattering media? Doesn't it
> look a bit inconsistent?

As it stands, scattering media cannot be illuminated by shadowless lights.  
What I am proposing is a way to fix this problem.

Scattering media are effectively in the shadow of their own container 
object and are illuminated in part of the code in lighting.c which handles 
shadows.  Since shadowless lights by definition cast no shadows, scattering 
media is never illuminated by shadowless lights as the shadow handling code 
is never called.  What I'm suggesting is to rework a few dozen lines of 
code in lighting.c so the shadow handler is called when a shadowless light 
shines on a scattering media.  The changes will not cause shadowless lights 
to cast actual shadows (i.e. dark areas) on scattering media but rather 
will cause scattering media to be _technically_ 'shadowed' by their own 
container objects and therefore be illuminated.


Post a reply to this message

From: Coridon Henshaw
Subject: Re: Scattering media, lightgroups and shadowless lights
Date: 5 Mar 2002 18:52:53
Message: <Xns91C8C01262C84CQ@204.213.191.226>
"Slime" <noo### [at] hotmailcom> wrote in news:3c846ee9@news.povray.org:

>> So basically what you're suggesting that objects will not cast shadows
>> from shadowless lights anywhere except in scattering media? Doesn't it
>> look a bit inconsistent? 
 
> Sorry for putting words in someone's mouth, but I believe he's suggesting
> that shadowless lights don't illuminate scattering media at all.

Read the bug report I posted and render the example scene and you will see 
just that.  Shadowless lights don't illuminate scattering media.  The code 
changes I suggested are to correct this problem.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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