1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
|
3 | <X3D profile='Immersive' version='4.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='HelloPortugal.x3d'/> |
6 | <meta name='description' content='HelloPortugal example scene to show Portuguese special characters, built for Web3D 2024 Conference Tutorial.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='24 September 2024'/> |
9 | <meta name='modified' content='21 October 2024'/> |
10 | <meta name='subject' content='Hello World, Portugal'/> |
11 | <meta name='reference' content='https://en.wikipedia.org/wiki/Portugal'/> |
12 | <meta name='Image' content='https://en.wikipedia.org/wiki/Portugal#/media/File:Flag_of_Portugal.svg'/> |
13 | <meta name='Image' content='https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png'/> |
14 | <meta name='Image' content='images/HelloPortugalCastleModelViewer.png'/> |
15 | <meta name='Image' content='images/HelloPortugalFreeWRL.png'/> |
16 | <meta name='Image' content='images/HelloPortugalH3DViewer.png'/> |
17 | <meta name='Image' content='images/HelloPortugalInstantReality.png'/> |
18 | <meta name='Image' content='images/HelloPortugalOctaga.png'/> |
19 | <meta name='reference' content='Completed https://github.com/castle-engine/view3dscene/issues/30#issuecomment-630715046'/> |
20 | <meta name='Image' content='images/HelloPortugalXj3d.png'/> |
21 | <meta name='Image' content='images/HelloPortugalX_ITE.png'/> |
22 | <meta name='Image' content='images/HelloPortugalX_ITEPlayground.png'/> |
23 | <meta name='Image' content='images/HelloPortugalX3DOM.png'/> |
24 | <meta name='Image' content='images/HelloPortugalX3DOMEditor.png'/> |
25 | <meta name='reference' content='https://www.w3.org/International'/> |
26 | <meta name='reference' content='https://de.wikipedia.org/wiki/Liste_von_Hallo-Welt-Programmen/H%C3%B6here_Programmiersprachen'/> |
27 | <meta name='reference' content='https://en.wikipedia.org/wiki/Percent-encoding'/> |
28 | <meta name='reference' content='https://helloworldcollection.de/#VRML'/> |
29 | <meta name='reference' content='https://en.wiktionary.org/wiki/Hello_World'/> |
30 | <meta name='reference' content='https://en.wikipedia.org/wiki/%22Hello,%20World!%22_program'/> |
31 | <meta name='reference' content='https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world'/> |
32 | <meta name='reference' content='https://www.youtube.com/channel/UCSOnGlgAFxkWg8ilg-JEbAQ'/> |
33 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugal.x3d'/> |
34 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
35 | <meta name='license' content='../license.html'/> |
36 | </head> |
37 | <Scene> |
38 | <WorldInfo title='HelloPortugal.x3d'/> |
39 | <Background skyColor='1 0.84 0.26'/> |
40 | <Viewpoint DEF='ViewpointEntry' description='Olá Portugal! Divirta-se com o X3D!'/> |
41 |
<!-- ROUTE information for ViewpointRotation node:
[from isBound to SpinClock.enabled
]
-->
<Viewpoint DEF='ViewpointRotation' description='rotate the flag'/> |
42 | <Anchor description='Wikipedia: Tourism in Portugal' url=' "https://en.wikipedia.org/wiki/Tourism_in_Portugal" '> |
43 | <Transform translation='0 -2 0'> |
44 | <Transform translation='0 4.8 0'> |
45 | <Shape DEF='OlaShape'> |
46 | <Text string='"Olá Portugal!"'> |
47 | <!-- https://translate.google.com/?sl=auto&tl=pt-PT&text=Hello%20World!&op=translate --> |
48 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
49 | </Text> |
50 |
<!-- Appearance
BlackAppearance is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='BlackAppearance'> |
51 | <Material diffuseColor='0.01 0.4 0.01'/> |
52 | </Appearance> |
53 | </Shape> |
54 | </Transform> |
55 | <Shape> |
56 | <Text string='"Divirta-se com o X3D!" "Have fun with X3D!"'> |
57 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
58 | </Text> |
59 | <Appearance USE='BlackAppearance'/> |
60 | </Shape> |
61 |
<!-- ROUTE information for PortugueseFlagTransform node:
[from SpinInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='PortugueseFlagTransform' scale='0.8 0.8 0.8' translation='0 2.6 0'> |
62 | <Shape> |
63 | <!-- image is 600px x 400px --> |
64 | <Box size='6 4 0.01'/> |
65 | <Appearance> |
66 | <Material/> |
67 | <!-- https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png --> |
68 | <!-- although not specified by X3D 4.0, SVG is an allowable format and so it can be included in the list --> |
69 | <ImageTexture DEF='FlagOfPortugalImage' description='Flag of Portugal' url=' "Flag_of_Portugal.svg" "Flag_of_Portugal.svg.png " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/Flag_of_Portugal.svg " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/Flag_of_Portugal.svg.png " '/> |
70 | </Appearance> |
71 | </Shape> |
72 | </Transform> |
73 | </Transform> |
74 | </Anchor> |
75 |
<!-- ROUTE information for SpinInterpolator node:
[from SpinClock.fraction_changed to set_fraction
]
[from value_changed to PortugueseFlagTransform.set_rotation
]
-->
<OrientationInterpolator DEF='SpinInterpolator' key='0 0.3333 0.6667 1' keyValue='0 1 0 0 0 1 0 2.094395 0 1 0 4.18879 0 1 0 0'/> |
76 |
<!-- ROUTE information for SpinClock node:
[from ViewpointRotation.isBound to enabled
]
[from fraction_changed to SpinInterpolator.set_fraction
]
-->
<TimeSensor DEF='SpinClock' cycleInterval='4' enabled='false' loop='true'/> |
77 | < ROUTE fromNode='ViewpointRotation' fromField='isBound' toNode='SpinClock' toField='enabled'/> |
78 | < ROUTE fromNode='SpinClock' fromField='fraction_changed' toNode='SpinInterpolator' toField='set_fraction'/> |
79 | < ROUTE fromNode='SpinInterpolator' fromField='value_changed' toNode='PortugueseFlagTransform' toField='set_rotation'/> |
80 | </Scene> |
81 | </X3D> |
Event Graph ROUTE Table entries with 3 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.
ViewpointRotation
Viewpoint isBound SFBool |
SpinClock
TimeSensor enabled SFBool |
then
|
SpinClock
TimeSensor fraction_changed SFFloat |
SpinInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
SpinInterpolator
OrientationInterpolator value_changed SFRotation |
PortugueseFlagTransform
Transform set_rotation SFRotation |
Anchor |
description='Wikipedia: Tourism in Portugal' User-interaction hint for this node. |
<!--
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. -->