Abstract
Protected
constructorInstantiate a new AbstractScene
Protected
_canvasProtected
_engineProtected
_filesProtected
Readonly
_initialProtected
_modelProtected
_observableProtected
_sceneDefine the canvas to use for rendering
The engine class is responsible for interfacing with all lower-level APIs such as WebGL and Audio
Class used to help managing file picking and drag-n-drop
ObservableManager manages all observables
Represent a scene to be rendered by the engine
SceneManager manages all resources in the scene
Protected
_createProtected
_registerGLTFLoaderProtected
_resizeRelease all resources held by AbstractScene
Asynchronously import a glTF or glb file into the scene. Either a URL path to the file must be provided, or the base64 based string of a glb file (starts with 'data:').
URL path to the glTF or glb file, or base64 based string (starts with 'data:')
Optional
disableAnimation: booleanwhether disable animation of the loaded model (default: false)
Optional
modelName: stringthe name of model
Optional
options: LoadGltfOptionsoptional config
A promise of Model
Import a glTF or glb model from files into the scene.
Notes: The loaded model can be found: 1) in AbstractScene.sceneManager.models map 2) by adding an observer to AbstractScene.observableManager.onModelLoadedObservable
A list of files, which can be a GLB file or a GLTF file along with multiple texture files and bin files
Register a new action to be preformed after a gltf/glb scene file has been loaded
a function which takes a scene as input and preforms some process after it has been loaded then returns void
Capture a screenshot of the current rendering
This parameter can be set to a single number or to an object with the following (optional) properties: precision, width, height. If a single number is passed, it will be used for both width and height. If an object is passed, the screenshot size will be derived from the parameters. The precision property is a multiplier allowing rendering at a higher or lower resolution
whether to use CreateScreenshotUsingRenderTarget function. Default: false
base64 encoded string
Turn on/off a specific lighting rig
the name of lighting, i.e. the key in Config.lightingConfig
Optional
visible: booleanforce the lighting to be visible or invisible
Asynchronously update the scene's configuration, including camera, lights, environment, etc.
the delta that should be configured. This includes only the changes.
Adjust camara zoom-in level on models. Only works for ArcRotateCamera with FramingBehavior enabled. FramingBehavior must be configured before loading models.
A list of models used to determine camera zoom-in level
Abstract class used to provide common properties and functions for creating and managing the viewer