arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

osl include path - shader not picked up

Open fjallraven opened this issue 2 years ago • 1 comments

Describe the bug

I have a usd file where the shader is set like this

                def Shader "MyShaderTest"
                {
                    uniform token info:id = "osl:Category/MyShaderTest"
                    float inputs:density = 0.5
                    point3f inputs:inManifold = (0, 0, 0)
                    float inputs:normal_randomize = 0.5
                    string inputs:output_space = "world"
                    float inputs:scale = 0.1
                    color3f outputs:c_out
                }

Shader lives under this directory

/dev/osl_test
└── Category
    ├── TestShader.osl
    └── TestShader.oso

I'm setting arnold plugin path and osl include paths to /dev/osl_test:/dev/osl_test/Category

But arnold render log throw this

00:00:00   254MB         | loading plugins from /dev/osl_test ...
00:00:00   255MB         | loading plugins from /dev/osl_test/Category ...
00:00:00   255MB         |  TestShader.osl: TestShader
00:00:00   255MB         | loaded 1 OSL shaders in 0:00.00

....

00:00:00   315MB ERROR   | node "osl:Category/MyShaderTest" is not installed

Tested in 7.1.3.1.

Should a token id which contains ex "osl:Category/" be expected to work?

Many thanks!

fjallraven avatar Feb 16 '23 14:02 fjallraven

Issue synced internally to ARNOLD-13332