Skip to main content

function.downloadScene

API > downloadScene

Function: downloadScene

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.

Source

@novorender/core3d/scene.ts:22

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.