1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
|
3 | <X3D profile='Immersive' version='3.2' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'> |
4 | <head> |
5 | <component level='1' name='DIS'/> |
6 | <meta name='title' content='TestImages.x3d'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='20 January 2009'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='description' content='Verify renderability of png image textures using a Box.'/> |
11 | <meta name='reference' content='TestCube.x3d'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestImages.x3d'/> |
13 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='TestImages.x3d'/> |
18 | <Background skyColor='0.8 0.8 0.9'/> |
19 | <Viewpoint description='Front view' orientation='0 1 0 1.57' position='8 0 0'/> |
20 |
<!-- ROUTE information for BoxSwitcher node:
[from Sequencer.value_changed to whichChoice
]
-->
<Switch DEF='BoxSwitcher' whichChoice='-1'> |
21 | <Shape> |
22 | |
23 | <Appearance> |
24 | <ImageTexture url=' "images/front.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/front.png " '/> |
25 | </Appearance> |
26 | </Shape> |
27 | <Shape> |
28 | <Box USE='UnitBox'/> |
29 | <Appearance> |
30 | <ImageTexture url=' "images/back.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/back.png " '/> |
31 | </Appearance> |
32 | </Shape> |
33 | <Shape> |
34 | <Box USE='UnitBox'/> |
35 | <Appearance> |
36 | <ImageTexture url=' "images/left.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/left.png " '/> |
37 | </Appearance> |
38 | </Shape> |
39 | <Shape> |
40 | <Box USE='UnitBox'/> |
41 | <Appearance> |
42 | <ImageTexture url=' "images/right.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/right.png " '/> |
43 | </Appearance> |
44 | </Shape> |
45 | <Shape> |
46 | <Box USE='UnitBox'/> |
47 | <Appearance> |
48 | <ImageTexture url=' "images/top.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/top.png " '/> |
49 | </Appearance> |
50 | </Shape> |
51 | <Shape> |
52 | <Box USE='UnitBox'/> |
53 | <Appearance> |
54 | <ImageTexture url=' "images/bottom.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/bottom.png " '/> |
55 | </Appearance> |
56 | </Shape> |
57 | </Switch> |
58 |
<!-- ROUTE information for Clock node:
[from fraction_changed to Sequencer.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='12' loop='true'/> |
59 |
<!-- ROUTE information for Sequencer node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to BoxSwitcher.whichChoice
]
-->
<IntegerSequencer DEF='Sequencer' key='0 0.1667 0.3333 0.5 0.6667 0.8333 1' keyValue='0 1 2 3 4 5 0'/> |
60 | < ROUTE fromNode='Clock' fromField='fraction_changed' toNode='Sequencer' toField='set_fraction'/> |
61 | < ROUTE fromNode='Sequencer' fromField='value_changed' toNode='BoxSwitcher' toField='whichChoice'/> |
62 | <Viewpoint description='Back view' orientation='0 1 0 -1.57' position='-8 0 0'/> |
63 | <Viewpoint description='Left view' position='0 0 8'/> |
64 | <Viewpoint description='Right view' orientation='0 1 0 3.1416' position='0 0 -8'/> |
65 | <Viewpoint description='Top view' orientation='1 0 0 -1.57' position='0 8 0'/> |
66 | <Viewpoint description='Bottom view' orientation='1 0 0 1.57' position='0 -8 0'/> |
67 | </Scene> |
68 | </X3D> |
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.
Clock
TimeSensor fraction_changed SFFloat |
Sequencer
IntegerSequencer set_fraction SFFloat |
then
|
Sequencer
IntegerSequencer value_changed SFInt32 |
BoxSwitcher
Switch whichChoice SFInt32 |
<!--
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. -->