Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class Scene

Scenes allow you to set up what and where is to be rendered by Three.V8. This is where you place objects, lights and cameras.

class Scene extends Object3D

Inheritance Object3D –> Scene

Name Description
Constructors  
Scene() Creates a new Scene.
Properties  
background Object used as background
indirectLight Object used as the indirect light-source.
fog Object representing the particle substance in the air.
Methods  
getBoundingBox Get the bounding-box of the whole scene

Constructors

Scene()

Scene()

Create a new scene object.

Properties

See the base Object3D class for common properties.

background

.background: Background

Object used as background.

Readable and writable.

indirectLight

.indirectLight: IndirectLight

Object used as the indirect light-source.

Readable and writable.

fog

.fog: Fog

Object representing the particle substance in the air.

Readable and writable.

Methods

See the base Object3D class for common methods.

getBoundingBox()

.getBoundingBox() : Object

Get the bounding-box of the whole scene.

The returned object contains a ‘minPos’ property and a ‘maxPos’ property, each of which is a Vector3.