Updating USD golden file and exporter_test.py

This commit is contained in:
Abhishek Joshi
2024-08-16 12:06:25 -05:00
parent 58dc62c4ec
commit 39cbe5d5b0
6 changed files with 62 additions and 33 deletions
+33 -15
View File
@@ -5,7 +5,7 @@
"""
endTimeCode = 1
startTimeCode = 0
timeCodesPerSecond = 24
timeCodesPerSecond = 60
upAxis = "Z"
)
@@ -13,48 +13,66 @@ def Xform "World"
{
def Xform "Light_Xform_0"
{
double3 xformOp:translate
double3 xformOp:translate.timeSamples = {
0: (0, -3.674234628677368, 3.674234628677368),
}
uniform token[] xformOpOrder = ["xformOp:translate"]
def SphereLight "Light_0"
{
color3f inputs:color = (0.4, 0.4, 0.4)
float inputs:intensity = 10000
bool inputs:normalize = 1
float inputs:radius = 0.3
bool treatAsPoint = 0
}
}
def Xform "CubeMesh_Xform_white_box"
def Xform "Camera_Xform_closeup"
{
matrix4d xformOp:transform.timeSamples = {
0: ( (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 1) ),
0: ( (1, 0, -0, 0), (0, 0.009999499656260014, 0.9999499917030334, 0), (0, -0.9999499917030334, 0.009999499656260014, 0), (0, -6, 0, 1) ),
}
uniform token[] xformOpOrder = ["xformOp:transform"]
def Mesh "CubeMesh_white_box" (
def Camera "Camera_closeup"
{
float2 clippingRange = (0.0001, 1000000)
float focalLength = 12
float focusDistance = 400
float horizontalAperture = 12
}
}
def Xform "Mesh_Xform_white_box_id0_geom"
{
token visibility.timeSamples = {
0: "inherited",
1: "invisible",
}
float3 xformOp:scale
matrix4d xformOp:transform.timeSamples = {
0: ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ),
}
uniform token[] xformOpOrder = ["xformOp:transform", "xformOp:scale"]
def Mesh "Mesh_white_box_id0_geom" (
apiSchemas = ["MaterialBindingAPI"]
)
{
int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
int[] faceVertexIndices = [4, 7, 5, 4, 6, 7, 0, 2, 4, 2, 6, 4, 0, 1, 2, 1, 3, 2, 1, 5, 7, 1, 7, 3, 2, 3, 7, 2, 7, 6, 0, 4, 1, 1, 4, 5]
rel material:binding = </World/_materials/Material_white_box>
rel material:binding = </World/_materials/Material_white_box_id0_geom>
point3f[] points = [(-1, -1, -1), (1, -1, -1), (-1, -1, 1), (1, -1, 1), (-1, 1, -1), (1, 1, -1), (-1, 1, 1), (1, 1, 1)]
texCoord2f[] primvars:UVMap = [] (
interpolation = "faceVarying"
)
int[] primvars:UVMap:indices = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]
uniform token subdivisionScheme = "none"
token visibility.timeSamples = {
0: "inherited",
}
}
}
def "_materials"
{
def Material "Material_white_box"
def Material "Material_white_box_id0_geom"
{
token outputs:surface.connect = </World/_materials/Material_white_box/Principled_BSDF.outputs:surface>
token outputs:surface.connect = </World/_materials/Material_white_box_id0_geom/Principled_BSDF.outputs:surface>
def Shader "Principled_BSDF"
{