function.downloadScene
API > downloadScene
Function: downloadScene
downloadScene(
baseUrl
,configPath
,abortSignal
?):Promise
\<RenderStateScene
>
Download scene from url.
Parameters
Parameter | Type | Description |
---|---|---|
baseUrl | URL | Url of the containing folder, e.g. https://blobs.novorender.com/<sceneid>/ |
configPath | string | The relative path to the scene json file, e.g. webgl2_bin/<scenehash> |
abortSignal ? | AbortSignal | Optional 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.