0.1.5 • Published 2 years ago

three-omi v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

three-omi

A sandbox for reference implementations of OMI gltf-extensions for three.js

Installation

npm install -S three three-omi

OMI_audio_emitter Extension

import { AudioListener } from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { GLTFAudioEmitterExtension } from "three-omi";

// The extension needs a reference to your player's AudioEmitter
const audioListener = new AudioListener();

const gltfLoader = new GLTFLoader();
gltfLoader.register(parser => new GLTFAudioEmitterExtension(parser, audioListener));
const { scene } = await gltfLoader.loadAsync("OutdoorFestival.gltf");

Examples

A live version of the examples is running here.

Run the examples locally by running:

cd three-omi
npm install
npm run dev
0.1.5

2 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.0.1

3 years ago