POV-Ray : Newsgroups : povray.general : photons & reflection Server Time
5 Aug 2024 02:24:52 EDT (-0400)
  photons & reflection (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Tom Melly
Subject: Re: photons & reflection
Date: 23 Jan 2003 08:55:09
Message: <3e2ff43d@news.povray.org>
"stelzenegger" <ste### [at] gmxde> wrote in message
news:web.3e2fcba7aa5a7cdc25152d880@news.povray.org...

<snip>

Well, I'm not getting perfect results, but the problem seems to be that you need
to specify target for the media - however, you can't specify target for global
media, so you will need to place your media in a container. e.g.:

box{
  0,10
  pigment{rgbf 1}
  hollow
  interior{media{scattering{1,0.2} method 3}}
  photons{target}
}

... you might want someone who actually knows what they are doing to comment.


Post a reply to this message

From: stelzenegger
Subject: Re: photons & reflection
Date: 23 Jan 2003 10:10:10
Message: <web.3e3004d5aa5a7cdc2278e9910@news.povray.org>
I thought media was developed to do without those containers. Actually it's
quite hard to get them right especially in animations.

stelzenegger


Post a reply to this message

From: Johannes Dahlstrom
Subject: Re: photons & reflection
Date: 23 Jan 2003 10:15:43
Message: <3e30071e@news.povray.org>
Tom Melly wrote:

> Well, I'm not getting perfect results, but the problem seems to be that
> you need to specify target for the media - however, you can't specify
> target for global media, so you will need to place your media in a
> container. e.g.:
> <snip>

If media photons are turned on in global media settings, they're also 
turned on by default in all object medias in the scene.  The reason that 
photons work only with contained medias is probably that in an infinite 
media, a potentially infinite number of photons would have to be calculated 
and stored. The docs don't seem to mention this anywhere, though.


Post a reply to this message

From: Tom Melly
Subject: Re: photons & reflection
Date: 23 Jan 2003 12:08:04
Message: <3e302174@news.povray.org>
"Johannes Dahlstrom" <sad### [at] tkukoulufi> wrote in message
news:3e30071e@news.povray.org...
>
> If media photons are turned on in global media settings, they're also
> turned on by default in all object medias in the scene.  The reason that
> photons work only with contained medias is probably that in an infinite
> media, a potentially infinite number of photons would have to be calculated
> and stored. The docs don't seem to mention this anywhere, though.


Makes sense - so stelz., the critical thing is to put the media in a container
(you don't need to make the container a target - that was a red-herring*)

* I wrapped the media in a container *so* that I could add target, and assumed,
when the beam showed up, that the target attrib. was wot did it, rather than the
fact of the container.


Post a reply to this message

From: Slime
Subject: Re: photons & reflection
Date: 23 Jan 2003 18:13:00
Message: <3e3076fc$1@news.povray.org>
> Makes sense - so stelz., the critical thing is to put the media in a
container
> (you don't need to make the container a target - that was a red-herring*)


FYI, the reason that the spotlight works but the photons don't is that
spotlights change the way media is sampled, by forcing the media to take
some samples in the spotlight.

In general, infinite media is a bad idea, in my experience. It never really
works like you expect it to.

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


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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