Script - PBR Specular map to Dielectric 1/IOR map

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
noldo
Licensed Customer
Posts: 89
Joined: Wed May 25, 2011 7:07 pm

If you are interested I created an OSL script to apply a calibrated pbr specular map to a universal material.
The script must be applied as an osl texture to the (Dielectric 1 / IOR map), and the pbr specular map must be set with linear gamma (1.0).

#include <octane-oslintrin.h>
shader Texture(
color col1 = color(0.5, 0.5, 0.5),
output color c = 0)
{
color col2 = pow((_evaluateDelayed(col1, u, v)),(2.2));
c = 1/((1+col2+2*sqrt(col2))/(1-col2));
}
Post Reply

Return to “General Discussion”