Integrations Guides
Babylon.js
Usage
2min
To use the Sense of Space geometry streaming in Babylon JS you will need to include the following script tag in your html in addition to your Babylon JS:
Now you need to define the following model parameters (described in Supported Parameters) :
You can list only necessary parameters, or miss this part at all (then the streamer will use the default parameters listed in Supported Parameters).
Now you can add one or more streamable models to your scene by calling createStreamableModel with data, scene and camera as parameters:
After that you need to get a modelStreamer object and add its update function at the render loop. E.g.
Updated 25 Mar 2024
Did this page help you?