mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Add comprehensive timesamples test files for scalar and array types
Added 24 USDA test files covering scalar and array timesamples syntax: Scalar types (15 tests): - bool, int, uint, int64, uint64 - half, float, double - token, assetpath - vec2f, vec3f, vec4f, quatf, matrix4d Array types (9 tests): - bool[], int[], float[], double[], token[] - vec2f[], vec3f[], vec4f[], quatf[] Also added corresponding USDC binary format files generated via usdcat. Each test follows a simple template with single Prim and Attribute with 2-3 keyframes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
tests/usda/timesamples-array-bool-001.usda
Normal file
10
tests/usda/timesamples-array-bool-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_bool_array"
|
||||
{
|
||||
bool[] flags.timeSamples = {
|
||||
0: [false, true, false],
|
||||
10: [true, false, true],
|
||||
20: [false, false, true],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-double-001.usda
Normal file
10
tests/usda/timesamples-array-double-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_double_array"
|
||||
{
|
||||
double[] values.timeSamples = {
|
||||
0: [0.0, 1.0, 2.0],
|
||||
10: [3.141592653589793, 2.718281828459045],
|
||||
20: [-1.414213562373095, -2.236067977499790],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-float-001.usda
Normal file
10
tests/usda/timesamples-array-float-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_float_array"
|
||||
{
|
||||
float[] values.timeSamples = {
|
||||
0: [0.0, 1.0, 2.0],
|
||||
10: [3.14, 2.71, 1.41],
|
||||
20: [-1.5, -2.5, -3.5],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-int-001.usda
Normal file
10
tests/usda/timesamples-array-int-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_int_array"
|
||||
{
|
||||
int[] indices.timeSamples = {
|
||||
0: [0, 1, 2, 3],
|
||||
10: [10, 20, 30],
|
||||
20: [-5, -10, -15, -20],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-quatf-001.usda
Normal file
10
tests/usda/timesamples-array-quatf-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_quatf_array"
|
||||
{
|
||||
quatf[] rotations.timeSamples = {
|
||||
0: [(1.0, 0.0, 0.0, 0.0), (0.707, 0.707, 0.0, 0.0)],
|
||||
10: [(0.0, 1.0, 0.0, 0.0)],
|
||||
20: [(0.5, 0.5, 0.5, 0.5)],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-token-001.usda
Normal file
10
tests/usda/timesamples-array-token-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_token_array"
|
||||
{
|
||||
token[] modes.timeSamples = {
|
||||
0: ["idle", "waiting"],
|
||||
10: ["active", "running", "processing"],
|
||||
20: ["disabled"],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-vec2f-001.usda
Normal file
10
tests/usda/timesamples-array-vec2f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec2f_array"
|
||||
{
|
||||
float2[] uvs.timeSamples = {
|
||||
0: [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0)],
|
||||
10: [(0.5, 0.5)],
|
||||
20: [(0.0, 1.0), (1.0, 1.0)],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-vec3f-001.usda
Normal file
10
tests/usda/timesamples-array-vec3f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec3f_array"
|
||||
{
|
||||
float3[] positions.timeSamples = {
|
||||
0: [(0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (0.0, 1.0, 0.0)],
|
||||
10: [(1.0, 1.0, 1.0), (2.0, 2.0, 2.0)],
|
||||
20: [(-1.0, -1.0, -1.0)],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-array-vec4f-001.usda
Normal file
10
tests/usda/timesamples-array-vec4f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec4f_array"
|
||||
{
|
||||
float4[] colors.timeSamples = {
|
||||
0: [(1.0, 0.0, 0.0, 1.0), (0.0, 1.0, 0.0, 1.0)],
|
||||
10: [(0.0, 0.0, 1.0, 1.0)],
|
||||
20: [(1.0, 1.0, 1.0, 0.5), (0.0, 0.0, 0.0, 1.0)],
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-assetpath-001.usda
Normal file
10
tests/usda/timesamples-scalar-assetpath-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_assetpath"
|
||||
{
|
||||
asset texture.timeSamples = {
|
||||
0: @textures/wood.jpg@,
|
||||
10: @textures/metal.png@,
|
||||
20: @textures/concrete.exr@,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-bool-001.usda
Normal file
10
tests/usda/timesamples-scalar-bool-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_bool"
|
||||
{
|
||||
bool enabled.timeSamples = {
|
||||
0: false,
|
||||
10: true,
|
||||
20: false,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-double-001.usda
Normal file
10
tests/usda/timesamples-scalar-double-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_double"
|
||||
{
|
||||
double value.timeSamples = {
|
||||
0: 0.0,
|
||||
10: 3.141592653589793,
|
||||
20: -2.718281828459045,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-float-001.usda
Normal file
10
tests/usda/timesamples-scalar-float-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_float"
|
||||
{
|
||||
float value.timeSamples = {
|
||||
0: 0.0,
|
||||
10: 3.14159,
|
||||
20: -2.71828,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-half-001.usda
Normal file
10
tests/usda/timesamples-scalar-half-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_half"
|
||||
{
|
||||
half value.timeSamples = {
|
||||
0: 0.0,
|
||||
10: 1.5,
|
||||
20: -2.75,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-int-001.usda
Normal file
10
tests/usda/timesamples-scalar-int-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_int"
|
||||
{
|
||||
int count.timeSamples = {
|
||||
0: 0,
|
||||
10: 42,
|
||||
20: -100,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-int64-001.usda
Normal file
10
tests/usda/timesamples-scalar-int64-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_int64"
|
||||
{
|
||||
int64 bigcount.timeSamples = {
|
||||
0: 0,
|
||||
10: 9223372036854775807,
|
||||
20: -9223372036854775808,
|
||||
}
|
||||
}
|
||||
9
tests/usda/timesamples-scalar-matrix4d-001.usda
Normal file
9
tests/usda/timesamples-scalar-matrix4d-001.usda
Normal file
@@ -0,0 +1,9 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_matrix4d"
|
||||
{
|
||||
matrix4d transform.timeSamples = {
|
||||
0: ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ),
|
||||
10: ( (2, 0, 0, 0), (0, 2, 0, 0), (0, 0, 2, 0), (0, 0, 0, 1) ),
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-quatf-001.usda
Normal file
10
tests/usda/timesamples-scalar-quatf-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_quatf"
|
||||
{
|
||||
quatf rotation.timeSamples = {
|
||||
0: (1.0, 0.0, 0.0, 0.0),
|
||||
10: (0.707, 0.707, 0.0, 0.0),
|
||||
20: (0.0, 1.0, 0.0, 0.0),
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-token-001.usda
Normal file
10
tests/usda/timesamples-scalar-token-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_token"
|
||||
{
|
||||
token mode.timeSamples = {
|
||||
0: "idle",
|
||||
10: "active",
|
||||
20: "disabled",
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-uint-001.usda
Normal file
10
tests/usda/timesamples-scalar-uint-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_uint"
|
||||
{
|
||||
uint index.timeSamples = {
|
||||
0: 0,
|
||||
10: 42,
|
||||
20: 1000,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-uint64-001.usda
Normal file
10
tests/usda/timesamples-scalar-uint64-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_uint64"
|
||||
{
|
||||
uint64 bigindex.timeSamples = {
|
||||
0: 0,
|
||||
10: 18446744073709551615,
|
||||
20: 1000000000000,
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-vec2f-001.usda
Normal file
10
tests/usda/timesamples-scalar-vec2f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec2f"
|
||||
{
|
||||
float2 uv.timeSamples = {
|
||||
0: (0.0, 0.0),
|
||||
10: (0.5, 0.5),
|
||||
20: (1.0, 1.0),
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-vec3f-001.usda
Normal file
10
tests/usda/timesamples-scalar-vec3f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec3f"
|
||||
{
|
||||
float3 position.timeSamples = {
|
||||
0: (0.0, 0.0, 0.0),
|
||||
10: (1.0, 2.0, 3.0),
|
||||
20: (-1.0, -2.0, -3.0),
|
||||
}
|
||||
}
|
||||
10
tests/usda/timesamples-scalar-vec4f-001.usda
Normal file
10
tests/usda/timesamples-scalar-vec4f-001.usda
Normal file
@@ -0,0 +1,10 @@
|
||||
#usda 1.0
|
||||
|
||||
def Xform "test_vec4f"
|
||||
{
|
||||
float4 color.timeSamples = {
|
||||
0: (1.0, 0.0, 0.0, 1.0),
|
||||
10: (0.0, 1.0, 0.0, 1.0),
|
||||
20: (0.0, 0.0, 1.0, 0.5),
|
||||
}
|
||||
}
|
||||
BIN
tests/usdc/timesamples-array-bool-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-bool-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-double-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-double-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-float-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-float-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-int-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-int-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-quatf-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-quatf-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-token-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-token-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-vec2f-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-vec2f-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-vec3f-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-vec3f-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-array-vec4f-001.usdc
Normal file
BIN
tests/usdc/timesamples-array-vec4f-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-assetpath-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-assetpath-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-bool-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-bool-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-double-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-double-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-float-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-float-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-half-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-half-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-int-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-int-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-int64-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-int64-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-matrix4d-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-matrix4d-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-quatf-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-quatf-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-token-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-token-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-uint-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-uint-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-uint64-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-uint64-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-vec2f-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-vec2f-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-vec3f-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-vec3f-001.usdc
Normal file
Binary file not shown.
BIN
tests/usdc/timesamples-scalar-vec4f-001.usdc
Normal file
BIN
tests/usdc/timesamples-scalar-vec4f-001.usdc
Normal file
Binary file not shown.
Reference in New Issue
Block a user