Transform Scattering Scale

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

Moderator: coordinators

Transform Scattering Scale

Postby Meelis » Sat Nov 26, 2011 12:32 pm

Hi :)

Stupid question but how to i scale homogeneous volume scale?

I have reall world scene and scattering scale 0.002
It's around 20m

Now i have scene 0.132m, thats ~151 x smaller.
How to i scale the 0.002 value up for 151 x smaller scene for same look, just linearly like 0,002 x 151?
User avatar
Meelis
 
Posts: 876
Joined: Sat Oct 17, 2009 2:16 am

Re: Transform Scattering Scale

Postby jeanphi » Sun Nov 27, 2011 5:04 am

Hi,

Yes, the scattering net effect follows exp(-d*s) where d is the distance traveled and s is the scattering factor.

Jeanphi
jeanphi
Developer
 
Posts: 6580
Joined: Mon Jan 14, 2008 7:21 am

Re: Transform Scattering Scale

Postby Pilchard123 » Sun Nov 27, 2011 5:24 am

Is exp(p) equal to e^p?
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am

Re: Transform Scattering Scale

Postby jeanphi » Sun Nov 27, 2011 5:31 am

Hi,

Well yes, I think that's how it is expressed in most (all?) computing languages and calc machines.

Jeanphi
jeanphi
Developer
 
Posts: 6580
Joined: Mon Jan 14, 2008 7:21 am

Re: Transform Scattering Scale

Postby Pilchard123 » Sun Nov 27, 2011 5:37 am

I think there's one or two that use exp(x,y) to mean x^y. Can't remember any off the top of my head though. Now I think of it, isn't LuxRender written in some C variety, so would probably use pow(x,y) for x^y...
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am

Re: Transform Scattering Scale

Postby Meelis » Sun Nov 27, 2011 11:42 am

Thanks jeanphi and Pilchard123. :)
User avatar
Meelis
 
Posts: 876
Joined: Sat Oct 17, 2009 2:16 am


Return to Materials Help

Who is online

Users browsing this forum: No registered users and 0 guests