Files
tinyusdz/web/demo/public/assets/cube-xform.usda
Syoyo Fujita db3e703a9f fix type is not printed.
fix array print is shorten up to 10 items.
2025-10-21 07:36:20 +09:00

145 lines
6.7 KiB
Plaintext
Executable File

#usda 1.0
(
defaultPrim = "root"
doc = "Blender v4.5.1 LTS"
endTimeCode = 250
metersPerUnit = 1
startTimeCode = 1
timeCodesPerSecond = 24
upAxis = "Z"
)
def Xform "root" (
customData = {
dictionary Blender = {
bool generated = 1
}
}
)
{
def Xform "Cube"
{
custom string userProperties:blender:object_name = "Cube"
float3 xformOp:rotateXYZ.timeSamples = {
1: (0.12325, 0.10150001, 0.12325),
2: (0.47600022, 0.39200005, 0.47600016),
3: (1.0327499, 0.8504999, 1.0327499),
4: (1.7679998, 1.4559997, 1.7679998),
5: (2.6562495, 2.1875002, 2.6562495),
6: (3.6719995, 3.024, 3.6719995),
7: (4.78975, 3.944501, 4.78975),
8: (5.984, 4.928, 5.984),
9: (7.229248, 5.9534984, 7.229247),
10: (8.499999, 6.999999, 8.499999),
11: (9.770749, 8.0465, 9.770749),
12: (11.016, 9.071999, 11.015999),
13: (12.210247, 10.055497, 12.210247),
14: (13.327999, 10.976002, 13.327998),
15: (14.343747, 11.812501, 14.343747),
16: (15.232001, 12.544, 15.232001),
17: (15.967251, 13.1495, 15.967251),
18: (16.523998, 13.608002, 16.524),
19: (16.87675, 13.898501, 16.87675),
20: (17.000002, 14.000002, 17),
}
float3 xformOp:scale.timeSamples = {
1: (1.004205, 1.0025375, 1.004205),
2: (1.01624, 1.0097998, 1.0162399),
3: (1.035235, 1.0212625, 1.035235),
4: (1.06032, 1.0364001, 1.06032),
5: (1.090625, 1.0546875, 1.090625),
6: (1.12528, 1.0756, 1.12528),
7: (1.163415, 1.0986125, 1.1634151),
8: (1.20416, 1.1231998, 1.20416),
9: (1.246645, 1.1488377, 1.246645),
10: (1.29, 1.1750001, 1.29),
11: (1.3333548, 1.2011625, 1.3333548),
12: (1.3758398, 1.2268001, 1.3758398),
13: (1.4165851, 1.2513875, 1.4165851),
14: (1.4547199, 1.2744, 1.4547198),
15: (1.4893749, 1.2953126, 1.489375),
16: (1.5196799, 1.3136, 1.5196799),
17: (1.5447648, 1.3287375, 1.5447648),
18: (1.5637599, 1.3402, 1.56376),
19: (1.5757949, 1.3474625, 1.575795),
20: (1.5799999, 1.35, 1.5799999),
}
double3 xformOp:translate.timeSamples = {
1: (-0.014500000514090061, -0.004495000466704369, -0.006887500640004873),
2: (-0.0560000017285347, -0.017360001802444458, -0.026600001379847527),
3: (-0.12149999290704727, -0.037664998322725296, -0.05771248787641525),
4: (-0.20799998939037323, -0.06447999179363251, -0.09879998862743378),
5: (-0.3124999403953552, -0.09687498956918716, -0.1484374850988388),
6: (-0.43199998140335083, -0.13391998410224915, -0.2051999568939209),
7: (-0.563499927520752, -0.17468498647212982, -0.2676624655723572),
8: (-0.7039999961853027, -0.21823999285697937, -0.3343999683856964),
9: (-0.8504999876022339, -0.26365500688552856, -0.40398746728897095),
10: (-0.9999998807907104, -0.3099999725818634, -0.47499996423721313),
11: (-1.1494998931884766, -0.35634496808052063, -0.5460124015808105),
12: (-1.2960000038146973, -0.4017599821090698, -0.6155998706817627),
13: (-1.4364999532699585, -0.4453149735927582, -0.6823374032974243),
14: (-1.5679998397827148, -0.48607996106147766, -0.7447999119758606),
15: (-1.6874998807907104, -0.5231249928474426, -0.801562488079071),
16: (-1.7920000553131104, -0.5555199980735779, -0.8512000441551208),
17: (-1.87850022315979, -0.5823349356651306, -0.8922876119613647),
18: (-1.944000005722046, -0.6026400327682495, -0.9234000444412231),
19: (-1.9854998588562012, -0.6155049800872803, -0.9431124925613403),
20: (-2, -0.6200000047683716, -0.949999988079071),
}
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
def Mesh "Cube" (
active = true
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
uniform bool doubleSided = 1
float3[] extent = [(-1, -1, -1), (1, 1, 1)]
int[] faceVertexCounts = [4, 4, 4, 4, 4, 4]
int[] faceVertexIndices = [0, 4, 6, 2, 3, 2, 6, 7, 7, 6, 4, 5, 5, 1, 3, 7, 1, 0, 2, 3, 5, 4, 0, 1]
rel material:binding = </root/_materials/Material>
normal3f[] normals = [(0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, -1, 0), (0, -1, 0), (0, -1, 0), (0, -1, 0), (-1, 0, 0), (-1, 0, 0), (-1, 0, 0), (-1, 0, 0), (0, 0, -1), (0, 0, -1), (0, 0, -1), (0, 0, -1), (1, 0, 0), (1, 0, 0), (1, 0, 0), (1, 0, 0), (0, 1, 0), (0, 1, 0), (0, 1, 0), (0, 1, 0)] (
interpolation = "faceVarying"
)
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:st = [(0.625, 0.5), (0.875, 0.5), (0.875, 0.75), (0.625, 0.75), (0.375, 0.75), (0.625, 0.75), (0.625, 1), (0.375, 1), (0.375, 0), (0.625, 0), (0.625, 0.25), (0.375, 0.25), (0.125, 0.5), (0.375, 0.5), (0.375, 0.75), (0.125, 0.75), (0.375, 0.5), (0.625, 0.5), (0.625, 0.75), (0.375, 0.75), (0.375, 0.25), (0.625, 0.25), (0.625, 0.5), (0.375, 0.5)] (
interpolation = "faceVarying"
)
uniform token subdivisionScheme = "none"
custom string userProperties:blender:data_name = "Cube"
}
}
def Scope "_materials"
{
def Material "Material"
{
token outputs:surface.connect = </root/_materials/Material/Principled_BSDF.outputs:surface>
custom string userProperties:blender:data_name = "Material"
def Shader "Principled_BSDF"
{
uniform token info:id = "UsdPreviewSurface"
float inputs:clearcoat = 0
float inputs:clearcoatRoughness = 0.03
color3f inputs:diffuseColor = (0.8, 0.8, 0.8)
float inputs:ior = 1.45
float inputs:metallic = 0
float inputs:opacity = 1
float inputs:roughness = 0.5
float inputs:specular = 0.5
token outputs:surface
}
}
}
def DomeLight "env_light"
{
float inputs:intensity = 1
asset inputs:texture:file = @.\textures\color_121212.hdr@
float3 xformOp:rotateXYZ = (90, 1.2722219e-14, 90)
uniform token[] xformOpOrder = ["xformOp:rotateXYZ"]
}
}