PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.18k stars 1.23k forks source link

Storm failed to render geometry with triple Point Instancer #2347

Open jgranier-adobe opened 1 year ago

jgranier-adobe commented 1 year ago

Description of Issue

I have an geometry in 3 chained PointInstancer and the geometry is not printed in USDView.

In my console, I have the following error :

Warning: in Link at line 417 of C:\Data\Dev\divers\USD\pxr\imaging\hdSt\glslProgram.cpp -- Failed to link shader: Geometry info
-------------
0(379) : error C5058: no buffers available for bindable storage buffer

Fragment info
-------------
0(354) : error C5058: no buffers available for bindable storage buffer

Warning: in Link at line 417 of C:\Data\Dev\divers\USD\pxr\imaging\hdSt\glslProgram.cpp -- Failed to link shader: Geometry info
-------------
0(379) : error C5058: no buffers available for bindable storage buffer

Fragment info
-------------
0(354) : error C5058: no buffers available for bindable storage buffer

ERROR: Usdview encountered an error while rendering.
        Error in 'pxrInternal_v0_23__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 279 in file C:\Data\Dev\divers\USD\pxr\imaging\hdSt\drawBatch.cpp : 'Failed to compile shader for prim /triangle_pointinstancer/instantiate/Prototypes/instantiate/Prototypes/instantiate.proto0_primitive_id0.'
        Error in 'pxrInternal_v0_23__pxrReserved__::HdSt_DrawBatch::_GetDrawingProgram' at line 297 in file C:\Data\Dev\divers\USD\pxr\imaging\hdSt\drawBatch.cpp : 'Failed verification: ' res ' -- Failed to compile with fallback material network'
        Error in 'pxrInternal_v0_23__pxrReserved__::HdSt_IndirectDrawBatch::_ExecuteDraw' at line 1126 in file C:\Data\Dev\divers\USD\pxr\imaging\hdSt\indirectDrawBatch.cpp : 'Failed verification: ' program.IsValid() ''

Steps to Reproduce

  1. Launch this usda (Describe a blue triangle):
    
    #usda 1.0
    (
    defaultPrim = "triangle_pointinstancer"
    metersPerUnit = 0.01
    upAxis = "Y"
    )

def Xform "triangle_pointinstancer" { def PointInstancer "instantiate" { int64[] ids = [0] quath[] orientations = [(1, 0, 0, 0)] point3f[] positions = [(0, 0, 0)] int[] protoIndices = [0] prepend rel prototypes = </triangle_pointinstancer/instantiate/Prototypes/instantiate> float3[] scales = [(1, 1, 1)]

    def Scope "Prototypes"
    {
        def PointInstancer "instantiate"
        {
            int64[] ids = [0]
            quath[] orientations = [(1, 0, 0, 0)]
            point3f[] positions = [(0, 0, 0)]
            int[] protoIndices = [0]
            prepend rel prototypes = </triangle_pointinstancer/instantiate/Prototypes/instantiate/Prototypes/instantiate>
            float3[] scales = [(1, 1, 1)]

            def Scope "Prototypes"
            {
                def PointInstancer "instantiate"
                {
                    int64[] ids = [0]
                    quath[] orientations = [(1, 0, 0, 0)]
                    point3f[] positions = [(0, 0, 0)]
                    int[] protoIndices = [0]
                    prepend rel prototypes = </triangle_pointinstancer/instantiate/Prototypes/instantiate/Prototypes/instantiate/Prototypes/primitive>
                    float3[] scales = [(1, 1, 1)]

                    def Scope "Prototypes"
                    {
                        def Mesh "primitive"
                        {
                            int[] faceVertexCounts = [3]
                            int[] faceVertexIndices = [0, 1, 2]
                            point3f[] points = [(-40, 0, 0), (40, 0, 0), (-40, 80, 0)]
                            normal3f[] primvars:normals = [(0, 0, 1), (0, 0, 1), (0, 0, 1)] (
                                interpolation = "faceVarying"
                            )
                            int[] primvars:normals:indices = [0, 1, 2]
                            uniform token subdivisionScheme = "none"
                            color3f[] primvars:displayColor = [(0, 0, 1)]( interpolation = "constant" )
                        }
                    }
                }
            }
        }
    }
}

}



### System Information (OS, Hardware)
Windows (intel/NVidia) 
### Package Versions
Last Release ( 23.02)

### Build Flags
tallytalwar commented 1 year ago

Filed as internal issue #USD-8134