Hi, I'm trying to load an OSL shader in Houdini and it's not working at all. The shader (Julius Ihles windowbox) works perfectly well in Maya and I was expecting it to do the same in Houdini. I've tried loading directly into the OSL node but I get no usable parameters. I've also tried exporting from Maya and importing as a .mtlx osl .ass. Same result every time. Undefined output and no parameters. Hoping it's just human error. Any help is much appreciated. Thanks
Does this compile and return a somewhat light grey color?
shader i ( float a = 0.3, output float b = 0, ) { b = a+a; }
I don't even get that far with my above method. What is now working is the shader is loading because i placed a compiled version in the shader folder. Arnold now picks it up. However, it's not rendering as a box as it does in maya. Just as a plane. The images are the correct colour so far.
HtoA is missing the osl/include folder
Thanks Stephen. So, I need to get the stdosl.h file and add it to my HtoA folder, is that correct? Where would I find that file?
The stdosl.h file is located here:
\HtoA\htoa-6.0.2.0_r0ad447a_houdini-19.0.498.py3\scripts\materialx\stdlib\osl
HtoA is missing that in the install (Arnold and the other plugins have it)