Page 1 of 1

OSL Shader Blur?

Posted: Wed Aug 03, 2022 8:05 am
by ceen
Hi,

I tried to feed a 3rd party OSL Shader into the Gaussian Blur OSL code provided by Octane without success. Bake node in between the two OSL nodes did not help. Is there a simple blur code for Octane OSL or how can we blur the OSL input with the gaussian code? Thx!

Re: OSL Shader Blur?

Posted: Wed Aug 03, 2022 8:33 am
by bepeg4d
Hi,
you need to have a Projection pin in the OSL shader, in this way you can add a Projection node to it, and set it to "OSL delayed UV" mode, to enable the Gaussian Blur OSL node:
234DF32E-AFF1-4E2D-8158-9248E3D0FC02.jpeg
ciao,
Beppe

Re: OSL Shader Blur?

Posted: Wed Aug 03, 2022 8:57 am
by ceen
Thank you! You mean by right click on OSL node and add projection pin? Sadly that frezes Octane here. Or by code?

Re: OSL Shader Blur?

Posted: Thu Aug 04, 2022 7:11 am
by bepeg4d
Yes, the OSL node must have the Projection pin in the code.

Which OSL script are you trying to use exactly?

ciao,
Beppe

Re: OSL Shader Blur?

Posted: Thu Aug 04, 2022 8:05 am
by ceen
Hi,

this one:
https://github.com/redshift3d/RedshiftO ... peMask.osl

Could you share a screenshot of the Code for the projection pin? I read the OSL docmuentation, but I always get errors

Re: OSL Shader Blur?

Posted: Fri Aug 12, 2022 2:13 pm
by bepeg4d
Hi,
I had a look at the OSL shader, but since it involves geometry, it cannot work with gaussian-blur.osl node, even with correct projection.

Anyway, you can obtain the same effect by using an Octane Falloff node in Normal vs vector 90deg mode:
C810AFD6-5D12-43B5-8F3F-16D4F9FCF311.jpeg
And use an Octane Gradient to define the blurriness you want:
2CFE8830-E25B-4B94-BADD-E0B93F7AC85E.jpeg
ciao,
Beppe