Integrations Guides

Three.js

1min

Three.js is a widely used, lightweight, cross-browser, general purpose 3D library written in javascript based on WebGL. Sense of Space Model Streaming is integrated with Three.js, so that you can add Streamable assets to Three.js based web sites, applications and games.

Plugin Structure

The plugin consists of two objects

  • Streamable model
    • A single model being streamed
  • Model streamer
    • A module responsible for handling the streaming of the models
    • The model streamer needs to be notified every frame

In the basic workflow you would start by creating a streamable model by calling createStreamableModel. This will automatically create a model streamer if it's not there yet.

After you've created at least one streamable model, you can get the model streamer by calling getModelStreamer.

To get started see Usage.

Updated 25 Mar 2024
Doc contributor
Doc contributor
Did this page help you?