OSL Shader Blur?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
ceen
Licensed Customer
Posts: 113
Joined: Wed Jun 10, 2015 9:43 pm

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!
3080ti
User avatar
bepeg4d
Octane Guru
Posts: 10364
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
ceen
Licensed Customer
Posts: 113
Joined: Wed Jun 10, 2015 9:43 pm

Thank you! You mean by right click on OSL node and add projection pin? Sadly that frezes Octane here. Or by code?
3080ti
User avatar
bepeg4d
Octane Guru
Posts: 10364
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Yes, the OSL node must have the Projection pin in the code.

Which OSL script are you trying to use exactly?

ciao,
Beppe
ceen
Licensed Customer
Posts: 113
Joined: Wed Jun 10, 2015 9:43 pm

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
3080ti
User avatar
bepeg4d
Octane Guru
Posts: 10364
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
Post Reply

Return to “Maxon Cinema 4D”