3min

Usage



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:

HTML
|



Now you need to define the following model parameters (described in Supported Parameters) :

JS
|

You can list only necessary parameters, or miss this part at all (then the streamer will use the default parameters - that are listed in example).



Now you can add one or more streamable models to your scene by calling createStreamableModel with data, scene and camera as parameters:

JS
|



After that you need to get a modelStreamer object and add its update function at the rener loop. E.g.

JS
|











Updated 30 Jun 2022
Did this page help you?
Yes
No