[BUG] SSS => darker image

Feature requests, bug reports and related discussion
User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

[BUG] SSS => darker image

Post by Zom-B » Fri Mar 19, 2010 6:08 am

The image should explain the problem quite good:
jam-jar.gif
jam-jar.gif (380.25 KiB) Viewed 6417 times
Both scenes rendered with same tonemapping: Camera!
Very interesting is the bright specular reflections on the top of the glass!!!!
MLT + BiDir was used for both renderings.



here are both materials:

Basic jam

Code: Select all

    <medium>
        <name>Medjam_mid4</name>
        <precedence>2</precedence>
        <basic>
            <ior>1.350000</ior>
            <cauchy_b_coeff>0.000000</cauchy_b_coeff>
            <absorption_coefficient_spectrum>
                <rgb>
                    <rgb>9.999999 45.000000 45.000000</rgb>
                    <gamma>1.000000</gamma>
                </rgb>
            </absorption_coefficient_spectrum>
        </basic>
    </medium>
    <material>
        <name>jam_mid4</name>
        <specular>
            <internal_medium_name>Medjam_mid4</internal_medium_name>
            <transparent>true</transparent>
        </specular>
    </material>
SSS jam

Code: Select all

    <medium>
        <name>Medjam_mid4</name>
        <precedence>2</precedence>
        <basic>
            <ior>1.350000</ior>
            <cauchy_b_coeff>0.000000</cauchy_b_coeff>
            <absorption_coefficient_spectrum>
                <rgb>
                    <rgb>9.999999 45.000000 45.000000</rgb>
                    <gamma>1.000000</gamma>
                </rgb>
            </absorption_coefficient_spectrum>
            <subsurface_scattering>
                <scattering_coefficient_spectrum>
                    <rgb>
                        <rgb>10.000000 0.000000 0.000000</rgb>
                        <gamma>1.000000</gamma>
                    </rgb>
                </scattering_coefficient_spectrum>
                <phase_function>
                    <uniform />
                </phase_function>
            </subsurface_scattering>
        </basic>
    </medium>
    <material>
        <name>jam_mid4</name>
        <specular>
            <internal_medium_name>Medjam_mid4</internal_medium_name>
            <transparent>true</transparent>
        </specular>
    </material>
polygonmanufaktur.de

Soup
Posts: 444
Joined: Sat Jun 13, 2009 1:20 am

Re: [BUG] SSS => darker image

Post by Soup » Fri Mar 19, 2010 9:00 am

Could it be that SSS creates more engery loss in the light rays, resulting in a darker image? Instead of just plain absorption and reflections?

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: [BUG] SSS => darker image

Post by Zom-B » Fri Mar 19, 2010 9:22 am

its on you to answer this.... I'm not a employee of Glare :lol:
polygonmanufaktur.de

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Re: [BUG] SSS => darker image

Post by PureSpider » Fri Mar 19, 2010 11:31 am

This also was reported multiple times yet, the last one I remember was with meelis' blood material (see the comments)
Ono...?
Oh and btw, what about this bug, maybe this is related?

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: [BUG] SSS => darker image

Post by Zom-B » Fri Mar 19, 2010 1:47 pm

Nice list of links spidey :)

I remember about this issue being mentioned...
But as nothing happened since this time and I just had a "proof of bug scenario" here, I posted it :)
I hope this one here will find its way into the bugtracker now -.-
polygonmanufaktur.de

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: [BUG] SSS => darker image

Post by Meelis » Sat Mar 20, 2010 12:21 am

I wonder, is the SSS version lighter with ray nudge -4 if u used default -5 before.
Because image gets brighter the more u render, and i just noticed it's bad to use -6 for specular because i just cant see other objects through it, even after 50 hours. But using default ray nudge i can see through and the image brightness increases with larger steps.

Soo if it's time u need and SSS slows it down then even if image doesn't look noisy u can see there aint made soo mutch work on it.

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: [BUG] SSS => darker image

Post by CTZn » Sat Mar 20, 2010 1:31 am

Meelis wrote:ray nudge -4
Just a note: ray nudge distance can not be negative, and default applies because wrong values can MESS with renders.

This said Meelis you mentioned one possible explanation for this "bug", let me explain how I understand this. I want to be corrected by experts but there's some logic behind the reasoning.

You said that scenes were going brighter while converging; this is always true because more light as been cast. Now, what is SSS doing in the scene ? Basically, each ray entering the medium can bounce into the material an arbitrary number of times.

In that case of internal scattering, obviously each computation is not contributing to the scene lighting, and that's correct in regard with a finite computing power, as opposed to in reality. Furthermore, each bounce weakens the ray.

Non uniform SSS is the slowest to render and you know that already :)

Does that make sense ?

This is somewhat comparable with how Oren-Nayar is looking darker with higher sigma, because energy distribution has changed over the surface; with SSS, energy distribution is changed over the scene*.

As Meelis suggested it should converge as expected, it's not a bug but the result of a finite computing power :) Acting on this would induce some bias/issues for sure.

e: Best work-around I think: compensate paths not contributing to the scene lighting with film sensivity.

* in unbiased renderers, when you change one material you are changing the energy balance of the whole scene.
obsolete asset

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: [BUG] SSS => darker image

Post by Meelis » Sat Mar 20, 2010 3:23 am

:D
My bad, i shortened from the x 10^-5
For me, CTZn explanation seems correct.

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: [BUG] SSS => darker image

Post by fused » Sat Mar 20, 2010 3:06 pm

i'm not sure if this is a bug. like soup said: due to the sss, more light gets absorbed.

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: [BUG] SSS => darker image

Post by Zom-B » Sat Mar 20, 2010 9:48 pm

fused wrote:i'm not sure if this is a bug. like soup said: due to the sss, more light gets absorbed.
so if I put a big pot of Strawberry Jam in a room photos of it get darker and also light get dimmer... :lol:
You telling me that SSS in Indigo has the same characteristics like a black hole?

compared to RL this is a Bug for sure!
polygonmanufaktur.de

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: [BUG] SSS => darker image

Post by Meelis » Sat Mar 20, 2010 10:15 pm

Maybe light loves too mutch Strawberry Jam.
How about dewberry jam. :lol:

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Re: [BUG] SSS => darker image

Post by PureSpider » Sat Mar 20, 2010 11:00 pm

Zom-B wrote:
fused wrote:i'm not sure if this is a bug. like soup said: due to the sss, more light gets absorbed.
so if I put a big pot of Strawberry Jam in a room photos of it get darker and also light get dimmer... :lol:
You telling me that SSS in Indigo has the same characteristics like a black hole?

compared to RL this is a Bug for sure!
Hm but compared to RL you have inf. spp there...
Try and let your image render to eternity (see CTZn explanation), eventually it will come out the same brightness then? ( :lol: )

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: [BUG] SSS => darker image

Post by Zom-B » Sun Mar 21, 2010 3:57 am

PureSpider wrote:Try and let your image render to eternity (see CTZn explanation), eventually it will come out the same brightness then? ( :lol: )
no it shouldn't... the sss material absorbs here ~15% of the light... also sample count drops.
With more agressive SSS settings sample count goes down to some few hundreds and image gets nearly black.

SSS has a black hole feature 8)
polygonmanufaktur.de

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: [BUG] SSS => darker image

Post by Meelis » Sun Mar 21, 2010 7:26 am

It's not only black hole. :wink:
metropolis, bidirectional, camera, aperture diffraction
Image

Test it:----->

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
<medium>
<name>Device</name>
<precedence>1</precedence>
<basic>
<ior>2.44947</ior>
<cauchy_b_coeff>0.1</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<regular_tabulated>
<start_wavelength>3.5201e-007</start_wavelength>
<end_wavelength>7.4587e-007</end_wavelength>
<num_values>18</num_values>
<values>4.6923 4.6733 4.661 4.6541 4.6453 4.6332 4.6204 4.6075 4.5951 4.5834 4.5728 4.5631 4.5539 4.5447 4.535 4.5244 4.5126 4.5004</values>
</regular_tabulated>
</absorption_coefficient_spectrum>
<subsurface_scattering>
<scattering_coefficient_spectrum>
<uniform>
<value>10</value>
</uniform>
</scattering_coefficient_spectrum>
<phase_function>
<henyey_greenstein>
<g_spectrum>
<uniform>
<value>0.9</value>
</uniform>
</g_spectrum>
</henyey_greenstein>
</phase_function>
</subsurface_scattering>
</basic>
</medium>
<material>
<name>Device</name>
<specular>
<internal_medium_name>Device</internal_medium_name>
<transparent>true</transparent>
<layer>0</layer>
</specular>
</material>
</scenedata>
Attachments
Device.pigm
(617 Bytes) Downloaded 191 times

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: [BUG] SSS => darker image

Post by OnoSendai » Sun Mar 21, 2010 4:26 pm

Interesting. It may be due to MLT initialisation struggling on the trickier case of SSS, and estimating the average path luminance incorrectly.

Post Reply
22 posts

Who is online

Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot] and 22 guests