Skip to content

Commit

Permalink
Update testusdview and usdImagingGL tests to specify Z-up
Browse files Browse the repository at this point in the history
The baseline images for these tests were generated under
Pixar's studio-specific configuration which specifies
Z-up by default. This change authors that explicitly into
the test assets to isolate them from site-specific settings
and ensure consistent behavior.

This is part of PR #1743 from @nvidia-jomiller.

(Internal change: 2216745)
  • Loading branch information
sunyab authored and pixar-oss committed Feb 22, 2022
1 parent a9c3cba commit f0b034e
Show file tree
Hide file tree
Showing 103 changed files with 205 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "Implicits" (
add variantSets = "shapeVariant"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "Implicits" (
add variantSets = "shapeVariant"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "Implicits" (
add variantSets = "shapeVariant"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
startTimeCode = 1
endTimeCode = 3
upAxis = "Z"
)

def Sphere "sphere" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 40
startFrame = 1
upAxis = "Z"
)

def Xform "Meshes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
defaultPrim = "SimpleSphere"
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Mesh "SimpleSphere" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

class Mesh "MeshProto"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#usda 1.0
(
upAxis = "Z"
)


def Xform "Geom"
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Scope "Looks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 40
startFrame = 1
upAxis = "Z"
)

def Xform "Meshes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 2
startFrame = 1
upAxis = "Z"
)

def Xform "World" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endTimeCode = 1
startTimeCode = 0
upAxis = "Z"
)
# Test the robust handling of color and opacity primvars in
# UsdImagingGprimAdapter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
doc = "Test Subdiv Tags"
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Mesh "pPlane1" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 40
startFrame = 1
upAxis = "Z"
)

def Scope "World"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
doc = "Test DoubleSided Imaging"
endFrame = 40
startFrame = 1
upAxis = "Z"
)

def Xform "Meshes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
class Mesh "QuadMeshProto"
{
point3f[] points = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
class Mesh "QuadMeshProto"
{
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
class Mesh "QuadMeshProto"
{
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#usda 1.0
(
upAxis = "Z"
subLayers = [@primitives.usda@]
fallbackPrimTypes = {
token[] UnknownCone = ["UnknownCylinder", "Cylinder"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Capsule "MyCapsule"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Capsule "MyCapsule"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "DormRoomDouble" (
kind = "prop"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "World"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Xform "ProtoRed"
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
doc = "Test Hole Imaging"
endFrame = 40
startFrame = 1
upAxis = "Z"
)

def Mesh "pPlane1" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
doc = "Implicit Geometry"
endFrame = 20
startFrame = 1
upAxis = "Z"
)

def Xform "Fallback"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

class "_Depth_2"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

class "_Depth_2"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
class "_Depth_2"
{
custom token purpose = "proxy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Xform "Parent" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Xform "Mesh" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""
endFrame = 10
startFrame = 1
upAxis = "Z"
)

def Xform "Mesh" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Xform "Cube"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Xform "Cube"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Cube "Cube"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(
endFrame = 1
startFrame = 1
upAxis = "Z"
)

def Xform "Cubes_1" (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
def Sphere "mxSphere" {
rel material:binding = </Materials/MaterialX/Materials/Default_White>
color3f[] primvars:displayColor = [(0.1, 0.5, 0.8)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#usda 1.0

(
upAxis = "Z"
)

def Scope "MaterialX" (
references = [
@./geomprop.mtlx@</MaterialX>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#usda 1.0
(
upAxis = "Z"
)

def Sphere "Default" {
rel material:binding = </MaterialX/Materials/Default>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
def Scope "MaterialX_Default" {
def Sphere "MxUsdDefault" {
rel material:binding = </Materials/MaterialX/Materials/USD_Default>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
def Scope "MaterialX_Gold" {
def Sphere "MxUsdGold" {
rel material:binding = </Materials/MaterialX/Materials/USD_Gold>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#usda 1.0

(
upAxis = "Z"
)
def Sphere "ball1" {
rel material:binding = </Materials/MaterialX/Materials/Default_Smooth>
color3f[] primvars:displayColor = [(0.1, 0.5, 0.8)]
Expand Down
Loading

0 comments on commit f0b034e

Please sign in to comment.