Skip to content

inputs:in.connect has wrong type in test_assets\TextureTransformTest #87

@syoyo

Description

@syoyo

In test_assets\TextureTransformTest
inputs:in.connect uses token type,

token inputs:in.connect = </TextureTransformTest/Materials/Offset_U_53148/uvReader.outputs:result>

where float2 is expected according to the spec
https://openusd.org/release/spec_usdpreviewsurface.html#transform2d

            def Shader "usdTransform"
            {
                uniform token info:id = "UsdTransform2d"
                token inputs:in.connect = </TextureTransformTest/Materials/Offset_V_53152/uvReader.outputs:result>
                ^^^^^^^^^^^^^^^^^^^^^^^
                float inputs:rotation = 0
                float2 inputs:scale = (1, 1)
                float2 inputs:translation = (0, -0.5)
                float2 outputs:result
            }

Surprisingly, OpenUSD does not check the type of Attribute when it is a Attribute Connection, so tools using OpenUSD can open it without errors(e.g. Blender 4.1)

image
(Blender 4.1)

Anyway, using float2 inputs:in.connect would be better to make this USD test scene conformant to UsdPreviewSurface Spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions