OSL Shader Blur?

Forums: OSL Shader Blur?
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

OSL Shader Blur?

Postby ceen » Wed Aug 03, 2022 8:05 am

ceen Wed Aug 03, 2022 8:05 am
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!
ceen
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Wed Jun 10, 2015 9:43 pm

Re: OSL Shader Blur?

Postby bepeg4d » Wed Aug 03, 2022 8:33 am

bepeg4d Wed Aug 03, 2022 8:33 am
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
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9954
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: OSL Shader Blur?

Postby ceen » Wed Aug 03, 2022 8:57 am

ceen Wed Aug 03, 2022 8:57 am
Thank you! You mean by right click on OSL node and add projection pin? Sadly that frezes Octane here. Or by code?
ceen
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Wed Jun 10, 2015 9:43 pm

Re: OSL Shader Blur?

Postby bepeg4d » Thu Aug 04, 2022 7:11 am

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

Which OSL script are you trying to use exactly?

ciao,
Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9954
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: OSL Shader Blur?

Postby ceen » Thu Aug 04, 2022 8:05 am

ceen Thu Aug 04, 2022 8:05 am
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
ceen
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Wed Jun 10, 2015 9:43 pm

Re: OSL Shader Blur?

Postby bepeg4d » Fri Aug 12, 2022 2:13 pm

bepeg4d Fri Aug 12, 2022 2:13 pm
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
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9954
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 23 guests

Fri Apr 19, 2024 12:32 pm [ UTC ]