[21.7] Not able to use printf function in OSL
Posted: Wed May 13, 2020 7:45 pm
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.
But that did not help. This is the error I'm getting...
Jason
Code: Select all
set OSL_OPTIONS="optimize=0"
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,<node '[OSL COMPILE NODE]splat.osl'>:53: error: Unsupported feature: printf()
Jason