Really slow LV update with OSLs

Forums: Really slow LV update with OSLs
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Really slow LV update with OSLs

Postby Jengo_1 » Mon May 10, 2021 1:47 am

Jengo_1 Mon May 10, 2021 1:47 am
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!
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Re: Really slow LV update with OSLs

Postby bepeg4d » Mon May 10, 2021 8:09 am

bepeg4d Mon May 10, 2021 8:09 am
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
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Really slow LV update with OSLs

Postby Jengo_1 » Mon May 10, 2021 7:37 pm

Jengo_1 Mon May 10, 2021 7:37 pm
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!
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Re: Really slow LV update with OSLs

Postby Jengo_1 » Mon May 10, 2021 8:23 pm

Jengo_1 Mon May 10, 2021 8:23 pm
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
Attachments
_BugReport.txt
(541.23 KiB) Downloaded 97 times
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Re: Really slow LV update with OSLs

Postby aoktar » Mon May 10, 2021 10:19 pm

aoktar Mon May 10, 2021 10:19 pm
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
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15937
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Really slow LV update with OSLs

Postby Jengo_1 » Tue May 11, 2021 1:01 am

Jengo_1 Tue May 11, 2021 1:01 am
Thanks Aoktar, attached the scene
Attachments
lagging_osls.zip
(60.7 KiB) Downloaded 84 times
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Re: Really slow LV update with OSLs

Postby Jengo_1 » Sun May 16, 2021 9:23 pm

Jengo_1 Sun May 16, 2021 9:23 pm
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!
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Re: Really slow LV update with OSLs

Postby aoktar » Sun May 16, 2021 11:37 pm

aoktar Sun May 16, 2021 11:37 pm
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
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15937
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Really slow LV update with OSLs

Postby Jengo_1 » Mon May 17, 2021 2:53 am

Jengo_1 Mon May 17, 2021 2:53 am
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!
Jengo_1
Licensed Customer
Licensed Customer
 
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: Google [Bot] and 9 guests

Thu Mar 28, 2024 9:32 am [ UTC ]