3min

Making a low-quality preview

You can also make easily a low-quality, static preview of a streamable model by calling createStreamableModelPreview. It takes two parameters:

  • A similar model parameters object as is passed to createStreamableModel
  • The target size of the preview model in kilobytes. The actual traffic may be different from the target value because the number of available LODs in the streamable model is limited.

The function will return a promise that will resolve to a THREE.Group object with a low-quality preview of the object.

JS
|

Note that some of the model parameters are not applicable in the context of the preview. Most importantly the quality variable has no effect on the quality, but the preview quality is defined solely by the target size of the model.



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