Page 1 of 1

Really slow LV update with OSLs

PostPosted: Mon May 10, 2021 1:47 am
by Jengo_1
Hey, I have a material with different OSL noises, everything been pretty laggy when trying to mess around with the different settings, but when I added a UV distort OSL (by Rohan Dalvi), every small change takes about a minute to refresh. It only happens when LiveViewer is on.

I tried disabling OpenGL and Material previews in the LV and it didn't make any difference.

It happens with both 2020.1.5 and 2020.2.3 R3

Is it something to be expected with OSLs? my point of using OSL noises is to not use C4D noises but at this point C4D noises work way faster in the same scene and setup.


Thanks!

Re: Really slow LV update with OSLs

PostPosted: Mon May 10, 2021 8:09 am
by bepeg4d
Hi,
noise.osl scripts you can find are not written specifically for octane, so you can have slow down.

On the other side, from v2020.1-RC2 there is a new option for auto converting C4D shaders into OSL Octane nodes, that is far more stable and productive.
It works for both C4D Noise and Gradient nodes.
Image

Just disable the C4D Shader Baking option, and enable only the OSL option, to use the power of C4D Noise and Gradient directly in your material nodes ;)

Happy GPU rendering,
ciao Beppe

Re: Really slow LV update with OSLs

PostPosted: Mon May 10, 2021 7:37 pm
by Jengo_1
Yes I definitely have c4d shaders as osl enabled, however i didn't have dont bake unchecked. I'll try that, but I do think it's a matter of osl codes bogging down the system. Was honestly more hopeful for OSL textures but at this point it's almost unusable!

Have you guys added a UV distortion node to the node system? I read it in a few places but I couldn't find it when I looked for it.

Thanks Beppe!

Re: Really slow LV update with OSLs

PostPosted: Mon May 10, 2021 8:23 pm
by Jengo_1
Just adding here, cinema keeps crashing very frequently when dealing with these materials (it happens only when I have 2 OSL noises mixed together, then plugged into a Bake texture node which has Rohan Dalvi's UV distortion OSL attached to its projection that's attached to the albedo)

Attached the crash log

Re: Really slow LV update with OSLs

PostPosted: Mon May 10, 2021 10:19 pm
by aoktar
Jengo_1 wrote:Just adding here, cinema keeps crashing very frequently when dealing with these materials (it happens only when I have 2 OSL noises mixed together, then plugged into a Bake texture node which has Rohan Dalvi's UV distortion OSL attached to its projection that's attached to the albedo)

Attached the crash log

Please share your example scene

Re: Really slow LV update with OSLs

PostPosted: Tue May 11, 2021 1:01 am
by Jengo_1
Thanks Aoktar, attached the scene

Re: Really slow LV update with OSLs

PostPosted: Sun May 16, 2021 9:23 pm
by Jengo_1
Hey Aoktar, don't mean to be annoying I know you must be awfully busy, just wondering if you had a chance to look into this?

Thanks!

Re: Really slow LV update with OSLs

PostPosted: Sun May 16, 2021 11:37 pm
by aoktar
Jengo_1 wrote:Hey Aoktar, don't mean to be annoying I know you must be awfully busy, just wondering if you had a chance to look into this?

Thanks!

Sorry missed that, will check it tomorrow

Re: Really slow LV update with OSLs

PostPosted: Mon May 17, 2021 2:53 am
by Jengo_1
Awesome thank you!
After trying many different materials I can say it's definitely the UV distortions OSL, maybe it's its combination with the bake texture node. When I remove those it's pretty smooth sailing. But my main goal here is to use voronoi noises (which are very linear), either using the OSL noises or C4D's noises, and be able to give them distortions, kinda like what the "omega" does on the octane noises. So if you got any suggestions on how to approach that it would be greatly appreciated!