Class: X3DBackgroundNode

X3D: 3.3
Component: EnvironmentalEffects
Status:
fully implemented

.nodeTypes. X3DBackgroundNode

X3DBackgroundNode is the abstract type from which all backgrounds inherit. X3DBackgroundNode is a bindable node that, when bound, defines the panoramic background for the scene.

HTML Encoding and Default Values

<X3DBackgroundNode bind='false' crossOrigin='""' description='""' groundAngle='[]' groundColor='(0,0,0)' isActive='false' metadata='X3DMetadataObject' skyAngle='[]' skyColor='(0,0,0)' transparency='0/1' ></X3DBackgroundNode>

Inheritance


Constructor

X3DBackgroundNode(ctx)

Constructor for X3DBackgroundNode

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
bind SFBool false X3DBindableNode Pushes/pops the node on/from the top of the bindable stack
crossOrigin SFString "" Cross Origin Mode
description SFString "" X3DBindableNode Description of the bindable node
groundAngle MFFloat [] [0, pi] Angle of the ground Multiple values are possible
groundColor MFColor (0,0,0) [0,1] Color of the ground Multiple color values are possible. Define 1 more color than the number of ground angles.
isActive SFBool false X3DBindableNode
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
skyAngle MFFloat [] [0, pi] Angle of the sky Multiple values are possible
skyColor MFColor (0,0,0) [0,1] Color of the sky Multiple color values are possible. Define 1 more color than the number of sky angles.
transparency SFFloat 0/1 [0,1] Transparency of the background