Page 1 of 1

Specular material: reflection and transmision?

Posted: Thu Nov 19, 2015 2:20 am
by walnist
Hi,
i'm trying to model a realistic human eye, using a physiological eye model including lenses, IORs etc. and i'm not using any exporter but generating indigo script files using a python program (the model is parameterized).

I'm trying to better understand how the reflective type of materials work, in particular to model the cornea which has material properties which are between glass and liquids.

So far the glossy-transparent worked reasonably well, but i'm now having a scene where the image of a light source ("glint") should appear reflected in the eyes, but it doesn't because the light source is shining in the eyes through a mirror.

I am under the impression that the glossy-transparent specular highlight works like in the Phong model, and it shows highlights only generated by direct rays (not reflected) is that correct?

If i want to get the glint of the reflected light source, it seems i have to use the Specular material, but i haven't found a proper way to control which percentage of the incoming light power is reflected and which is refracted.
My current workaround is to use a Blend type which includes a purely reflecting Specular material and a purely refracting Specular + transparent + Arch glass; i can then use the Blend factor to control the reflected energy vs the refracted one.
But this renders extremely slow.

Is there a proper way for the Specular material to set Reflected and Refracted ratios?
Thanks,
Walter

Re: Specular material: reflection and transmision?

Posted: Fri Nov 20, 2015 5:53 pm
by CTZn
Hi, fascinating project !

I'm pretty sure there's only IOR to manage that, it's got electrolytes. I mean, it's the way known as correct to do what you want, unless if I'm mistaking.

How far have materials been developed ? Are you using absorptions, scatterings ? Is all the Indigo vocabulary straight between us ? I'm not into physics either but would sure like to know more.

Images welcome :)

Re: Specular material: reflection and transmision?

Posted: Fri Nov 20, 2015 6:23 pm
by CTZn
I think you may be looking for a Fresnel function; specular and glossy transparent don't have that one. Phong does, but it's Phong.

Perhaps a justified request ?

Re: Specular material: reflection and transmision?

Posted: Sun Nov 22, 2015 9:33 am
by Polinalkrimizei
Please post some pics, this project sounds AMAZING!!

Re: Specular material: reflection and transmision?

Posted: Fri Nov 27, 2015 4:28 am
by walnist
Thanks guys!

The way i understand it, IOR controls only the angle of refraction (i.e. how much a "lens distortion" effect) the liquid or glass surface has; this however does not control the amount of light which gets reflected vs the amount which gets refracted (that'd be reflectance vs transmission of the surface).

Is there anybody of the Indigo developers here who could answer my question?
Cheers,

Re: Specular material: reflection and transmision?

Posted: Fri Nov 27, 2015 11:42 pm
by OnoSendai
walnist wrote:Thanks guys!

The way i understand it, IOR controls only the angle of refraction (i.e. how much a "lens distortion" effect) the liquid or glass surface has; this however does not control the amount of light which gets reflected vs the amount which gets refracted (that'd be reflectance vs transmission of the surface).

Is there anybody of the Indigo developers here who could answer my question?
Cheers,
IOR controls the amount of reflection as well, via the Fresnel equation.