Skip to content

Commit 4964b51

Browse files
authored
Merge pull request #48 from beersandrew/usdchecker-test_assets
Usdchecker test assets
2 parents c030009 + 27bc41f commit 4964b51

File tree

143 files changed

+1808
-1380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1808
-1380
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ignore temp files when using usdfixbrokenpixarschemas
2+
*.bck.*

test_assets/AlphaBlendModeTest/AlphaBlendModeTest.usd

Lines changed: 243 additions & 224 deletions
Large diffs are not rendered by default.
292 Bytes
Binary file not shown.
29.4 KB
Binary file not shown.
Lines changed: 72 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,89 @@
11
#usda 1.0
22
(
3-
customLayerData = {
4-
string creator = "Three.js USDZExporter"
5-
}
6-
defaultPrim = "StageRoot"
7-
metersPerUnit = 1
8-
upAxis = "Y"
9-
startTimeCode = 0
10-
endTimeCode = 100
11-
timeCodesPerSecond = 60
12-
framesPerSecond = 60
3+
customLayerData = {
4+
string creator = "Three.js USDZExporter"
5+
}
6+
defaultPrim = "StageRoot"
7+
endTimeCode = 100
8+
framesPerSecond = 60
9+
metersPerUnit = 1
10+
startTimeCode = 0
11+
timeCodesPerSecond = 60
12+
upAxis = "Y"
1313
)
1414

1515
def Xform "StageRoot"
1616
{
17-
def Xform "GameObject_19"
18-
{
19-
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
20-
uniform token[] xformOpOrder = ["xformOp:transform"]
21-
22-
def Xform "Shadows_20"
23-
{
24-
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
25-
uniform token[] xformOpOrder = ["xformOp:transform"]
26-
27-
def Xform "Shadow1_23" (prepend references = @./geometries/Geometry_7.usd@</Geometry>)
28-
{
29-
rel material:binding = </Materials/Material_5>
30-
matrix4d xformOp:transform = ( (0.7227923689262957, -6.524213866211724e-7, -0.5760579247048901, 0), (0.2046202329458557, 0.000001901808820767934, 0.2567414611888293, 0), (0.000003151849124212561, -1.0191191961221802, 0.000005052769658335941, 0), (-0.595999956, 0, -0.0440000035, 1) )
31-
uniform token[] xformOpOrder = ["xformOp:transform"]
32-
33-
}
34-
def Xform "Shadow2_24" (prepend references = @./geometries/Geometry_7.usd@</Geometry>)
35-
{
36-
rel material:binding = </Materials/Material_5>
37-
matrix4d xformOp:transform = ( (0.9162692, 0, 0, 0), (0, -1.5225203843506833e-8, 0.2861209362252038, 0), (0, -1.0102997337605517, -5.376055171802598e-8, 0), (0.618000031, 0, -0.00100000016, 1) )
38-
uniform token[] xformOpOrder = ["xformOp:transform"]
39-
40-
}
41-
def Xform "Shadow3_22" (prepend references = @./geometries/Geometry_8.usd@</Geometry>)
42-
{
43-
rel material:binding = </Materials/Material_6>
44-
matrix4d xformOp:transform = ( (1.86491, 0, 0, 0), (0, -4.863094950971973e-8, 0.9139012486309495, 0), (0, -1.0103000537605686, -5.3760568746019645e-8, 0), (-0.023999989, -0.00505150063, -0.0009999997, 1) )
45-
uniform token[] xformOpOrder = ["xformOp:transform"]
46-
47-
}
48-
}
49-
}
17+
def Xform "GameObject_19"
18+
{
19+
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
20+
uniform token[] xformOpOrder = ["xformOp:transform"]
21+
22+
def Xform "Shadows_20"
23+
{
24+
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
25+
uniform token[] xformOpOrder = ["xformOp:transform"]
26+
27+
def Xform "Shadow1_23" (
28+
prepend apiSchemas = ["MaterialBindingAPI"]
29+
prepend references = @./geometries/Geometry_7.usd@</Geometry>
30+
)
31+
{
32+
rel material:binding = </Materials/Material_5>
33+
matrix4d xformOp:transform = ( (0.7227923689262957, -6.524213866211724e-7, -0.5760579247048901, 0), (0.2046202329458557, 0.000001901808820767934, 0.2567414611888293, 0), (0.000003151849124212561, -1.0191191961221802, 0.000005052769658335941, 0), (-0.595999956, 0, -0.0440000035, 1) )
34+
uniform token[] xformOpOrder = ["xformOp:transform"]
35+
}
36+
37+
def Xform "Shadow2_24" (
38+
prepend apiSchemas = ["MaterialBindingAPI"]
39+
prepend references = @./geometries/Geometry_7.usd@</Geometry>
40+
)
41+
{
42+
rel material:binding = </Materials/Material_5>
43+
matrix4d xformOp:transform = ( (0.9162692, 0, 0, 0), (0, -1.5225203843506833e-8, 0.2861209362252038, 0), (0, -1.0102997337605517, -5.376055171802598e-8, 0), (0.618000031, 0, -0.00100000016, 1) )
44+
uniform token[] xformOpOrder = ["xformOp:transform"]
45+
}
46+
47+
def Xform "Shadow3_22" (
48+
prepend apiSchemas = ["MaterialBindingAPI"]
49+
prepend references = @./geometries/Geometry_8.usd@</Geometry>
50+
)
51+
{
52+
rel material:binding = </Materials/Material_6>
53+
matrix4d xformOp:transform = ( (1.86491, 0, 0, 0), (0, -4.863094950971973e-8, 0.9139012486309495, 0), (0, -1.0103000537605686, -5.3760568746019645e-8, 0), (-0.023999989, -0.00505150063, -0.0009999997, 1) )
54+
uniform token[] xformOpOrder = ["xformOp:transform"]
55+
}
56+
}
57+
}
5058
}
59+
5160
def "Materials"
5261
{
53-
5462
def Material "Material_5"
5563
{
64+
token inputs:frame:stPrimvarName = "st"
65+
token outputs:surface.connect = </Materials/Material_5/PreviewSurface.outputs:surface>
66+
5667
def Shader "PreviewSurface"
5768
{
5869
uniform token info:id = "UsdPreviewSurface"
5970
color3f inputs:diffuseColor.connect = </Materials/Material_5/Texture_6_diffuse.outputs:rgb>
71+
float inputs:metallic = 0
72+
float inputs:opacity = 0.50980395
6073
float inputs:opacity.connect = </Materials/Material_5/Texture_6_diffuse.outputs:a>
6174
float inputs:roughness = 1
62-
float inputs:metallic = 0
63-
float inputs:opacity = 0.509803951
6475
int inputs:useSpecularWorkflow = 0
6576
token outputs:surface
6677
}
6778

68-
token outputs:surface.connect = </Materials/Material_5/PreviewSurface.outputs:surface>
69-
token inputs:frame:stPrimvarName = "st"
70-
7179
def Shader "uvReader_st"
7280
{
7381
uniform token info:id = "UsdPrimvarReader_float2"
82+
float2 inputs:fallback = (0, 0)
7483
token inputs:varname.connect = </Materials/Material_5.inputs:frame:stPrimvarName>
75-
float2 inputs:fallback = (0.0, 0.0)
7684
float2 outputs:result
7785
}
7886

79-
8087
def Shader "Transform2d_diffuse" (
8188
sdrMetadata = {
8289
string role = "math"
@@ -94,45 +101,43 @@ def "Materials"
94101
{
95102
uniform token info:id = "UsdUVTexture"
96103
asset inputs:file = @textures/Texture_6_000000_0.509803951.png@
104+
float4 inputs:scale = (0, 0, 0, 0.50980395)
97105
float2 inputs:st.connect = </Materials/Material_5/Transform2d_diffuse.outputs:result>
98-
float4 inputs:scale = (0, 0, 0, 0.509803951)
99106
token inputs:wrapS = "repeat"
100107
token inputs:wrapT = "repeat"
101-
float outputs:r
102-
float outputs:g
108+
float outputs:a
103109
float outputs:b
110+
float outputs:g
111+
float outputs:r
104112
float3 outputs:rgb
105-
float outputs:a
106113
}
107-
108114
}
109115

110116
def Material "Material_6"
111117
{
118+
token inputs:frame:stPrimvarName = "st"
119+
token outputs:surface.connect = </Materials/Material_6/PreviewSurface.outputs:surface>
120+
112121
def Shader "PreviewSurface"
113122
{
114123
uniform token info:id = "UsdPreviewSurface"
115124
color3f inputs:diffuseColor.connect = </Materials/Material_6/Texture_6_diffuse.outputs:rgb>
125+
float inputs:metallic = 0
126+
float inputs:opacity = 0.29803923
116127
float inputs:opacity.connect = </Materials/Material_6/Texture_6_diffuse.outputs:a>
117128
float inputs:roughness = 1
118-
float inputs:metallic = 0
119-
float inputs:opacity = 0.298039228
120129
int inputs:useSpecularWorkflow = 0
121130
token outputs:surface
122131
}
123132

124-
token outputs:surface.connect = </Materials/Material_6/PreviewSurface.outputs:surface>
125-
token inputs:frame:stPrimvarName = "st"
126-
127133
def Shader "uvReader_st"
128134
{
129135
uniform token info:id = "UsdPrimvarReader_float2"
136+
float2 inputs:fallback = (0, 0)
130137
token inputs:varname.connect = </Materials/Material_6.inputs:frame:stPrimvarName>
131-
float2 inputs:fallback = (0.0, 0.0)
132138
float2 outputs:result
133139
}
134140

135-
136141
def Shader "Transform2d_diffuse" (
137142
sdrMetadata = {
138143
string role = "math"
@@ -150,18 +155,16 @@ def "Materials"
150155
{
151156
uniform token info:id = "UsdUVTexture"
152157
asset inputs:file = @textures/Texture_6_000000_0.298039228.png@
158+
float4 inputs:scale = (0, 0, 0, 0.29803923)
153159
float2 inputs:st.connect = </Materials/Material_6/Transform2d_diffuse.outputs:result>
154-
float4 inputs:scale = (0, 0, 0, 0.298039228)
155160
token inputs:wrapS = "repeat"
156161
token inputs:wrapT = "repeat"
157-
float outputs:r
158-
float outputs:g
162+
float outputs:a
159163
float outputs:b
164+
float outputs:g
165+
float outputs:r
160166
float3 outputs:rgb
161-
float outputs:a
162167
}
163-
164168
}
165-
166169
}
167170

652 Bytes
Binary file not shown.

test_assets/AlphaBlendSortTest/geometries/Geometry_7.usd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66
metersPerUnit = 1
77
upAxis = "Y"
8+
defaultPrim = "Geometry"
89
)
910

1011
def "Geometry"

test_assets/AlphaBlendSortTest/geometries/Geometry_8.usd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66
metersPerUnit = 1
77
upAxis = "Y"
8+
defaultPrim = "Geometry"
89
)
910

1011
def "Geometry"
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#usda 1.0
22
(
33
defaultPrim = "Ball"
4+
upAxis = "Y"
5+
metersPerUnit = 0.01
46
)
57

68
def Sphere "Ball"
79
{
8-
double radius = 14.0
9-
}
10+
double radius = 14
11+
}
12+

test_assets/CompositionPuzzles/PayloadAndReference/problem/animation.usda

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#usda 1.0
22
(
33
defaultPrim = "World"
4+
upAxis = "Y"
5+
metersPerUnit = 0.01
46
)
57

68
def Xform "World"
@@ -10,4 +12,5 @@ def Xform "World"
1012
)
1113
{
1214
}
13-
}
15+
}
16+

0 commit comments

Comments
 (0)