Page 1 of 2
[OSL scripts] Layer Blending mode and Normalize
Posted: Sun May 03, 2020 4:07 pm
by LewisO
Hello everyone, I've made two OSL nodes in Octane before, the first one is a blending node which consists of 14 common modes, and a normalize node consists of one line of code only, hope these can be helpful
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Sun May 03, 2020 8:42 pm
by aoktar
Thanks!
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Sun May 03, 2020 9:05 pm
by Ghostmize
thanks! really cool
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Mon May 04, 2020 2:46 am
by aiven
Thanks! Good job.

Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Mon May 04, 2020 7:17 am
by mitchino
would it be possible to create a blur node? I'd love to be able to tweak blur settings on image files I use for displacements etc
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Mon May 04, 2020 7:35 am
by aoktar
mitchino wrote:would it be possible to create a blur node? I'd love to be able to tweak blur settings on image files I use for displacements etc
I've added a lot of osl scripts but seems like nobody checked.
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Tue May 05, 2020 8:39 am
by mitchino
I see there is a gaussian blur script - can't get it working though, I've piped an image node with a png image into the gaussian blur node, and connected that to my diffuse channel. Can't seem to get any blurring, but I am getting incredibly slow performance.
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Tue May 05, 2020 3:04 pm
by pegot
mitchino wrote:I see there is a gaussian blur script - can't get it working though, I've piped an image node with a png image into the gaussian blur node, and connected that to my diffuse channel. Can't seem to get any blurring, but I am getting incredibly slow performance.
You need to attach an "OSL Delayed UV” projection node to the image being blurred.
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Tue May 05, 2020 4:42 pm
by Goldorak
Hi all!
Lewis - this is great!
As outlined in the GTC20 roadmap, we are going to bake in all useful osl shaders as native nodes into a forthcoming update. Joan and I are reviewing just about all the osl shaders - including those on liveDB, and shown in the roadmap slides. If there any others missing, please let us know.
The layer/compositing node is one we are paying special attention to right now - we want to get all porter diff operators working on top of the blend modes, and also allow mask texture input on top of layer opacity value.
For color correction, we are going to port the autodesk Uber CC shader (which I believe Lewis tested, as did I) as well as the more minimal CC node from Arnold that is currently a utility node on liveDB.
Re: [OSL scripts] Layer Blending mode and Normalize
Posted: Wed May 06, 2020 3:11 pm
by LewisO
Goldorak wrote:Hi all!
Lewis - this is great!
As outlined in the GTC20 roadmap, we are going to bake in all useful osl shaders as native nodes into a forthcoming update. Joan and I are reviewing just about all the osl shaders - including those on liveDB, and shown in the roadmap slides. If there any others missing, please let us know.
The layer/compositing node is one we are paying special attention to right now - we want to get all porter diff operators working on top of the blend modes, and also allow mask texture input on top of layer opacity value.
For color correction, we are going to port the autodesk Uber CC shader (which I believe Lewis tested, as did I) as well as the more minimal CC node from Arnold that is currently a utility node on liveDB.
Don't forget the long node list I shared earlier!