<<VRML 2.0 - An Introductory view by examples

Background

[ground-html] [sky-html] [faces-html]    [run-ground] [run-sky] [run-faces] 

It defines the ground, sky, and textures elements of a scene. Conceptually a partial sphere (the ground) is enclosed inside of a full sphere (the sky).If more than one Background node exist in a scene the first encountered will be the active one. The natural horizont is at pi/2.


{ 
eventIn SFBool set_bind # if a TRUE value is received this node wil be the active one
exposedField MFFloat groundAngle [ ] # 0.0 (S. pole) to pi/2 (equator) (n values)
exposedField MFColor groundColor [ ] # n+1 values (0 to 1)
exposedField MFString backUrl [ ] # url's address for background
exposedField MFString bottomUrl [ ]
exposedField MFString frontUrl [ ]
exposedField MFString leftUrl [ ]
exposedField MFString rightUrl [ ]
exposedField MFString topUrl [ ]
exposedField MFFloat skyAngle [ ] # 0.0 (N. pole) to pi/2 (horizont) to pi (S. pole) (m values)
exposedField MFColor skycolor [ 0 0 0 ] # m+1 values (0 to 1)
eventOut SFBool isBound # sent whether the node is no more active
}

back, front, top, bottom, left, rightUrl define surrounding images. Often bottom and topUrl will not be specified to allow sky and ground to show.