I am trying to teach myself OSL using the spec, the OctaneRender OSL documentation, and this training series.
I have a simple OSL shader where I am trying to print to the OSL console.
Code: Select all
color AddColors(
color a,
color b)
{
return a + b;
}
shader NewColor(output color d=0)
{
color x = AddColors(color(0.5,0.2,0.4),color(0.2,0.1,0.2));
printf ("x = %g", x);
d = x;
}
Code: Select all
<node 'Osl Texture'>:5: error: Unsupported feature: printf()
How do I debug my shaders in Octane (e.g. printing their variables to the console once)?