OSL IOR / Fresnel?

Forums: 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

OSL IOR / Fresnel?

Postby Timelinedenmark » Mon Apr 30, 2018 8:04 am

Timelinedenmark Mon Apr 30, 2018 8:04 am
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
Timelinedenmark
Licensed Customer
Licensed Customer
 
Posts: 8
Joined: Fri May 20, 2016 4:22 pm

Re: OSL IOR / Fresnel?

Postby fantome » Mon Apr 30, 2018 11:13 am

fantome Mon Apr 30, 2018 11:13 am
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
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 266
Joined: Wed Dec 16, 2015 3:38 pm

Return to General Discussion


Who is online

Users browsing this forum: No registered users and 16 guests

Tue Apr 16, 2024 12:57 pm [ UTC ]