Really slow LV update with OSLs

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

Moderators: ChrisHekman, aoktar

Post Reply
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

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

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
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

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
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

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 134 times
User avatar
aoktar
Octane Plugin Developer
Posts: 16065
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

Thanks Aoktar, attached the scene
Attachments
lagging_osls.zip
(60.7 KiB) Downloaded 106 times
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

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!
User avatar
aoktar
Octane Plugin Developer
Posts: 16065
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
Jengo_1
Licensed Customer
Posts: 73
Joined: Sun Aug 25, 2019 4:17 am
Contact:

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

Return to “Maxon Cinema 4D”