wai-rs scene_map (feature scene_map): a bundle (a WWLD world, a WSCN audio scene, timed media items by content hash) exported as a glTF 2.0 document with MPEG_media, MPEG_buffer_circular, MPEG_accessor_timed, MPEG_audio_spatial and MPEG_texture_video, and as a USDA layer of the USD Core Specification v1.0.1 (prims, translate ops, time samples, asset references by urn:wai:asset), each carrying the bundle's bytes exactly; imports read a WAI-written document back to the same bundle (refused unless re-exporting gives the same bytes) and a foreign one to new WAI bytes, refused where a value would not carry exactly. Corpus generator wai_scene_vectors and tests/scene_map.rs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
70 lines
3.4 KiB
Text
70 lines
3.4 KiB
Text
#usda 1.0
|
|
(
|
|
customLayerData = {
|
|
string "wai:media" = "[{\"name\":\"screen\",\"asset\":\"739363f10b53ad3a7f954385605fe0fcd12330dd5c4b4f2f17127c10542a132e\",\"capability\":\"wai.video.av1\",\"width\":64,\"height\":36},{\"name\":\"ambience\",\"asset\":\"08340a117bbb31aa2edb3ccf650c32a4b1703498aa15121153169792acba63e4\",\"capability\":\"wai.audio.flac\"}]"
|
|
string "wai:profile" = "wai-scene/1"
|
|
string "wai:world" = "57574c4404000100000000f90000000200010000e800000003e8010000630000000450020000000000007b22636865636b706f696e745f6576657279223a3630302c226e756d65726963223a227761692e6465742e66697865643634222c227265736f6c7665223a7b2264656661756c74223a227761692e776f726c642e7265736f6c76652e6c7777227d2c22726e67223a7b22616c67223a22786f736869726f3235362b2b222c2273656564223a2230303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030227d2c2273696d223a227761692e776f726c642e73696d2e6b696e656d6174696330222c227469636b5f72617465223a36307d0000000000000003000000227786eee6f53904e1bbd79468fff7c2380000000000008000000000000000c0fdffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000060f27ae393f098439aee225f345f40813800000000000000010000000000000002000000000000000300000000000000000000000000000000000000000000000000000000000000000000007b8a8e8142b739d33850b44c3cf75504380000005555555500000000000000000a00000000000040f8ffffff000000000100000000000000000000000000000000000000070000000000000002000000b88d2383bd7689e0225c0448fbd91b58e13eead2f634d82aac4ce603c47e65330008000000637562652e676c6208340a117bbb31aa2edb3ccf650c32a4b1703498aa15121153169792acba63e4010d000000616d6269656e63652e666c61630000000000"
|
|
}
|
|
defaultPrim = "World"
|
|
)
|
|
|
|
def Xform "World"
|
|
{
|
|
def Xform "node_227786eee6f53904e1bbd79468fff7c2"
|
|
{
|
|
double3 xformOp:translate = (0.5, -2.25, 0)
|
|
uniform token[] xformOpOrder = ["xformOp:translate"]
|
|
}
|
|
|
|
def Xform "node_60f27ae393f098439aee225f345f4081"
|
|
{
|
|
double3 xformOp:translate = (1, 2, 4)
|
|
uniform token[] xformOpOrder = ["xformOp:translate"]
|
|
}
|
|
|
|
def Xform "node_7b8a8e8142b739d33850b44c3cf75504"
|
|
{
|
|
double3 xformOp:translate = (0.3333333332557231, 10, -7.75)
|
|
uniform token[] xformOpOrder = ["xformOp:translate"]
|
|
}
|
|
|
|
def Scope "Assets"
|
|
{
|
|
def "asset_0" (
|
|
prepend references = @urn:wai:asset:b88d2383bd7689e0225c0448fbd91b58e13eead2f634d82aac4ce603c47e6533@
|
|
)
|
|
{
|
|
custom string wai:name = "cube.glb"
|
|
custom int wai:role = 0
|
|
}
|
|
|
|
def "asset_1" (
|
|
prepend references = @urn:wai:asset:08340a117bbb31aa2edb3ccf650c32a4b1703498aa15121153169792acba63e4@
|
|
)
|
|
{
|
|
custom string wai:name = "ambience.flac"
|
|
custom int wai:role = 1
|
|
}
|
|
}
|
|
|
|
def Scope "Media"
|
|
{
|
|
def "media_0" (
|
|
prepend references = @urn:wai:asset:739363f10b53ad3a7f954385605fe0fcd12330dd5c4b4f2f17127c10542a132e@
|
|
)
|
|
{
|
|
custom string wai:capability = "wai.video.av1"
|
|
custom int wai:height = 36
|
|
custom string wai:name = "screen"
|
|
custom int wai:width = 64
|
|
}
|
|
|
|
def "media_1" (
|
|
prepend references = @urn:wai:asset:08340a117bbb31aa2edb3ccf650c32a4b1703498aa15121153169792acba63e4@
|
|
)
|
|
{
|
|
custom string wai:capability = "wai.audio.flac"
|
|
custom string wai:name = "ambience"
|
|
}
|
|
}
|
|
}
|