POV-Ray : Newsgroups : povray.binaries.images : sslt and area light Server Time
8 Nov 2024 08:19:46 EST (-0500)
  sslt and area light (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: James Holsenback
Subject: sslt and area light
Date: 7 Mar 2013 09:47:59
Message: <5138a89f@news.povray.org>
There seems to be a problem using sslt with area lights ...

The first image is after 24hrs render time, it has photons, sslt and 
area light.

The 2nd image has same settings, with the exception of sslt turned off. 
The photon map was loaded using the data generated from the 1st image.

The 3rd image was just with sslt (no area light, no photons) ... I ran 
it only long enough to see the beginnings of the sslt effect.

The 4th image is with sslt and area light (no photons)


Post a reply to this message


Attachments:
Download 'phandsslt.png' (78 KB) Download 'phonly.png' (89 KB) Download 'ssltonly.png' (89 KB) Download 'ssltandarea.png' (26 KB)

Preview of image 'phandsslt.png'
phandsslt.png

Preview of image 'phonly.png'
phonly.png

Preview of image 'ssltonly.png'
ssltonly.png

Preview of image 'ssltandarea.png'
ssltandarea.png


 

From: clipka
Subject: Re: sslt and area light
Date: 7 Mar 2013 10:19:49
Message: <5138b015$1@news.povray.org>
Am 07.03.2013 15:47, schrieb James Holsenback:
> There seems to be a problem using sslt with area lights ...
>
> The first image is after 24hrs render time, it has photons, sslt and
> area light.
>
> The 2nd image has same settings, with the exception of sslt turned off.
> The photon map was loaded using the data generated from the 1st image.
>
> The 3rd image was just with sslt (no area light, no photons) ... I ran
> it only long enough to see the beginnings of the sslt effect.
>
> The 4th image is with sslt and area light (no photons)

What settings are you using? (Size of the object, mm_per_unit setting, 
subsurface translucency setting, ior, distance and parameters of the 
light source)


Post a reply to this message

From: clipka
Subject: Re: sslt and area light
Date: 7 Mar 2013 10:41:58
Message: <5138b546@news.povray.org>
Am 07.03.2013 15:47, schrieb James Holsenback:
> There seems to be a problem using sslt with area lights ...

Can't confirm this here.


Post a reply to this message

From: James Holsenback
Subject: Re: sslt and area light
Date: 7 Mar 2013 11:11:20
Message: <5138bc28$1@news.povray.org>
On 03/07/2013 10:19 AM, clipka wrote:
> Am 07.03.2013 15:47, schrieb James Holsenback:
>> There seems to be a problem using sslt with area lights ...
>>
>> The first image is after 24hrs render time, it has photons, sslt and
>> area light.
>>
>> The 2nd image has same settings, with the exception of sslt turned off.
>> The photon map was loaded using the data generated from the 1st image.
>>
>> The 3rd image was just with sslt (no area light, no photons) ... I ran
>> it only long enough to see the beginnings of the sslt effect.
>>
>> The 4th image is with sslt and area light (no photons)
>
> What settings are you using? (Size of the object, mm_per_unit setting,
> subsurface translucency setting, ior, distance and parameters of the
> light source)
>

SSLT globals:
#declare _scale = 6.35;
mm_per_unit _scale
	#if (Subsurface)
		subsurface { samples 300,30 #if (UseRad) radiosity on #end }
	#end

The object:
#declare Base =
union {
	difference {
		cylinder { <0,0,0>, <0,1,0>, 3.25 }
		torus { 3.25, 0.25 translate y*1 }
		torus { 3, 0.0625/2 translate y*1 }
		torus { 3.25, 0.0625/2 translate y*0.75 }
		torus { 3.25, 0.0625 }
		}
	torus { 3.23, 0.0623/3 translate y*(0.75-0.015625) material { Band_ } }
	torus { 2.98, 0.0623/3 translate y*(1-0.015625) material { Band_ } }
	material {	
		texture {
			pigment {
				gradient y
				scale 1.000001
				color_map {
					[0.0 srgb 0.25]
					[1.0 srgb 1.0]
					}
				}
			finish {
				diffuse 0.6
				specular 0.075
				roughness 0.1
				#if (Subsurface)
					subsurface { translucency srgb 0.75 }
				#end
				}
			}
		interior { ior 1.3 }
		}
	
	translate y*-1
	}

I'm using two light sources the one that's and area light is as follows:
// -- The Back Light
#declare LightPos = <0,0,-20>;
#declare LightDist = vlength(LightPos-<0,0,10>);
#declare FadeDist = 0.056;
#declare FadePower = 2;

#declare AreaLight = yes;
#declare SpotLight = no;
#declare ParaLight = no;

#if (Debug)
	#debug concat ("\nBack:\nFade Distance: ", str(FadeDist,2,4))
	#debug concat ("\nLight Distance: ", str(LightDist,5,4)," \n")
	#debug concat ("Light Intensity: ", str(Intensity (LightDist, FadeDist, 
FadePower),6,4), "\n\n")
#end

#declare Back_Light =
light_source {
	#declare LightColor = srgb 1;
	0, LightColor *  (Intensity (LightDist, FadeDist, FadePower)/2)
	#if (Debug)
		looks_like {sphere {0,2 pigment { srgb 1 } } finish {emission srgb 
<0,1,0>}}
	#end
	#if (ParaLight)
		parallel
	#end
	#if (SpotLight)
		spotlight
	#end
	#if (AreaLight)
		area_light x*0.45,y*0.45, 10,10 adaptive 1 jitter orient circular
		area_illumination on
	#end
	fade_distance FadeDist
	fade_power FadePower
	media_interaction on
	media_attenuation on
	translate LightPos
	#if (ParaLight)
		point_at <0,0,0>
	#end
	#if (SpotLight)
		point_at <0,0,0>
		radius 10
		falloff 12
		tightness 0
	#end
	#if (UsePhotons)
		photons { reflection on refraction on #if (AreaLight) area_light #end }
	#end
	}

the camera originates at -z20 but is rotated x*27.5 then y*330 look_at 
<-1,0,0>

light source: object { Back_Light rotate x*50 rotate y*225 }

the base is at orgin


Post a reply to this message

From: James Holsenback
Subject: Re: sslt and area light
Date: 7 Mar 2013 11:46:48
Message: <5138c478$1@news.povray.org>
On 03/07/2013 10:41 AM, clipka wrote:
> Am 07.03.2013 15:47, schrieb James Holsenback:
>> There seems to be a problem using sslt with area lights ...
>
> Can't confirm this here.
>

Before I stumbled onto the perceived problem, I also noticed something 
else ... perhaps helpful.

I wanted (rightly or wrongly) to first generate the photon map using 
area light but no sslt on the base, then load the map and pick up the 
sslt (with area light off) in another pass ... well it appeared to load 
the photon map ok, but when it was done rendering the sslt had 
completely wiped out the appearance of the photons on the base. Since 
the area light was /off/ the sslt effect looked quite nice, but like I 
said photons ... nada.


Post a reply to this message

From: clipka
Subject: Re: sslt and area light
Date: 8 Mar 2013 03:16:01
Message: <51399e41@news.povray.org>
With your settings to start with, I've managed to reproduce the problem. 
It looks like it is a combination of three factors:

- area_illumination
- fade_distance & fade_power
- subsurface

Apparently the area_illumination code fails to respect the fade_distance 
& fade_power settings when computing illumination for subsurface 
scattering materials.


Post a reply to this message

From: clipka
Subject: Re: sslt and area light
Date: 8 Mar 2013 04:00:12
Message: <5139a89c@news.povray.org>
Am 07.03.2013 15:47, schrieb James Holsenback:
> There seems to be a problem using sslt with area lights ...

Jim, you may want to test-drive change #5846.


Post a reply to this message

From: James Holsenback
Subject: Re: sslt and area light
Date: 8 Mar 2013 08:39:33
Message: <5139ea15$1@news.povray.org>
On 03/08/2013 04:00 AM, clipka wrote:
> Am 07.03.2013 15:47, schrieb James Holsenback:
>> There seems to be a problem using sslt with area lights ...
>
> Jim, you may want to test-drive change #5846.
>

the bloom problem looks like it's fixed ... i'm anxious to see if the 
photons show up properly on the subsurface area under the stone.


Post a reply to this message

From: clipka
Subject: Re: sslt and area light
Date: 8 Mar 2013 09:37:34
Message: <5139f7ae$1@news.povray.org>
Am 08.03.2013 14:39, schrieb James Holsenback:

> the bloom problem looks like it's fixed ... i'm anxious to see if the
> photons show up properly on the subsurface area under the stone.

I'd be rather surprised - I don't recall having integrated photons with 
subsurface scattering yet. But it's been a while, so let's just wait and 
see...


Post a reply to this message

From: James Holsenback
Subject: Re: sslt and area light
Date: 8 Mar 2013 12:59:18
Message: <513a26f6@news.povray.org>
On 03/08/2013 09:37 AM, clipka wrote:
> Am 08.03.2013 14:39, schrieb James Holsenback:
>
>> the bloom problem looks like it's fixed ... i'm anxious to see if the
>> photons show up properly on the subsurface area under the stone.
>
> I'd be rather surprised - I don't recall having integrated photons with
> subsurface scattering yet. But it's been a while, so let's just wait and
> see...
>

Your suspicion is correct ... besides some blending issues with the 
gradient on the base and some tweaking with the area light (all on my 
end) I'd say the bloom issue has been laid to rest. Should I log a 
fly-spray reminder concerning photon/subsurface integration?


Post a reply to this message


Attachments:
Download 'work.png' (311 KB)

Preview of image 'work.png'
work.png


 

Goto Latest 10 Messages Next 2 Messages >>>

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