| 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='28 December 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_ITE-FlagRotating.png' />
|
| 23 |
<meta name='Image' content='images/HelloPortugalX_ITEPlayground.png' />
|
| 24 |
<meta name='Image' content='images/HelloPortugalX3DOM.png' />
|
| 25 |
<meta name='Image' content='images/HelloPortugalX3DOMEditor.png' />
|
| 26 | <meta name='reference' content='https://www.w3.org/International'/> |
| 27 | <meta name='reference' content='https://de.wikipedia.org/wiki/Liste_von_Hallo-Welt-Programmen/H%C3%B6here_Programmiersprachen'/> |
| 28 | <meta name='reference' content='https://en.wikipedia.org/wiki/Percent-encoding'/> |
| 29 | <meta name='reference' content='https://helloworldcollection.de/#VRML'/> |
| 30 | <meta name='reference' content='https://en.wiktionary.org/wiki/Hello_World'/> |
| 31 | <meta name='reference' content='https://en.wikipedia.org/wiki/%22Hello,%20World!%22_program'/> |
| 32 | <meta name='reference' content='https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world'/> |
| 33 | <meta name='reference' content='https://www.youtube.com/channel/UCSOnGlgAFxkWg8ilg-JEbAQ'/> |
| 34 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugal.x3d '/> |
| 35 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 36 | <meta name='license' content='../license.html'/> |
| 37 | </head> |
| 38 | <Scene> |
| 39 | <WorldInfo title='HelloPortugal.x3d'/> |
| 40 | <Background skyColor='1 0.84 0.26'/> |
| 41 | <NavigationInfo type='"EXAMINE" "LOOKAT" "ANY"'/> |
| 42 | <Viewpoint DEF='ViewpointEntry' description='Olá Portugal! Divirta-se com o X3D!'/> |
| 43 |
<!-- ROUTE information for ViewpointRotation node:
[from isBound to SpinClock.enabled
]
-->
<Viewpoint DEF='ViewpointRotation' description='rotate the flag'/> |
| 44 | <Anchor description='Wikipedia: Tourism in Portugal' url=' "https://en.wikipedia.org/wiki/Tourism_in_Portugal" '> |
| 45 | <Transform translation='0 -2 0'> |
| 46 | <Transform translation='0 4.8 0'> |
| 47 | <Shape DEF='OlaShape'> |
| 48 | <Text string='"Olá Portugal!"'> |
| 49 | <!-- https://translate.google.com/?sl=auto&tl=pt-PT&text=Hello%20Portugal!&op=translate --> |
| 50 |
<!-- FontStyle
CenteredFontStyle is a DEF node that has 1 USE node: USE_1 --> <FontStyle DEF='CenteredFontStyle' justify='"MIDDLE" "MIDDLE"'/> |
| 51 | </Text> |
| 52 |
<!-- Appearance
BlackAppearance is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='BlackAppearance'> |
| 53 | <Material diffuseColor='0.01 0.4 0.01'/> |
| 54 | </Appearance> |
| 55 | </Shape> |
| 56 | </Transform> |
| 57 | <Shape> |
| 58 | <Text string='"Divirta-se com o X3D!" "Have fun with X3D!"'> |
| 59 | <FontStyle USE='CenteredFontStyle'/> |
| 60 | </Text> |
| 61 | <Appearance USE='BlackAppearance'/> |
| 62 | </Shape> |
| 63 |
<!-- 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'> |
| 64 | <Shape> |
| 65 | <!-- image is 600px x 400px --> |
| 66 | <Box size='6 4 0.01'/> |
| 67 | <Appearance> |
| 68 | <Material/> |
| 69 | <!-- https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png --> |
| 70 | <!-- although not specified by X3D 4.0, SVG is an allowable format and so it can be included in the list --> |
| 71 |
<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
" '/>
|
| 72 | </Appearance> |
| 73 | </Shape> |
| 74 | </Transform> |
| 75 | </Transform> |
| 76 | </Anchor> |
| 77 |
<!-- 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'/> |
| 78 |
<!-- 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'/> |
| 79 | < ROUTE fromNode='ViewpointRotation' fromField='isBound' toNode='SpinClock' toField='enabled'/> |
| 80 | < ROUTE fromNode='SpinClock' fromField='fraction_changed' toNode='SpinInterpolator' toField='set_fraction'/> |
| 81 | < ROUTE fromNode='SpinInterpolator' fromField='value_changed' toNode='PortugueseFlagTransform' toField='set_rotation'/> |
| 82 | </Scene> |
| 83 | </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 |
| line 44
Anchor |
description='Wikipedia: Tourism in Portugal' User-interaction hint for this node. |
<!--
Color-coding 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.
-->