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]>
40 lines
1.8 KiB
Text
40 lines
1.8 KiB
Text
#usda 1.0
|
|
(
|
|
customLayerData = {
|
|
string "wai:audio" = "5753434e03000100000000ae00000002b00000006e00000003200100002d0000007b2264697374616e6365223a227761692e617564696f2e646973742e696e76657273655f636c616d706564222c226475726174696f6e223a3531322c22666c6f6f725f6c61796f7574223a2273746572656f222c226e756d65726963223a227761692e6465742e66697865643634222c2270616e5f6c6177223a227761692e617564696f2e70616e2e737172745f636f6e7374706f776572222c2273616d706c655f72617465223a34383030307d000001000000040404040404040404040404040404040404040404040404040404040404040400000000010000000200000000000000000000000000faffffff00000000000000000000000001000000000200000000000000000000060000000000000000000000000000000100000000000100000004040404040404040404040404040404040404040404040404040404040404040004000000746f6e65000000"
|
|
string "wai:media" = "[{\"name\":\"tone\",\"asset\":\"0404040404040404040404040404040404040404040404040404040404040404\",\"capability\":\"wai.audio.flac\"}]"
|
|
string "wai:profile" = "wai-scene/1"
|
|
}
|
|
defaultPrim = "World"
|
|
endTimeCode = 512
|
|
startTimeCode = 0
|
|
timeCodesPerSecond = 48000
|
|
)
|
|
|
|
def Xform "World"
|
|
{
|
|
def Scope "Audio"
|
|
{
|
|
def Xform "object_0"
|
|
{
|
|
custom string wai:source = "0404040404040404040404040404040404040404040404040404040404040404"
|
|
double3 xformOp:translate = (-6, 0, 1)
|
|
double3 xformOp:translate.timeSamples = {
|
|
0: (-6, 0, 1),
|
|
512: (6, 0, 1),
|
|
}
|
|
uniform token[] xformOpOrder = ["xformOp:translate"]
|
|
}
|
|
}
|
|
|
|
def Scope "Media"
|
|
{
|
|
def "media_0" (
|
|
prepend references = @urn:wai:asset:0404040404040404040404040404040404040404040404040404040404040404@
|
|
)
|
|
{
|
|
custom string wai:capability = "wai.audio.flac"
|
|
custom string wai:name = "tone"
|
|
}
|
|
}
|
|
}
|