Difference between revisions of "Background"

From Web3D.org
Jump to: navigation, search
(PI instead of garbage)
Line 1: Line 1:
 
*[[Node Reference]]
 
*[[Node Reference]]
 
==Background==
 
==Background==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/enveffects.html#Background Background]
 +
 +
 
<pre>
 
<pre>
 
Background : X3DBackgroundNode {
 
Background : X3DBackgroundNode {
 
   SFBool  [in]    set_bind
 
   SFBool  [in]    set_bind
   MFFloat  [in,out] groundAngle []    [0,π/2]
+
   MFFloat  [in,out] groundAngle []    [0,&pi;/2]
   MFColor  [in,out] groundColor []    [0,1]
+
   MFColor  [in,out] groundColor []    [0,1]
   MFString [in,out] backUrl     []    [urn]
+
   MFString [in,out] backUrl     []    [URI]
   MFString [in,out] bottomUrl   []    [urn]
+
   MFString [in,out] bottomUrl   []    [URI]
   MFString [in,out] frontUrl   []    [urn]
+
   MFString [in,out] frontUrl     []    [URI]
   MFString [in,out] leftUrl     []    [urn]
+
   MFString [in,out] leftUrl     []    [URI]
   SFNode  [in,out] metadata   NULL  [X3DMetadataObject]
+
   SFNode  [in,out] metadata     NULL  [X3DMetadataObject]
   MFString [in,out] rightUrl   []    [urn]
+
   MFString [in,out] rightUrl     []    [URI]
   MFString [in,out] topUrl     []    [urn]
+
   MFString [in,out] topUrl       []    [URI]
   MFFloat  [in,out] skyAngle   []    [0,π]
+
   MFFloat  [in,out] skyAngle     []    [0,&pi;]
   MFColor  [in,out] skyColor   0 0 0 [0,1]
+
   MFColor  [in,out] skyColor     0 0 0 [0,1]
 +
  SFFloat  [in,out] transparency 0    [0,1]
 
   SFTime  [out]    bindTime
 
   SFTime  [out]    bindTime
 
   SFBool  [out]    isBound
 
   SFBool  [out]    isBound
Line 20: Line 25:
 
</pre>
 
</pre>
  
A background node that uses six static images to compose the backdrop. The common fields of the Background node are described in 24.2 Concepts section of the X3D Specification. For the backUrl, bottomUrl, frontUrl, leftUrl, rightUrl, topUrl fields, browsers shall support the JPEG and PNG image file formats, and in addition, may support any other image format (EXAMPLE  CGM) that can be rendered into a 2D image. Support for the GIF format is recommended (including transparency).
+
==DTD Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from X3DMetadataObject for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* There are no limits on the acceptable range of values for the ''groundAngle'' field.
 +
* There are no limits on the acceptable range of values for the ''groundColor'' field.
 +
* There are no limits on the acceptable range of values for the ''skyAngle'' field.
 +
* There are no limits on the acceptable range of values for the ''skyColor'' field.
 +
* There are no limits on the acceptable range of values for the ''transparency'' field.
 +
 
 +
==Schema Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from X3DMetadataObject for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* There are no limits on the acceptable range of values for the ''groundAngle'' field.
 +
* There are no limits on the acceptable range of values for the ''groundColor'' field.
 +
* There are no limits on the acceptable range of values for the ''skyAngle'' field.
 +
* There are no limits on the acceptable range of values for the ''skyColor'' field.
 +
* There ''transparency'' field is restricted to normalized values, i.e. greater than or equal to zero and less than or equal to one.
 +
 
 +
==Schematron validation==
 +
 
 +
TBD
 
*[[Node Reference]]
 
*[[Node Reference]]

Revision as of 06:37, 21 April 2015

Background

Specification Link: Background


Background : X3DBackgroundNode {
  SFBool   [in]     set_bind
  MFFloat  [in,out] groundAngle  []    [0,π/2]
  MFColor  [in,out] groundColor  []    [0,1]
  MFString [in,out] backUrl      []    [URI]
  MFString [in,out] bottomUrl    []    [URI]
  MFString [in,out] frontUrl     []    [URI]
  MFString [in,out] leftUrl      []    [URI]
  SFNode   [in,out] metadata     NULL  [X3DMetadataObject]
  MFString [in,out] rightUrl     []    [URI]
  MFString [in,out] topUrl       []    [URI]
  MFFloat  [in,out] skyAngle     []    [0,π]
  MFColor  [in,out] skyColor     0 0 0 [0,1]
  SFFloat  [in,out] transparency 0     [0,1]
  SFTime   [out]    bindTime
  SFBool   [out]    isBound
}

DTD Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • There are no limits on the acceptable range of values for the groundAngle field.
  • There are no limits on the acceptable range of values for the groundColor field.
  • There are no limits on the acceptable range of values for the skyAngle field.
  • There are no limits on the acceptable range of values for the skyColor field.
  • There are no limits on the acceptable range of values for the transparency field.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • There are no limits on the acceptable range of values for the groundAngle field.
  • There are no limits on the acceptable range of values for the groundColor field.
  • There are no limits on the acceptable range of values for the skyAngle field.
  • There are no limits on the acceptable range of values for the skyColor field.
  • There transparency field is restricted to normalized values, i.e. greater than or equal to zero and less than or equal to one.

Schematron validation

TBD