Skip to main content

@novorender/web_app / downloadScene

Function: downloadScene()

function downloadScene(
baseUrl,
configPath,
abortSignal?): Promise<RenderStateScene>

Download scene from url.

Parameters

ParameterTypeDescription
baseUrlURLUrl of the containing folder, e.g. https://blobs.novorender.com/<sceneid>/
configPathstringThe relative path to the scene json file, e.g. webgl2_bin/<scenehash>
abortSignal?AbortSignalOptional abort signal.

Returns

Promise<RenderStateScene>

A render state scene ready to be assigned to RenderState.scene.

Remarks

The loaded state does not contain any geometry, only the data required to start geometry streaming. It may take several frames for any geometry to appear, and several seconds for it to fully resolve.

Defined in

@novorender/core3d/scene.ts:22