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
Using a MaterialX document that uses an Image Node with place2d to manipulate texcoord produces incorrect result in UsdView. The expected result is as shown below (from MaterialXView)
In UsdView the scale is incorrect as place2d is ignored.
On debug build I get an assertion at > usd_hd.dll!std::vector<std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdDataSourceBase>,std::allocator<std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdDataSourceBase>>>::front() Line 1603 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::_ConvertHdMaterialNetworkToHdDataSources(const pxrInternal_v0_22__pxrReserved__::HdMaterialNetworkMap & hdNetworkMap={...}, std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdContainerDataSource> * result=0x0000005653bd81d8) Line 2524 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdDataSourceLegacyPrim::_GetMaterialDataSource() Line 2690 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdDataSourceLegacyPrim::Get(const pxrInternal_v0_22__pxrReserved__::TfToken & name={...}) Line 2903 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdMaterialSchema::GetFromParent(const std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdContainerDataSource> & fromParentContainer={...}) Line 76 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdSceneIndexAdapterSceneDelegate::GetMaterialResource(const pxrInternal_v0_22__pxrReserved__::SdfPath & id={...}) Line 975 C++
I did start debugging a similar issue in usdView where the texture mode was set to the file default of UsdHydraTokens->clamp instead of the MaterialX default of UsdHydraTokens->repeat but I did not have time to find out exactly where the MaterialX defaults should override the file defaults in Storm.
Description of Issue
Using a MaterialX document that uses an Image Node with place2d to manipulate texcoord produces incorrect result in UsdView. The expected result is as shown below (from MaterialXView)
In UsdView the scale is incorrect as place2d is ignored.
On debug build I get an assertion at
> usd_hd.dll!std::vector<std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdDataSourceBase>,std::allocator<std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdDataSourceBase>>>::front() Line 1603 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::_ConvertHdMaterialNetworkToHdDataSources(const pxrInternal_v0_22__pxrReserved__::HdMaterialNetworkMap & hdNetworkMap={...}, std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdContainerDataSource> * result=0x0000005653bd81d8) Line 2524 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdDataSourceLegacyPrim::_GetMaterialDataSource() Line 2690 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdDataSourceLegacyPrim::Get(const pxrInternal_v0_22__pxrReserved__::TfToken & name={...}) Line 2903 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdMaterialSchema::GetFromParent(const std::shared_ptr<pxrInternal_v0_22__pxrReserved__::HdContainerDataSource> & fromParentContainer={...}) Line 76 C++ usd_hd.dll!pxrInternal_v0_22__pxrReserved__::HdSceneIndexAdapterSceneDelegate::GetMaterialResource(const pxrInternal_v0_22__pxrReserved__::SdfPath & id={...}) Line 975 C++
Steps to Reproduce
image_place2d.zip
System Information (OS, Hardware)
Windows 10
Package Versions
v22.03
Build Flags
build_usd.py --openimageio --opencolorio --draco --materialx --embree
The text was updated successfully, but these errors were encountered: