Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to load OSL shader in Houdini

7 REPLIES 7
Reply
Message 1 of 8
jstewartJ2BWZ
468 Views, 7 Replies

Unable to load OSL shader in Houdini

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


Tags (2)
Labels (2)
7 REPLIES 7
Message 2 of 8
madsd
in reply to: jstewartJ2BWZ

Does this compile and return a somewhat light grey color?


shader i
(
float a = 0.3,
output float b = 0,
)
{
b = a+a;
}
Message 3 of 8

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.


Message 4 of 8

After exporting the basic plane from Maya - it now works as expected. I will investigate what the difference between my Houdini and Maya planes are tomorrow. wb1.JPGwb2.JPG

Message 5 of 8

HtoA is missing the osl/include folder

htoa-osl.png



// Stephen Blair
// Arnold Renderer Support
Message 6 of 8

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?

Message 7 of 8
Anonymous
in reply to: jstewartJ2BWZ

The stdosl.h file is located here:
\HtoA\htoa-6.0.2.0_r0ad447a_houdini-19.0.498.py3\scripts\materialx\stdlib\osl

Message 8 of 8
Stephen.Blair
in reply to: Anonymous

Arnold needs ../osl/includes (relative to the location of Arnold itself eg ai.dll or libai.so)

HtoA is missing that in the install (Arnold and the other plugins have it)




// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report