Command line tool and node.js/browser library for transforming glTF files with OMI glTF extensions.
- MOZ_hubs_components
- audio
- audio-params
- OMI_audio_emitter
Currently the CLI tool converts the audio/audio-params MOZ_hubs_components to OMI_audio_emitter. It does not support other extensions at this time.
The general use-case is to convert from a file exported from Mozilla Spoke or the Hubs Blender Addon to the OMI standard extensions.
npx omi-gltf-transform ./spoke-export.glb ./omi-output.glb
npx omi-gltf-transform ./spoke-export.glb ./omi-output.gltf
The following classes and functions are exported from the library and can be used in more complex gltf-transform pipelines.
Transform function that converts the audio/audio-params MOZ_hubs_components to OMI_audio_emitter.
Adds support for importing / exporting the OMI_audio_emitter extension.
Adds support for importing / exporting the following components of the MOZ_hubs_components extension:
- audio
- audio-params