Skip to content

USD procedural does not respect the texture search path #1546

@peterhorvath111

Description

@peterhorvath111

Loading a usd file, which has an image shader with a relative path gives an error when the texture search path is properly set.

Repro:

Seems like usd ignores the Arnold texture search path and looking for the texture in the current working directory.

00:00:00   244MB         | starting 12 bucket workers of size 64x64 ...
00:00:00   257MB ERROR   |  [texturesys] /mtl/mat/standard_surface/uvgrid: Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Invalid image file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg": Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
00:00:00   258MB ERROR   |  [texturesys] /mtl/mat/standard_surface/uvgrid: Invalid image file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg": Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
00:00:00   260MB WARNING |  [kick] render aborted due to earlier errors
00:00:00   260MB ERROR   |  [texturesys] /mtl/mat/standard_surface/uvgrid: Invalid image file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg": Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
00:00:00   261MB ERROR   |  [texturesys] /mtl/mat/standard_surface/uvgrid: Invalid image file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg": Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
00:00:00   261MB ERROR   |  [texturesys] /mtl/mat/standard_surface/uvgrid: Invalid image file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg": Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
Could not open file "c:/tmp/usd_texture_searchpath_error/uvgrid.jpg"
00:00:00   270MB         |  [skydome_light] /Arnold_Sky: 1000x1000 importance map done in 0:00.07, average energy 0.212518
00:00:00   270MB WARNING |  render terminating early:  unknown reason

The same scene is working fine with an ASS procedural (see scene_assproc.ass).

Also tested in Arnold 7.1 where the USD procedural is working fine, so this is a regression in the latest build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions