syoyo / tinyusdz

Tiny, dependency-free USDZ/USDA/USDC library written in C++14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shader error ?

MootoolsSoftware opened this issue · comments

Model: Netsuke_-_Shoki_capturing_an_oni.zip
Source: Sketchfab

Reproduce code:

tydra_to_renderscene.exe "Netsuke_-_Shoki_capturing_an_oni.usdz"

Parsing the following model return an error on windows:
image

Is this a problem in the shader or the model?
We can't decode the error and are not able to know if this is a lib limitation or conversion problem.

As the message says, outputs:rgb is supported but outputs:r is not yet supported in TinyUSDZ Tydra API

https://openusd.org/release/spec_usdpreviewsurface.html#texture-reader

This will be implemented along with USD to RenderMesh conversion task #109

Supported outputs:r(and others) in recent dev branch.

81f7d7c
63203fc

And now tydra::DumpRenderScene prints outputChannel parameter

$ ./tydra_to_renderscene Netsuke_-_Shoki_capturing_an_oni.usdz

...
textures {
[0] UVTexture {
        primvar_name st0
        outputChannel rgb
        bias (0, 0, 0, 0)
        scale (1, 1, 1, 1)
        wrapS repeat
        wrapT repeat
        fallback_uv (0, 0, 0, 0)
        textureImageID 0
        has UsdTransform2d 0

    }
[1] UVTexture {
        primvar_name st0
        outputChannel r
        bias (0, 0, 0, 0)
        scale (1, 1, 1, 1)
        wrapS repeat
        wrapT repeat
        fallback_uv (0, 0, 0, 0)
        textureImageID 1
        has UsdTransform2d 0

    }
[2] UVTexture {
        primvar_name st0
        outputChannel r
        bias (0, 0, 0, 0)
        scale (1, 1, 1, 1)
        wrapS repeat
        wrapT repeat
        fallback_uv (0, 0, 0, 0)
        textureImageID 2
        has UsdTransform2d 0

    }
}