From 08ea7b86768fc70484e0e59be844d6d6d00f6a49 Mon Sep 17 00:00:00 2001 From: Jerry Gamache Date: Tue, 15 Oct 2024 15:40:15 -0400 Subject: [PATCH] Add support for OpenPBR as default material --- .../basisCurveInstance_selected.png | Bin 0 -> 4337 bytes .../basisCurveInstance_unselected.png | Bin 0 -> 4307 bytes .../defaultMaterialBillboards_default.png | Bin 0 -> 5838 bytes ...defaultMaterialBillboards_defaultSelected.png | Bin 0 -> 5777 bytes ...tVP2RenderDelegatePerInstanceInheritedData.py | 5 ++++- 5 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/basisCurveInstance_selected.png create mode 100644 test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/basisCurveInstance_unselected.png create mode 100644 test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_default.png create mode 100644 test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_defaultSelected.png diff --git a/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/basisCurveInstance_selected.png b/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/basisCurveInstance_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..bc65a767e4c470a8477827b16709c018f0556ecd GIT binary patch literal 4337 zcmeHLe^66b7CtYDA%XBqT0up$Z7PMjZbTgc6#-GnAi*tCbn1^_ZAIBiDys#l`eYTY z)s=2&7cC0gc4RwN%E&C@Lc_DMx>W?!R-vK>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e3~nPDqh85 zKR+X(m`yL*Nkd#u;^1RAmF05CVEk=ID#B7MRVa)LWyDfTDCm4mRvT8`bnxaT!@)M@>|M{}w-rhDV)+Ud#4?aby}lwBvb%Xm6V zbTySd%WIe@>a6>A)bQ(+mUtq<-!*{w&_`tGw0oLTx~lwQ(7glZs6XyAQs{b@05m+3 zYAj7vDl6uf=vm{MClci3>cyjFiUK~TouK3K2bQ-oWL3URneqO&-4o}NMWIL!1 zV&mr7k78ae6N9ab(%5nxGk#K%v28)fn+W6WC|=V^^!FQS_qkzXTTtiqdJGkl2i_p` zOBZTLi>;k#k$iI-2Xka0eY%CH5_>$+IPUnybmHyBo5kK>pI}xo6%tFe2WE-gtB9tP z6c3W)G9tA0G8T#TG$mYNGJao>gS-!?3bWPYqw6EEj~0v!qDeb5;Ug;FZmhZgpM4u%2K##U_GcZ5 zox%6h6XIx}4038Ev~VZtWFXn~A`VU(jx~r=Icq3sogCyyS@uiZi2#mwxn(%|%W_Hj zUD^1#?yQJY`(+Tr6wI~d!#H|!`!*QtTReFy?YuU^kC89UiR0Lm!FE36`cDqD+75oc T2(g*`e-WTxnYp56xuN2}TJq7r literal 0 HcmV?d00001 diff --git a/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_default.png b/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_default.png new file mode 100644 index 0000000000000000000000000000000000000000..1d0e1bdcfcc2bf3b01ab6200d282228444d5a88e GIT binary patch literal 5838 zcmeHL`Bzid7Cs>og9IfqML;CR0R$unDoDT-FeoUXRUS%}AOa2ydD1G702dpkmOuwE&dyjq9&(w%R*OC>mj#p@IgvQs-`_tMyaj5`Yqa5$t*b>t2qS-aeqrDX1OLRp zB7O)$^6~zzrnW=%(;xo$MN?6!jkw#jXxwcz7c?)|GlT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0mmNlS#hPa1Rf7B~Sb zE%Y)P8jJG!$@K?y4&63w$p9K z<5H-C@!NVUc=DN&A?8qsypvFwJbW^$)M9@!Q4MtkrMa0&r5Xnh8YYH#xA*TS>vnXL zLy=-JMku{j;}JBHzdW5#%Rxjo;}!5e1fj2lSoi;BE|u0SgaQq_hv{d{1afVr%CmP% zHMa(Kl0&i0P#ley3Sw`u%p55AwM(*Bs0xcpBOHdLRZc}G56k=758b<5tV}qp`(xIOU0tAtu8}TH&Gz0jP2&=DHW+N zK7NxpU4(2v10|lEIZDOW7jJD7r)4uWLPB@*tUWp_SDk^xa>V5T*m$2N+FuKk7(&%* zv0R&L3|&?iBFu;9)@{9e^s>fFA=vwhVZGcK~s%~2;m(Fw}ZVQ4@gWZ~~ec7-$Q zq;kX)f>+7+5pT#KZs+j#uN6w7jDmPz)iVncMc4=NAUPFz|(e|C50!-IH#c ZeHL6A+zR^f&p$(>O&k2Yu6S^d{SRN&_ICgP literal 0 HcmV?d00001 diff --git a/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_defaultSelected.png b/test/lib/mayaUsd/render/vp2RenderDelegate/VP2RenderDelegatePerInstanceInheritedDataTest/baseline/openPBRSurfaceDefaultMaterial/defaultMaterialBillboards_defaultSelected.png new file mode 100644 index 0000000000000000000000000000000000000000..ef916b710b11b4d5e954f28f9fbc8cb053f3b642 GIT binary patch literal 5777 zcmeHL`Cn7lw%;d#cme?fREUT`0L2MO5C;@6gh3`j#Aj7Nf(lNzf>H!Y#8?j?R>7)Q zqGIH!MeNmx1qDSy8mP1tji?m|rpRrf0w&6kFyD33_v?F~_Xn8ICnsm^z1MfI{oQMV zyfqQ4%uH-e5JF}l!2xR#qAC!g*x@u7@rr8@!jF04hLEJytI<4o$KgwUo<*OACp|eR zDAgd7k2mw~K0(NOYDj?Jx{RW}*43xpu0Nj>6?QWr^3jSPPTH)g8+h+|(|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R!5e*#^exX!W+H)B$UKoV@wK*Z0$G?dIqA1I|(DE$CV`P!&&w98{%HhVC9jMGp*F0 z2zQPXcxO1YJaCcD{kSLM_!IfW#}WMiSZXoE3mscG6m@v_B2OdO?tCVjOGn0GtfL z!@M%Bu_YuF)a&^uAR|YEbxZ>!6lt60v_N$DYx3RQcBhl~Z+j_cwow=;WsS-zL2atF z0o;^RQV283STLv;^)B&^sV~zTZ-6^QCO?qH7wHbrtr5@o`*_K$EX6SEo*3(&X){)A?}vI2WMSOq*P`g&VW(~gg(DMi2&FW1OjF&qx~ s=qTj&&(F^cd}iP?1OHD3w8@tWV|bbORzF7n*ME{xNMJ;Oj4$}+KLy@(d;kCd literal 0 HcmV?d00001 diff --git a/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePerInstanceInheritedData.py b/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePerInstanceInheritedData.py index 0a13e5e448..ea413f07d1 100644 --- a/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePerInstanceInheritedData.py +++ b/test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePerInstanceInheritedData.py @@ -56,8 +56,11 @@ def setUpClass(cls): cls._testDir = os.path.abspath('.') cls._imageVersion = None - if maya.mel.eval("defaultShaderName") != "standardSurface1": + defaultSurfaceName = maya.mel.eval("defaultShaderName") + if defaultSurfaceName == "lambert1": cls._imageVersion = 'lambertDefaultMaterial' + elif defaultSurfaceName == "openPBRSurface1": + cls._imageVersion = 'openPBRSurfaceDefaultMaterial' @classmethod def tearDownClass(cls):