"color sigma_a"

Discussions about LuxRender's materials, and how to make the most of them.

Moderator: coordinators

"color sigma_a"

Postby Meelis » Mon Jan 30, 2012 4:11 am

Hi

Lets say i want to use absorption
[0.00000717 0.00000063 0.00000047]

Then i input in LuxBlend
[0.71703359 0.06316786 0.04673223]
with scale 0.00001

But in exported file i find
"color sigma_a" [0.00000333 0.00002762 0.00003063]

Is this correct?
User avatar
Meelis
 
Posts: 873
Joined: Sat Oct 17, 2009 2:16 am

Re: "color sigma_a"

Postby SATtva » Mon Jan 30, 2012 8:17 am

Gamma correction?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5495
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: "color sigma_a"

Postby Meelis » Mon Jan 30, 2012 8:55 am

SATtva wrote:Gamma correction?


I see, perhaps you are right.
User avatar
Meelis
 
Posts: 873
Joined: Sat Oct 17, 2009 2:16 am

Re: "color sigma_a"

Postby Lord Crc » Mon Jan 30, 2012 9:36 am

If you're using luxblend25, then by default it does "color at depth".

Currently the only way to bypass this is to texture the sigma parameter, and use a constant color texture as input, with your values.

I think perhaps we should check if the "at depth" value is zero, if so use the input as is, and only apply the scale?
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: "color sigma_a"

Postby Meelis » Mon Jan 30, 2012 12:17 pm

Thx Lord Crc

Yes luxblend 2.5

I test the constant color texture way.
Is it "fresnel color" (reflectance color) texture i have to use?

Color at depth is reverse value
My Color R255 G22 B17 (red)
Exported color R28 G230 B255 (blue-greenish)
Soo = renders correct (atlest lexblend preview is red), i figured asorption is also reversed, but it's not.
User avatar
Meelis
 
Posts: 873
Joined: Sat Oct 17, 2009 2:16 am

Re: "color sigma_a"

Postby J the Ninja » Mon Jan 30, 2012 12:32 pm

No, this is the color at depth formula:

Code: Select all
depthed = (-math.log(max([(float(i)),1e-30]))/(self.depth)) * self.absorption_scale * ((float(i))==1.0 and -1 or 1)


:P

What you need is the "color" version of the constant texture...except that isn't exposed in luxblend25. :?

Really, the color at depth system in lb25 needs to be overhauled a bit. It should also be using the colordepth texture instead of doing the conversion itself, since that would allow "texture at depth". I was thinking maybe have a checkbox for "color at depth" which uses the colordepth texture if enabled, or simply exports the value if disabled, then either way runs things through a scale texture to handle the absorption scale.
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: "color sigma_a"

Postby Meelis » Mon Jan 30, 2012 1:11 pm

Checkbox would be nice.
User avatar
Meelis
 
Posts: 873
Joined: Sat Oct 17, 2009 2:16 am

Re: "color sigma_a"

Postby Lord Crc » Mon Jan 30, 2012 2:28 pm

J the Ninja wrote:What you need is the "color" version of the constant texture...except that isn't exposed in luxblend25. :?


Well that's dumb :D I mean it shouldn't be useful most of the time, but why not have it there?

J the Ninja wrote:Really, the color at depth system in lb25 needs to be overhauled a bit. It should also be using the colordepth texture instead of doing the conversion itself, since that would allow "texture at depth". I was thinking maybe have a checkbox for "color at depth" which uses the colordepth texture if enabled, or simply exports the value if disabled, then either way runs things through a scale texture to handle the absorption scale.


Could we use a dropdown? Then we could have "color at depth" or "sigma".
If color at depth is shown we have the regular color + T button and the "at depth" field, while "sigma" shows r,g,b text inputs like asymmetry, and the scale input.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm


Return to Materials Help

Who is online

Users browsing this forum: No registered users and 0 guests