POV-Ray : Newsgroups : povray.unofficial.patches : pass_through in looks_like Server Time
2 Sep 2024 08:15:23 EDT (-0400)
  pass_through in looks_like (Message 1 to 8 of 8)  
From: Sigmund Kyrre Aas
Subject: pass_through in looks_like
Date: 8 May 2000 17:50:54
Message: <391736C0.7E38A2B7@stud.ntnu.no>
I just spent two hours figuring out why I didn't get any photons when I
found that a looks_like{sphere .. statement in my light_source was to blame.
Adding pass_through for the sphere corrected this, but wouldn't it be a good
idea to have it set as default for looks_like objects?

sig


Post a reply to this message

From: Warp
Subject: Re: pass_through in looks_like
Date: 9 May 2000 05:14:17
Message: <3917d6e9@news.povray.org>
In general photons act a bit ilogically with shadowless object. When you
make an object shadowless and the light passes through that object, it's
logical to expect photons to pass through as well. I don't know why the
shadowless-keyword is ignored by the photons calculations.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Nathan Kopp
Subject: Re: pass_through in looks_like
Date: 9 May 2000 10:18:57
Message: <39181e51$1@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote...
>   In general photons act a bit ilogically with shadowless object. When you
> make an object shadowless and the light passes through that object, it's
> logical to expect photons to pass through as well. I don't know why the
> shadowless-keyword is ignored by the photons calculations.

Photon interaction with objects is a bit more complicated than shadow-ray
interaction.  However, it's not to difficutl to make no_shadow work like
pass_through.  This will decrease the amount of control you have over your
objects (currently, you can have an object that uses no_shadow but not
pass_through, but if I make this change then you will not be able to use the
no_shadow feature without the pass_through feature).  Comments?

-Nathan


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: pass_through in looks_like
Date: 9 May 2000 10:24:38
Message: <39181FA7.42DD8F21@stud.ntnu.no>
Warp wrote:
> 
>   In general photons act a bit ilogically with shadowless object. When you
> make an object shadowless and the light passes through that object, it's
> logical to expect photons to pass through as well. I don't know why the
> shadowless-keyword is ignored by the photons calculations.

Yes, well I don't know either why there's a seperate keyword for photons and
regular lights. More flexibility I guess. What I'm saying is that
pass_through could have been enabeled by default for looks_like objects,
just as shadowless is.

sig


Post a reply to this message

From: Fabian BRAU
Subject: Re: pass_through in looks_like
Date: 9 May 2000 11:25:59
Message: <39182DFD.B4AE5C89@umh.ac.be>
> (currently, you can have an object that uses no_shadow but not
> pass_through,

I think this is good because, even if this is perhaps not logical,
this allow more control and effect in a scene.

Fabian.


Post a reply to this message

From: Warp
Subject: Re: pass_through in looks_like
Date: 10 May 2000 06:31:18
Message: <39193a76@news.povray.org>
Nathan Kopp <Nat### [at] koppcom> wrote:
: Photon interaction with objects is a bit more complicated than shadow-ray
: interaction.  However, it's not to difficutl to make no_shadow work like
: pass_through.  This will decrease the amount of control you have over your
: objects (currently, you can have an object that uses no_shadow but not
: pass_through, but if I make this change then you will not be able to use the
: no_shadow feature without the pass_through feature).  Comments?

  I think that a compromise could be the perfect solution:

  By default, applying no_shadow to an object also applies pass_through
to it.
  If you don't want photons passing through, you can specify it like this:

object
{ MyObject
  no_shadow
  photons { pass_through off }
}

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: pass_through in looks_like
Date: 10 May 2000 07:29:54
Message: <39194836.95CEEDCE@stud.ntnu.no>
Warp wrote:
>   By default, applying no_shadow to an object also applies pass_through

I agree.


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: pass_through in looks_like
Date: 10 May 2000 07:30:31
Message: <3919485B.4D943BEA@stud.ntnu.no>
Sigmund Kyrre Aas wrote:
> 
> Yes, well I don't know either why there's a seperate keyword for photons and
> regular lights. More flexibility I guess. What I'm saying is that
> pass_through could have been enabeled by default for looks_like objects,
> just as shadowless is.
> 
> sig

Sorry, replace shadowless with no_shadow.


Post a reply to this message

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