POV-Ray : Newsgroups : povray.binaries.images : Scattering media help Server Time
14 May 2024 17:19:52 EDT (-0400)
  Scattering media help (Message 11 to 20 of 24)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>
From: Mike Horvath
Subject: Re: Scattering media help
Date: 25 Jan 2016 15:59:58
Message: <56a68cce$1@news.povray.org>
On 1/25/2016 3:46 PM, clipka wrote:
> Am 25.01.2016 um 21:06 schrieb Mike Horvath:
>> On 1/25/2016 4:28 AM, Kenneth wrote:
>>>
>>> Here's a 'complete' scene including your scattering media (with a
>>> camera and a
>>> light-- having a LIGHT is important for seeing this media type) plus a
>>> HOLLOW
>>> container object for the media to be enclosed in. (A simple sphere
>>> here.) At
>>> least you'll see *something* now! ;-)
>>
>> I should have clarified. I can *see* the media, it is either the right
>> color but too dense if I set the scattering to <0.2,0.4,1.0>, or it is
>> properly dense but too dark. There seems to be no way to set the density
>> independently of the color.
>
> The question to be examined here is this:
>
> Is the media not to your liking because it differs from the original
> image, or because you think it looks wrong?

Because it differs from the original image. Can I lower the density 
without changing the color?


Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:15:00
Message: <56a69054@news.povray.org>
On 1/25/2016 4:00 PM, Mike Horvath wrote:
> Because it differs from the original image. Can I lower the density
> without changing the color?
>
>
> Mike


Can I use a density statement? How do I make a density function that 
simply lowers the density to 1/10 everywhere?


Mike


Post a reply to this message

From: clipka
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:22:11
Message: <56a69203$1@news.povray.org>
Am 25.01.2016 um 22:00 schrieb Mike Horvath:
> On 1/25/2016 3:46 PM, clipka wrote:
>> Am 25.01.2016 um 21:06 schrieb Mike Horvath:
>>> On 1/25/2016 4:28 AM, Kenneth wrote:
>>>>
>>>> Here's a 'complete' scene including your scattering media (with a
>>>> camera and a
>>>> light-- having a LIGHT is important for seeing this media type) plus a
>>>> HOLLOW
>>>> container object for the media to be enclosed in. (A simple sphere
>>>> here.) At
>>>> least you'll see *something* now! ;-)
>>>
>>> I should have clarified. I can *see* the media, it is either the right
>>> color but too dense if I set the scattering to <0.2,0.4,1.0>, or it is
>>> properly dense but too dark. There seems to be no way to set the density
>>> independently of the color.
>>
>> The question to be examined here is this:
>>
>> Is the media not to your liking because it differs from the original
>> image, or because you think it looks wrong?
> 
> Because it differs from the original image. Can I lower the density
> without changing the color?

I thought I had given a clear enough answer, but here it is again in a
nutshell:

Yes, you /can/ do that by reducing the "extinction" parameter. /But/
tampering with the setting will void your warranty (read: break physical
realism).


Post a reply to this message

From: Cousin Ricky
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:35:00
Message: <web.56a6948353fb38f9566b73360@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> *Someday*, I'll upgrade to a multi-core machine, and join the 20th century
> (oops, I mean the 21st century.)  ;-)

When you do, you'll wonder how you got along without one.


Post a reply to this message

From: Mike Horvath
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:35:18
Message: <56a69516$1@news.povray.org>
On 1/25/2016 4:22 PM, clipka wrote:
>> Because it differs from the original image. Can I lower the density
>> without changing the color?
>
> I thought I had given a clear enough answer, but here it is again in a
> nutshell:
>
> Yes, you /can/ do that by reducing the "extinction" parameter. /But/
> tampering with the setting will void your warranty (read: break physical
> realism).
>

I've lowered extinction to 1/100000000 and it has zero effect. Here is 
the code I am using now.

Mike


#declare atmos_material = material
{
	texture {pigment {color rgbt 1}}
	interior
	{
		media
		{
			scattering
			{
				4, rgb <0.2,0.4,1.0>/10000
				extinction	1/100000000
			}
			samples	10
		}
	}
}


Post a reply to this message

From: clipka
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:37:07
Message: <56a69583$1@news.povray.org>
Am 25.01.2016 um 22:15 schrieb Mike Horvath:
> On 1/25/2016 4:00 PM, Mike Horvath wrote:
>> Because it differs from the original image. Can I lower the density
>> without changing the color?
>>
>>
>> Mike
> 
> 
> Can I use a density statement? How do I make a density function that
> simply lowers the density to 1/10 everywhere?

Of course you can use a density statement -- you're already doing that.
To lower the density to 1/10 everywhere, all you need to do is divide
all the values in the color_map by 10 (but use rgb instead of srgb instead).

/But/ by lowering the density you not only make the background more
visible again -- you also reduce the scattering effect.

Think of it this way: If you reduce the density of a gas, you reduce the
probability that any given light ray hits a gas molecule and is diverted
from its original direction to a new one: Light en route to the camera
from the background has less chance of being diverted /away/ from the
camera, while light en route to anywhere in the scene from a light
source has less chance of being diverted /towards/ the camera.

I might also add that dividing the scattering media colour by 10 has
exactly the same effect as dividing the density values by 10.


Post a reply to this message

From: Mike Horvath
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:46:19
Message: <56a697ab$1@news.povray.org>
On 1/25/2016 4:37 PM, clipka wrote:
> Think of it this way: If you reduce the density of a gas, you reduce the
> probability that any given light ray hits a gas molecule and is diverted
> from its original direction to a new one: Light en route to the camera
> from the background has less chance of being diverted /away/ from the
> camera, while light en route to anywhere in the scene from a light
> source has less chance of being diverted /towards/ the camera.

I still don't understand why lowering the density of the gas darkens the 
scene more than not having any media at all.


Mike


Post a reply to this message

From: clipka
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:46:25
Message: <56a697b1$1@news.povray.org>
Am 25.01.2016 um 22:35 schrieb Mike Horvath:
> On 1/25/2016 4:22 PM, clipka wrote:
>>> Because it differs from the original image. Can I lower the density
>>> without changing the color?
>>
>> I thought I had given a clear enough answer, but here it is again in a
>> nutshell:
>>
>> Yes, you /can/ do that by reducing the "extinction" parameter. /But/
>> tampering with the setting will void your warranty (read: break physical
>> realism).
> 
> I've lowered extinction to 1/100000000 and it has zero effect. Here is
> the code I am using now.

Then I must confess I have no idea what you are talking about when you
say you want to "lower the density without changing the colour" because
it is "too dark" when "properly dense".

If extinction doesn't have any noticeable effect, it means that the "too
dark" effect you observe is not due to a lack of light from the
background getting through to the camera.

I must consequently assume that the "too dark" effect you observe is
instead due to a lack of light /scattered to/ the camera, but to get
more of this light you need a /higher/ density rather than a lower one.


Post a reply to this message

From: clipka
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:49:01
Message: <56a6984d$1@news.povray.org>
Am 25.01.2016 um 22:46 schrieb Mike Horvath:
> On 1/25/2016 4:37 PM, clipka wrote:
>> Think of it this way: If you reduce the density of a gas, you reduce the
>> probability that any given light ray hits a gas molecule and is diverted
>> from its original direction to a new one: Light en route to the camera
>> from the background has less chance of being diverted /away/ from the
>> camera, while light en route to anywhere in the scene from a light
>> source has less chance of being diverted /towards/ the camera.
> 
> I still don't understand why lowering the density of the gas darkens the
> scene more than not having any media at all.

Are you absolutely sure it does, and you're not seeing the effect from
any other difference?


Post a reply to this message

From: Mike Horvath
Subject: Re: Scattering media help
Date: 25 Jan 2016 16:56:24
Message: <56a69a08@news.povray.org>
On 1/25/2016 4:48 PM, clipka wrote:
> Am 25.01.2016 um 22:46 schrieb Mike Horvath:
>> On 1/25/2016 4:37 PM, clipka wrote:
>>> Think of it this way: If you reduce the density of a gas, you reduce the
>>> probability that any given light ray hits a gas molecule and is diverted
>>> from its original direction to a new one: Light en route to the camera
>>> from the background has less chance of being diverted /away/ from the
>>> camera, while light en route to anywhere in the scene from a light
>>> source has less chance of being diverted /towards/ the camera.
>>
>> I still don't understand why lowering the density of the gas darkens the
>> scene more than not having any media at all.
>
> Are you absolutely sure it does, and you're not seeing the effect from
> any other difference?
>


I've attached two renders. One is with no media at all. The other is 
with the media, but the scattering color set to rgb 0.


Mike


Post a reply to this message


Attachments:
Download 'gh_scene_spinner_cutaway_e_no_media.png' (91 KB) Download 'gh_scene_spinner_cutaway_e_zero_density.png' (77 KB)

Preview of image 'gh_scene_spinner_cutaway_e_no_media.png'
gh_scene_spinner_cutaway_e_no_media.png

Preview of image 'gh_scene_spinner_cutaway_e_zero_density.png'
gh_scene_spinner_cutaway_e_zero_density.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>

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