OSL Distort Texture?

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

Moderators: ChrisHekman, aoktar

User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Is anyone aware of an OSL texture in Octane that will distort its input image with noise? I'm looking for something similar to C4D's native Distort Effect.
Distort.png
I found this post describing how to do use noise to distort in OSL, but it is for Blender and not using an input image/texture:
https://blender.stackexchange.com/quest ... ion-effect

Thank you!
User avatar
Goldorak
OctaneRender Team
Posts: 2321
Joined: Sun Apr 22, 2012 8:09 pm
Contact:

we are working on just such a thing for 2020.2
User avatar
galleon27
Licensed Customer
Posts: 293
Joined: Wed Jul 15, 2015 11:55 am
Location: Serbia
Contact:

Here is an OSL shader by Rohan Dalvi that does that. Just create a OSL Projection node and load the script. Make sure your object has uvs.
Attachments
uv distort2.zip
(322 Bytes) Downloaded 358 times
Win 10 64bit // GTX 4090 + GTX 3090 // 5900x // 64GB // SideFX Houdini // C4D
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

Goldorak wrote:we are working on just such a thing for 2020.2
That's really exciting, Jules, thank you!
User avatar
blastframe
Licensed Customer
Posts: 178
Joined: Wed May 21, 2014 6:01 am
Location: Los Angeles, CA USA

galleon27 wrote:Here is an OSL shader by Rohan Dalvi that does that. Just create a OSL Projection node and load the script. Make sure your object has uvs.
Thank you @galleon27!! I will give this a try :)
ArturM
Licensed Customer
Posts: 9
Joined: Sun Oct 20, 2019 9:43 am

I think I'm trying to achieve a similar effect. Can you tell me please what to do after loading the script?
A.Lopez
Licensed Customer
Posts: 60
Joined: Fri Jan 21, 2022 4:20 pm

Any news? 202.1 is gone...
A.Lopez
Licensed Customer
Posts: 60
Joined: Fri Jan 21, 2022 4:20 pm

Hi galleon, I'm trying to use your osl but I can only move my projection, not distorting...could you please share an example? I would appreciate it a lot, Roy
User avatar
bepeg4d
Octane Guru
Posts: 10356
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
from 2021.1 there is a new Distorted Mesh UV projection mode, no need to use OSL:
A18E25BF-25F4-4D8A-9995-319C19B0BFF4.jpeg
ciao,
Beppe
A.Lopez
Licensed Customer
Posts: 60
Joined: Fri Jan 21, 2022 4:20 pm

Ciao Beppe! come stai?
Perfetto! grazie
Post Reply

Return to “Maxon Cinema 4D”