Class: X3DBackgroundNode

X3D: 3.3
Component: EnvironmentalEffects
Status:
fully implemented

x3dom.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
groundColor MFColor (0,0,0) [0,1] Color of the ground
isActive SFBool false X3DBindableNode
metadata SFNode X3DMetadataObject X3DBindableNode Field to add metadata information
skyAngle MFFloat [] [0, pi] Angle of the sky
skyColor MFColor (0,0,0) [0,1] Color of the sky
transparency SFFloat 0/1 [0,1] Transparency of the background