Page 1 of 1

[21.7] Not able to use printf function in OSL

Posted: Wed May 13, 2020 7:45 pm
by grimm
I wasn't too sure if this was a Blender issue or an Octane one? Blender does have issues with OSL and outputting to the console, the OSL compiler will optimize the printf out. I tried to start the Otoy version of Blender with the ENV var set which fixes that.

Code: Select all

set OSL_OPTIONS="optimize=0"
But that did not help. This is the error I'm getting...
<node '[OSL COMPILE NODE]splat.osl'>:53: error: Unsupported feature: printf()
I don't see in the Octane OSL doc where is says that the printf, error, and warning functions are not supported, so I'm thinking that it's a bug? Thanks,

Jason

Re: [21.7] Not able to use printf function in OSL

Posted: Thu Dec 03, 2020 8:31 pm
by blastframe
I am having this issue in Cinema 4D.