Page 1 of 3

Indigo v0.7 test 2

Posted: Fri Jan 19, 2007 4:58 am
by OnoSendai
Not too many changes this time, mostly fixing + improving the SSS.
There are some important improvements to the Phong model tho.
Also there's a new antialiasing option. (super_sample_factor)

http://www.indigorenderer.com/montecarl ... _test2.zip

Please point out any bugs!


Changelog:

v0.7 test 2
* reverse gamma correcting diffuse and phong diffuse RGB colours
* improved phong sampling
* increased max albedo for diffuse and phong substrate to 0.9
* diffuse colour for diffuse and phong materials now not used when an albedo texture is used.
* added henyey_greenstein phase function
* fixed crash with SSS and no area lights.
* improved SSS russian roulette
* added super_sample_factor option to inifile.
* added display_period option to inifile.
EDIT(something i forgot): fixed energy loss issue in SSS media, causing darkening in highly scattering media.

About super_sample_factor:
This can be set in the inifile.txt.
It basically renders the image internally at a higher res, then downsamples it just before display and disk save time.
Should help aliasing around bright edges a bit; the downside is that it uses lots of RAM (image buffer ram usage is proportional to super_sample_factor squared).
Set it to 2 if you can spare the RAM, 3 or 4 is probably overkill, 1 is no change from before.

more info to follow soon.

EDIT:
Here's an example of a medium using the new Henyey-Greenstein phase function:

Note that the g parameter may vary with wavelength (e.g. g_spectrum could be a RGB spectrum), but here it is a constant with value 0.9, which corresponds to strong forwards scattering.

Code: Select all

<medium> 
		<name>medium1</name> 
       
		<ior>1.0</ior> 
		<cauchy_b_coeff>0.0</cauchy_b_coeff> 
		<precedence>20</precedence> 
			
		<absorption_coefficient_spectrum> 
			<rgb> 
				<rgb>0 0 0</rgb> 
			</rgb> 
		</absorption_coefficient_spectrum> 
       
		<subsurface_scattering> 
			<scattering_coefficient_spectrum> 
				<uniform>
					<value>500</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> 
	</medium> 

Posted: Fri Jan 19, 2007 5:05 am
by zsouthboy
Nick, I would like to have your man-babies.

:D

Awesome!

Posted: Fri Jan 19, 2007 5:06 am
by OnoSendai
zsouthboy wrote:Nick, I would like to have your man-babies.

:D

Awesome!
lol :)

:)

Posted: Fri Jan 19, 2007 5:41 am
by domparis
Exellent nick, your are a king !!

Now let's fire some tests renders :)

Dom

Posted: Fri Jan 19, 2007 5:47 am
by manitwo
yeahh :mrgreen: :twisted:

Posted: Fri Jan 19, 2007 5:58 am
by DaveC
This is great! What does Henyey Greenstein do? :?:

Posted: Fri Jan 19, 2007 6:09 am
by CTZn
Cool cool cool !

Posted: Fri Jan 19, 2007 6:13 am
by manitwo
DaveC wrote:What does Henyey Greenstein do?
Google wrote:The Henyey-Greenstein phase function is often used to characterize the angular distribution of scattered light ...
:wink:

Re: ======== Indigo v0.7 test 2 =========

Posted: Fri Jan 19, 2007 6:28 am
by manitwo
OnoSendai wrote:Please point out any bugs!
i'm not 100% sure but "blend_material_test.xml" give me a strange result :?

Posted: Fri Jan 19, 2007 6:29 am
by CTZn
Well, thats not what I call an explanation manitwo :lol:

Nick did that better I think:
it is a [...] value [...] which corresponds to [...] forwards scattering.
My try to explain, should be inaccurate: The higher the value, the higher the amount of light that will appear in the opposite side of the object, relative to the light source.

Posted: Fri Jan 19, 2007 8:11 am
by Pinko
Tnx Ono!!!
Pinko. :wink:

Re: ======== Indigo v0.7 test 2 =========

Posted: Fri Jan 19, 2007 8:29 am
by Zom-B
Damn Damn Damn!!!!
Since 0.7t1 I'm playing around with it all the Day, getting nothing else done,
and now you are doing this to me.. another Indigo Week just started today *g* :lol:
OnoSendai wrote:* added henyey_greenstein phase function
Does this mean we can use the "Avarage Cosine (g)" Values in this Paper, just like they are?
And does a - (minus) for g means a 0 or no number?

Thanks a lot for "display_period", this is very handy!!!

Posted: Fri Jan 19, 2007 8:34 am
by OnoSendai
Yup, u can use the 'g' values from the paper.

Posted: Fri Jan 19, 2007 8:37 am
by Phil
hi,

:D really nice to see how dynamic, is the developpment here!
Much thanks, I will test some features on the weak-end.

Regards, Phil

Posted: Fri Jan 19, 2007 8:44 am
by Kosmokrator
:) :) :D Ono makes people smile!thnx