OSL IOR / Fresnel?

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
Timelinedenmark
Licensed Customer
Posts: 8
Joined: Fri May 20, 2016 4:22 pm

Hi Octane Community

I'm looking for some coding adivce and it´s probably a very simple task.

I need a Simple IOR/Fresnel code snippet for the new OSL compiler. 1 x input for an IOR value and 1 x black & white output.
The falloff node doesn´t make any sense to me, and it´s way more easy to work with IOR values.

Can anyone help me out? :)

/Nicolaj
User avatar
fantome
Licensed Customer
Posts: 268
Joined: Wed Dec 16, 2015 3:38 pm

Hi Nicolaj,

I agree IOR or Normalized disney Value are much explicit to remap fresnel.

This might interest you :
viewtopic.php?f=9&t=66100
The above post deal with complex IOR

https://learnopengl.com/PBR/Theory
you can use the fresnel-shlick law it will be more straightforward.
you can easily translate this in OSL i guess

Cheers
E
Post Reply

Return to “General Discussion”