<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='set_skycolor2.x3d'/>
<meta name='referencecontent=' http://www.nist.gov/vrml.html '/>
<meta name='referencecontent=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='infocontent='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, http://www.web3d.org/working-groups/x3d'/>
<meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='15 April 2017'/>
<meta name='descriptioncontent='Test browser to assign different skycolors to a set of angles in the skyAngle field. Four Background node are defined in the local coordinate system. All of them belong to the same grouping node (Group node). The test is started by clicking on the text as indicated when the test is first loaded. After clicking on the appropriate color name, the test should generate a sky color of variations of the same color (the one clicked on). This is done by specifying a number of different skycolor angles. There are five colors and four angles defined. No ground colors are defined at all.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set_skycolor2.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<NavigationInfo headlight='falsetype='"EXAMINE" "WALK" "FLY" "ANY"'/>
<Group>
<Viewpoint DEF='the-viewdescription='Front Viewposition='0 0 20'/>
</Group>
<!-- ROUTE information for grays node:  [from color-back1.value_out to set_bind ] -->
<Background DEF='graysgroundColor='0 0 0skyAngle='1.35 1.45 1.52 1.57skyColor='0.41176 0.41176 0.41176 0.74509 0.74509 0.74509 0.8 0.8 0.8 0.82745 0.82745 0.82745 1 1 1'/>
<!-- ROUTE information for blues node:  [from color-back2.value_out to set_bind ] -->
<Background DEF='bluesgroundColor='0 0 0skyAngle='1.35 1.45 1.52 1.57skyColor='0 0 1 0.11764 0.5747 1 0 0.74901 1 0.52941 0.80784 0.92156 1 1 1'/>
<!-- ROUTE information for yellows node:  [from color-back3.value_out to set_bind ] -->
<Background DEF='yellowsgroundColor='0 0 0skyAngle='1.35 1.45 1.52 1.57skyColor='1 1 0 0.8549 0.64705 0.12549 1 0.84313 0 0.93333 0.86666 0.5098 1 1 1'/>
<!-- ROUTE information for oranges node:  [from color-back4.value_out to set_bind ] -->
<Background DEF='orangesgroundColor='0 0 0skyAngle='1.35 1.45 1.52 1.57skyColor='0.91372 0.58823 0.47843 1 0.64705 0 1 0.54901 0 1 0.49803 0.31372 1 1 1'/>
<Transform translation='0 0 10'>
<Transform scale='0.02 0.02 0.02translation='-5.4 -2 0'>
<Shape>
<Appearance>
<Material ambientIntensity='1diffuseColor='0 1 0emissiveColor='0 1 0'/>
</Appearance>
<Text string='"CLICK BELOW TO SELECT SKY COLOR"'>
<FontStyle DEF='the-stylesize='29style='BOLD'/>
</Text>
</Shape>
</Transform>
<Transform scale='0.02 0.02 0.02translation='-5.4 -2.7 0'>
<Shape>
<Appearance DEF='the-appearance'>
<Material ambientIntensity='1diffuseColor='0 0 1emissiveColor='0 0 1'/>
</Appearance>
<Text string='"Grays"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- ROUTE information for the-touch1 node:  [from isActive to color-back1.value_in ] -->
<TouchSensor DEF='the-touch1description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='-5.4 -3.4 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Blues"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- ROUTE information for the-touch2 node:  [from isActive to color-back2.value_in ] -->
<TouchSensor DEF='the-touch2description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='1 -2.7 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Yellows"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- ROUTE information for the-touch3 node:  [from isActive to color-back3.value_in ] -->
<TouchSensor DEF='the-touch3description='touch to activate'/>
</Transform>
<Transform scale='0.02 0.02 0.02translation='1 -3.4 0'>
<Shape>
<Appearance USE='the-appearance'/>
<Text string='"Oranges"'>
<FontStyle USE='the-style'/>
</Text>
</Shape>
<!-- ROUTE information for the-touch4 node:  [from isActive to color-back4.value_in ] -->
<TouchSensor DEF='the-touch4description='touch to activate'/>
</Transform>
</Transform>
<!-- ROUTE information for color-back1 node:  [from the-touch1.isActive to value_in ] [from value_out to grays.set_bind ] -->
<Script DEF='color-back1'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      
ecmascript:
function value_in (the_value)
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}

    
]]>
</Script>
<!-- ROUTE information for color-back2 node:  [from the-touch2.isActive to value_in ] [from value_out to blues.set_bind ] -->
<Script DEF='color-back2'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      
ecmascript:
function value_in (the_value)
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}

    
]]>
</Script>
<!-- ROUTE information for color-back3 node:  [from the-touch3.isActive to value_in ] [from value_out to yellows.set_bind ] -->
<Script DEF='color-back3'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      
ecmascript:
function value_in (the_value)
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}

    
]]>
</Script>
<!-- ROUTE information for color-back4 node:  [from the-touch4.isActive to value_in ] [from value_out to oranges.set_bind ] -->
<Script DEF='color-back4'>
<field name='value_intype='SFBoolaccessType='inputOnly'/>
<field name='value_outtype='SFBoolaccessType='outputOnly'/>
<![CDATA[
      
ecmascript:
function value_in (the_value)
{
	if (the_value == true)
	{
		value_out = true;
	}
	else
	{
		value_out = true;
	}
}

    
]]>
</Script>
<ROUTE fromNode='the-touch1fromField='isActivetoNode='color-back1toField='value_in'/>
<ROUTE fromNode='the-touch2fromField='isActivetoNode='color-back2toField='value_in'/>
<ROUTE fromNode='the-touch3fromField='isActivetoNode='color-back3toField='value_in'/>
<ROUTE fromNode='the-touch4fromField='isActivetoNode='color-back4toField='value_in'/>
<ROUTE fromNode='color-back1fromField='value_outtoNode='graystoField='set_bind'/>
<ROUTE fromNode='color-back2fromField='value_outtoNode='bluestoField='set_bind'/>
<ROUTE fromNode='color-back3fromField='value_outtoNode='yellowstoField='set_bind'/>
<ROUTE fromNode='color-back4fromField='value_outtoNode='orangestoField='set_bind'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : blues, color-back1, color-back2, color-back3, color-back4, grays, oranges, the-appearance, the-style, the-touch1, the-touch2, the-touch3, the-touch4, the-view, yellows

Index for Viewpoint image : the-view
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D extensibility)
-->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->