Doc > Nodes > OBJ > Scene

Doc > Nodes > OBJ > Scene

Creates a THREE.Scene.

Description

By default, all objects created will be added under the same master scene. This is enough in most cases, but there might be times where you want to use a custom one. For instance:

  • you would like to change the background color or the environment.
  • you would like to have a fog.
  • You may also use multiple scenes, if you want to switch from one to the other.

For those situtation, you can parent the objects under a scene node, and set your camera scene parameter to point to it. The camera will then render this scene instead of the master one.

Parameters

Name Type Description
autoUpdate boolean autoUpdate
backgroundMode integer set background mode (none, color or texture)
bgColor color background color
bgTexture node_path background texture
useEnvironment boolean toggle on to use an environment map
environment node_path environment map
useFog boolean toggle on to use fog
fogType integer fog type
fogColor color fog color
fogNear float fog near
fogFar float fog far
fogDensity float fog density
useOverrideMaterial boolean toggle on to override all materials
overrideMaterial node_path material