Skip to content
modavis-projectPublic

About

Unity package for importing and running Virtual Acoustic Object (VAO) 0.4.0 carriers

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MODAVIS VAO Importer for Unity

GitHub prerelease VAO 0.4.0 persistent identifier

Import Virtual Acoustic Object (VAO) carriers into Unity. This release supports VAO 0.6.0 inspection and import alongside the existing 0.4.0 and pinned 0.5.0 readers. The package validates a .vao before extraction, creates a typed VaoPackageAsset, imports supported media, builds linked MIDI animations, and can generate a runtime prefab for desktop, mobile, and XR applications.

This is release candidate 0.6.0-rc.4. It targets Unity 6 (6000.0 or newer) and is tested with Unity 6000.5.9f1.

Install

For a local checkout:

  1. Open Window > Package Management > Package Manager in Unity.
  2. Click +, choose Install package from disk, and select this repository's package.json.

In Package Manager, choose Add package from git URL and enter:

https://github.com/modavis-project/vao-unity.git#v0.6.0-rc.4

Pin a tag in production projects; do not depend on the moving main branch.

Import a VAO

  1. Open Tools > MODAVIS > Import VAO….
  2. Select a .vao file. Review validation errors or warnings before continuing.
  3. Choose a destination below Assets/ and a materialization mode.
  4. Click Import.
  5. Drag the generated prefab into a scene and enter Play Mode with the Unity toolbar's Play button.

Dropping a .vao directly into Assets/ creates a lightweight VaoArchiveAsset. Its Inspector shows validation results and offers the same verified import workflow.

The importer creates the source descriptors, a typed package asset, a contract-matching materialization receipt, selected and digest-verified payload assets, and—when enabled—a prefab and runtime controls. Use Tools > MODAVIS > VAO Content Browser or the package asset Inspector to explore logical assets, realizations, relationships, scientific observations, physical components, protocol bindings, signal-transfer functions, profiles, rights, controls, presentations, acoustics, and materialization state.

For large carriers, choose Runtime Required, Selected Asset Groups, or Metadata Only. Dependencies of selected groups are included transitively. Unmaterialized realizations remain queryable and can later be acquired through the opt-in runtime materializer.

What the runtime supports

  • Sampled instruments with key/velocity mappings, variants, state-dependent selection, note release, and declared voice limits.
  • MIDI 1.0, MIDI 2.0 UMP, Standard MIDI File playback, and generated note-linked Unity animation clips.
  • Deterministic event scheduling, transitions, processes, routing, render bindings, PCG32/xoshiro256** random sources, and multimodal clock mapping.
  • Animator/PlayableGraph animation layers, masks, fades, sequences, additive/override blending, and independently rooted targets.
  • Media/program transport and presentation bundles containing declared artwork, captions, models, annotations, explanations, and animations.
  • Spatial anchors, coordinate conversion, tracker-neutral placement, and optional AR/XR/MIDI/glTF adapters without hard SDK dependencies.
  • Position-aware partitioned convolution for Unity-decodable PCM impulse responses and supported AES69-SOFA FIR data.
  • Explicit-consent runtime acquisition with host-controlled URL resolution, rights display, size and SHA-256 checks, cancellation, and a bounded verified cache.

The package preserves unsupported profile data as JSON and exposes host extension points. It does not reinterpret geometry acoustics, learned fields, MPEG-I scenes, non-FIR or multi-emitter SOFA data, specialized actuators, or application-specific hardware. See the support matrix and conformance and limits for the precise boundary.

Minimal runtime example

using Modavis.Vao;
using UnityEngine;

public sealed class VaoExample : MonoBehaviour
{
    [SerializeField] private VaoRuntimeObject vao;

    public void PlayMiddleC()
    {
        vao.GetComponent<VaoSamplePlayer>().NoteOn(60, 100);
    }

    public void ReleaseMiddleC()
    {
        vao.GetComponent<VaoSamplePlayer>().NoteOff(60);
    }
}

For live MIDI, forward messages through VaoMidiRouter:

var midi = GetComponent<Modavis.Vao.VaoMidiRouter>();
midi.ProcessMidi1(0x90, 60, 100);                 // MIDI 1.0 note-on
midi.ProcessMidi2Ump(0x40903c00u, 0xffff0000u); // MIDI 2.0 note-on

Reimport safely

Select a VaoPackageAsset and choose Preview and reimport. The preview validates the replacement first and reports graph, rights, payload, and materialization changes. Applying it stages a complete import, keeps stable package/prefab GUIDs and compatible prefab object IDs, preserves scene overrides and unmanaged host files, and restores the prior generated tree if verification fails.

Optional integrations

Open Tools > MODAVIS > Optional Integrations… to detect or explicitly install supported Unity packages. glTFast, AR Foundation, XR Interaction Toolkit, Vuforia, Minis, and MidiJack remain optional. Nothing is installed automatically, and the core assembly has no compile-time dependency on these SDKs.

Security model

Validation and Editor import are offline. Package-supplied code is never executed and external identifiers are never dereferenced during import. Before extraction, the reader checks the exact vendored schema set for the declared VAO format, semantic/profile rules, manifest/carrier binding, preservation closure, hashes, deterministic trace digests, strict JSON and numeric constraints, ZIP metadata, UTF-8 paths, traversal and portable-name collisions, entry counts, expanded sizes, and compression ratios.

Runtime downloads are disabled until a host provides an IVaoRepositoryResolver, enables acquisition, presents rights and access information, and obtains approval bound to the exact plan. See runtime materialization and SECURITY.md.

VAO 0.6.0 and MMIC

Unity verifies the released manifest and carrier schemas, the supported core records, and embedded payload hashes. The published VAO tools cover full profile conformance. Generic 0.6.0 imports recheck materialized bytes and retain unrecognized payload types as inert TextAssets.

When the inspector finds an MMIC profile, it offers a metadata-only import. The imported asset retains the exact source descriptors, profile declaration, asset inventory and extension JSON. MMIC domain validation, decoding, comparison, generation and playback belong to tools that implement that profile.

Documentation

Development and verification

./Scripts/run-unity-tests.sh
./Scripts/run-unity-playmode-tests.sh
./Scripts/run-unity-standalone-tests.sh
./Scripts/run-unity-il2cpp-build.sh
./Scripts/verify-release.sh

The test suite includes the published VAO 0.4.0 and pinned 0.5.0 minimal carriers, a migrated 0.6.0 carrier and an official synthetic MMIC carrier, profile descriptors, exact schema snapshot hashes, RFC 8785 trace canonicalization, specified PCG32/xoshiro sequences, archive-security cases, importer lifecycle tests, Play Mode behavior, and player-build checks. The 0.5.0 Kinoorgel acceptance run validates its bootstrap carrier and performs a metadata-only import without inventing a 3D representation.

Project context and acknowledgement

This work was developed as part of the MODAVIS doctoral research project (2022–2026). Dominik Ukolov's doctoral research was supported by the German Academic Scholarship Foundation (Studienstiftung des deutschen Volkes). Funding and affiliations do not imply endorsement of the project's technical or scientific claims.

Standard, citation, and license

See the VAO 0.6.0 release for the current standard. The 0.5.0 reader keeps its earlier, independently pinned contract described in the support matrix. Cite this version with CITATION.cff.

Plugin code is licensed under the MIT License.

About

Unity package for importing and running Virtual Acoustic Object (VAO) 0.4.0 carriers

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages