forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a USD test file that can be loaded in usdview to test the same materials that the legacy_materials_test.mtlx tests in MaterialX viewer. Open the file in usdview, select the ShaderBall object and in the Meta data panel you can select a variant for each material class. The legacy materials node defs are also updated to remove a stub for namespace that was causing trouble in usdview (but was ok in MaterialX viewer). A typo in the comments was also fixed.
- Loading branch information
Showing
3 changed files
with
184 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
...resources/Materials/TestSuite/adsklib/legacy/ShaderBall_USD_MaterialX_sampler_Legacy.usda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
#usda 1.0 | ||
( | ||
defaultPrim = "ShaderBall" | ||
metersPerUnit = 0.01 | ||
upAxis = "Y" | ||
) | ||
|
||
over "ShaderBall" ( | ||
references = @one_ball.usda@ | ||
variants = { | ||
string shadingVariant = "Mirror" | ||
} | ||
prepend variantSets = "shadingVariant" | ||
) | ||
{ | ||
over "one_ball_MeshShape" ( | ||
prepend apiSchemas = ["MaterialBindingAPI"] | ||
) | ||
{ | ||
} | ||
|
||
variantSet "shadingVariant" = { | ||
"Generic" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_generic> | ||
|
||
} | ||
} | ||
"Mirror" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_mirror> | ||
|
||
} | ||
} | ||
"Hardwood" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_hardwood> | ||
|
||
} | ||
} | ||
"Metal" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_metal> | ||
|
||
} | ||
} | ||
"Ceramic" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_ceramic> | ||
|
||
} | ||
} | ||
"Concrete" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_concrete> | ||
|
||
} | ||
} | ||
"Glazing" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_glazing> | ||
|
||
} | ||
} | ||
"Masonry" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_masonry> | ||
|
||
} | ||
} | ||
"MetallicPaint" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_metallicpaint> | ||
|
||
} | ||
} | ||
"Glass" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_glass> | ||
|
||
} | ||
} | ||
"Stone" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_stone> | ||
|
||
} | ||
} | ||
"WallPaint" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_wallpaint> | ||
|
||
} | ||
} | ||
"Water" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_water> | ||
|
||
} | ||
} | ||
"Plastic" { | ||
over "one_ball_MeshShape" | ||
{ | ||
rel material:binding = </MaterialX/Materials/M_legacy_plastic> | ||
|
||
} | ||
} | ||
} | ||
} | ||
|
||
over "MaterialX" | ||
( | ||
references = [ | ||
@legacy_materials_test.mtlx@</MaterialX>, | ||
] | ||
) | ||
{ | ||
} |
30 changes: 30 additions & 0 deletions
30
contrib/adsk/resources/Materials/TestSuite/adsklib/legacy/one_ball.usda
Large diffs are not rendered by default.
Oops, something went wrong.