<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive'  version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.0.xsd ' >
<head>
<meta name='titlecontent='Figure23_5BindingFogsAndBackgrounds.x3d'/>
<meta name='creatorcontent='Figure 23.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch23/23fig05.htm '/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='22 September 2000'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Fog and background pairs are bound and unbound by touching shapes within the world.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23Fog/Figure23_5BindingFogsAndBackgrounds.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: AlternateBackground, AlternateFog, TouchWorld

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo title='Figure23_5BindingFogsAndBackgrounds.x3d'/>
<Viewpoint description='Binding fog and background pairsposition='0 3 32'/>
<NavigationInfo type='"FLY" "EXAMINE" "ANY"'/>
<Fog visibilityRange='40'/>
<Background groundColor='0 0 0skyColor='1 1 1'/>
<!-- ROUTE information for AlternateFog node:  [from TouchWorld.isActive to set_bind ] -->
<Fog DEF='AlternateFogcolor='0.05 0 0.3visibilityRange='40'/>

<!-- ROUTE information for AlternateBackground node:  [from TouchWorld.isActive to set_bind ] -->
<Background DEF='AlternateBackgroundgroundColor='0 0 0skyColor='0.05 0 0.3'/>

<Group> </Group>
< ROUTE  fromNode=' TouchWorld' fromField='isActive' toNode=' AlternateFog' toField='set_bind'/>
< ROUTE  fromNode=' TouchWorld' fromField='isActive' toNode=' AlternateBackground' toField='set_bind'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: AlternateBackground, AlternateFog, TouchWorld

Index for Viewpoint node: Viewpoint_1
-->

Event Graph ROUTE Table with 2 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

TouchWorld
TouchSensor
isActive
SFBool

ROUTE
event to
(1)
AlternateFog
Fog
set_bind
SFBool
TouchWorld
TouchSensor
isActive
SFBool

ROUTE
event to
(1)
AlternateBackground
Background
set_bind
SFBool


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23Fog/Figure23_5BindingFogsAndBackgroundsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23Fog/Figure23_5BindingFogsAndBackgrounds.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->