You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
USD Material has outputs:bar:surface and outputs:surface
The issue:
I would expect that HdSceneIndexAdapterSceneDelegate::GetMaterialResource() would return the "bar" network but, instead, it returns the "" network.
The cause (as best I can tell):
When we call GetMaterialResource(), it iterates through our delegate's list of supported contexts, starting with "foo", and calls HdMaterialSchema::GetMaterialNetwork("foo"). This context doesn't exist in the USD file, so GetMaterialNetwork() instead attempts to return a network for the "" context which, in this case, does exits. GetMaterialResource() recognises that a valid network has been returned and immediately sends it back to us.
The text was updated successfully, but these errors were encountered:
…rom the scene delegate to the material schema. This ensures that the fallback context is only used if *all* the delegate's contexts fail.
Related to PixarAnimationStudios#3286
The specific alignment of the stars is as follows:
MyRenderDelegate::GetMaterialRenderContexts()
returns["foo", "bar"]
outputs:bar:surface
andoutputs:surface
The issue:
I would expect that
HdSceneIndexAdapterSceneDelegate::GetMaterialResource()
would return the"bar"
network but, instead, it returns the""
network.The cause (as best I can tell):
When we call
GetMaterialResource()
, it iterates through our delegate's list of supported contexts, starting with"foo"
, and callsHdMaterialSchema::GetMaterialNetwork("foo")
. This context doesn't exist in the USD file, soGetMaterialNetwork()
instead attempts to return a network for the""
context which, in this case, does exits.GetMaterialResource()
recognises that a valid network has been returned and immediately sends it back to us.The text was updated successfully, but these errors were encountered: