Babylon.js
This document provides a guide for integrating Polygon Streaming web player for Babylon.js using the NPM package.
Getting Started - Sample Project
npm install
npm run devCode Explanation and Usage
import * as BABYLON from '@babylonjs/core/Legacy/legacy';
import '@babylonjs/loaders/glTF';
import { StreamController, loadWasmModule } from '@polygon-streaming/web-player-babylonjs';import ammoWasmJsUrl from './lib/ammo.wasm.js?url';
import ammoWasmWasmUrl from './lib/ammo.wasm.wasm?url';
import ammoJsUrl from './lib/ammo.js?url';
loadWasmModule('Ammo', ammoWasmJsUrl, ammoWasmWasmUrl, ammoJsUrl).then(ammoInstance => {Using Your Own 3D Model
Stream Controller Parameters
Parameter
Description
Options
Option
Description
Default Value
addModel Parameters
Parameter
Description
Options
Option
Description
Default Value
Last updated
Was this helpful?