1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <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'> |
4 | <head> |
5 | <meta name='title' content='Figure11_1CafeSignSwitchResolutions.x3d'/> |
6 | <meta name='creator' content='Figure 11.1, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
7 | <meta name='reference' content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch11/11fig01a.htm'/> |
8 | <meta name='reference' content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch11/11fig01b.htm'/> |
9 | <meta name='reference' content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch11/11fig01c.htm'/> |
10 | <meta name='translator' content='Don Brutzman'/> |
11 | <meta name='created' content='16 August 2000'/> |
12 | <meta name='modified' content='20 October 2019'/> |
13 | <meta name='description' content='Three versions of a cafe sign within a Switch node, selected by the whichChoice field.'/> |
14 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter11Grouping/Figure11_1CafeSignSwitchResolutions.x3d'/> |
15 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
16 | <meta name='license' content='../../license.html'/> |
17 | </head> |
18 | <Scene> |
19 | <WorldInfo title='Figure11_1CafeSignSwitchResolutions.x3d'/> |
20 | <Viewpoint description='Cafe sign' position='0 0 8'/> |
21 | <!-- Modify the whichChoice value in this Switch to 0, 1 or 2 to see the various versions of the sign. Select whichChoice= -1 to show nothing. --> |
22 | <Switch whichChoice='2'> |
23 | <Group DEF='Child0'> |
24 |
<!-- Shape
CAFE_TEXT_SHAPE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Shape DEF='CAFE_TEXT_SHAPE'> |
25 | <Text string='"Cafe"'> |
26 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
27 | </Text> |
28 |
<!-- Appearance
GLOW_WHITE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Appearance DEF='GLOW_WHITE'> |
29 | <Material diffuseColor='0 0 0' emissiveColor='1 1 1'/> |
30 | </Appearance> |
31 | </Shape> |
32 | |
33 | <Shape> |
34 | <Cylinder height='0.1' radius='1.3'/> |
35 | <Appearance> |
36 | <Material DEF='BALL_COLOR_2' diffuseColor='0 0.3 0.8'/> |
37 | </Appearance> |
38 | </Shape> |
39 | </Transform> |
40 | </Group> |
41 | <Group DEF='Child1'> |
42 | <Shape USE='CAFE_TEXT_SHAPE'/> |
43 | <Transform USE='BLUE_DISK'/> |
44 |
<!-- Transform
WHITE_DISK is a DEF node that has 1 USE node: USE_1 -->
<Transform DEF='WHITE_DISK' rotation='1 0 0 -1.57' translation='0 0.3 -0.1'> |
45 | <Shape> |
46 | <Cylinder height='0.08' radius='1.4'/> |
47 | <Appearance USE='GLOW_WHITE'/> |
48 | </Shape> |
49 | </Transform> |
50 | </Group> |
51 | <Group DEF='Child2'> |
52 | <Shape USE='CAFE_TEXT_SHAPE'/> |
53 | <Transform USE='BLUE_DISK'/> |
54 | <Transform USE='WHITE_DISK'/> |
55 | <Transform DEF='RED_AND_WHITE_BOXES' translation='0 0.3 -0.1'> |
56 | <Shape> |
57 | <Box size='4 1.2 0.06'/> |
58 | <Appearance> |
59 | <Material diffuseColor='0.8 0 0'/> |
60 | </Appearance> |
61 | </Shape> |
62 | <Shape> |
63 | <Box size='4.2 1.4 0.04'/> |
64 | <Appearance USE='GLOW_WHITE'/> |
65 | </Shape> |
66 | </Transform> |
67 | </Group> |
68 | </Switch> |
69 | </Scene> |
70 | </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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->