question

Mr. T avatar image
Mr. T asked ·

Apply arnold materials to a .usd scene?

Hey, i was playing around with the new Arnold USD procedural, i basically exported a scene as .usd from blender and loaded it into max via the USD node.


Is it possible to apply arnold shaders to objects inside that USD file?

maxtoausd
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Pal Mezei avatar image
Pal Mezei answered ·

Hey @Mr. T!


Yes, it is possible. There are several ways of doing so.


The first one is to use operators to assign materials to shapes inside a procedural. This workflow can be applied to any Arnold procedural.

You can use the SelectOperator menu on the USD procedural https://docs.arnoldrenderer.com/display/A5AF3DSUG/USD#USD-SelectOperator and a Set Parameter operator https://docs.arnoldrenderer.com/display/A5AF3DSUG/Set+Parameter to override the shader.


The second one is to use USD's composition features to change the exported scene without changing the file itself. You can create an "usda" file like this and load it in the procedural instead of the original one.

#usda 1.0
(
    subLayers = [
        @original.usd@
    ]
)

over "MyShape" {
    rel material:binding = </materials/material>
}

def Scope "materials" {

    def Material "material"
    {
        token outputs:arnold:surface.connect = </materials/material/standard_surface.outputs:surface>

        def Shader "standard_surface"
        {
            uniform token info:id = "arnold:standard_surface"
            token outputs:surface
        }
    }

}


1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Thank you,

so i tried to apply a shader with a bitmap connected to the base color input to a simple cube via the operator graph but for some reason it seems that the uv's are not working.

Exporting a alembic file from blender to max works just fine but the uv coordinates in the usd file are either not working or simply not exported.

Is there a way to check the uvw layout inside max?

Or do i have to specify a specific uvw?

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.