Integrations Guides
Three.js
Making a low-quality preview
1 min
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 let object3d = await createstreamablemodelpreview(modelparams, 1 1024); // 1mb preview scene add(object3d); 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