<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Interchange'  version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd ' >
<head>
<meta name='titlecontent='Slabs.x3d'/>
<meta name='descriptioncontent='Slab World example illustrates use of Appearance and Material nodes to set the main shading color (diffuseColor), glow color (emissiveColor), and transparency level of a shape.'/>
<meta name='creatorcontent='David R. Nadeau'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/slabs.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0080.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Slabs.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Index for DEF nodes: Entry, Slab

Index for Viewpoint node: Entry
-->
<Scene>
<!-- Seven slabs are created, each using a Box node. Each slab is shaded a different material: -->
<!-- Slab Diffuse Emissive Transparency; 1. White white black 0.0; 2. Red black red 0.0; 3. Green green black 0.5; 4. Blue blue white 0.25; 5. Yellow yellow black 0.5; 6. Cyan cyan black 0.0; 7. Magenta red magenta 0.0 -->
<!-- Some PC browsers may not support transparency. Others may not support shading using both diffuse and emissive colors. So, your results may vary. -->
<!-- Things to experiment with: -->
<!-- Try different transparency levels. -->
<!-- Turn off the headlight on your VRML browser and observe which slabs glow. -->
<WorldInfo info='"Copyright (c) 1996, David R. Nadeau"title='Slab World'/>
<Viewpoint DEF='Entrydescription='Entry viewposition='0.0 1.66 15.0'/>
<NavigationInfo/>
<Transform translation='0.0 2.0 4.0'>
<Shape>
<Appearance>
<Material diffuseColor='1.0 1.0 1.0'/>
</Appearance>
<Box DEF='Slabsize='2.0 4.0 0.3'/>
</Shape>
</Transform>
<Transform translation='0.0 2.0 0.0'>
<Shape>
<Appearance>
<Material diffuseColor='0.0 0.0 0.0emissiveColor='1.0 0.0 0.0'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
<Transform translation='-3.0 2.0 2.0'>
<Shape>
<Appearance>
<Material diffuseColor='0.0 1.0 0.0transparency='0.5'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
<Transform translation='4.0 2.0 -2.0'>
<Shape>
<Appearance>
<Material diffuseColor='0.2 0.2 0.2emissiveColor='0.0 0.0 0.8transparency='0.25'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
<Transform translation='4.5 2.0 3.0'>
<Shape>
<Appearance>
<Material diffuseColor='1.0 1.0 0.0transparency='0.5'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
<Transform translation='-3.5 2.0 -5.0'>
<Shape>
<Appearance>
<Material diffuseColor='0.0 1.0 1.0'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
<Transform translation='2.0 2.0 -6.0'>
<Shape>
<Appearance>
<Material diffuseColor='0.5 0.0 0.0emissiveColor='0.5 0.0 0.5'/>
</Appearance>
<Box USE=' Slab'/>
</Shape>
</Transform>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF nodes: Entry, Slab

Index for Viewpoint node: Entry
-->
-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/SlabsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Slabs.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. -->