X3D Model Documentation: HelloPortugal.x3d

  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='titlecontent='HelloPortugal.x3d'/>
  6            <meta name='descriptioncontent='HelloPortugal example scene to show Portuguese special characters, built for Web3D 2024 Conference Tutorial.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='24 September 2024'/>
  9            <meta name='modifiedcontent='21 October 2024'/>
 10            <meta name='subjectcontent='Hello World, Portugal'/>
 11            <meta name='referencecontent='https://en.wikipedia.org/wiki/Portugal'/>
 12            <meta name='Imagecontent='https://en.wikipedia.org/wiki/Portugal#/media/File:Flag_of_Portugal.svg'/>
 13            <meta name='Imagecontent='https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png'/>
 14            <meta name='Imagecontent='images/HelloPortugalCastleModelViewer.png'/>
 15            <meta name='Imagecontent='images/HelloPortugalFreeWRL.png'/>
 16            <meta name='Imagecontent='images/HelloPortugalH3DViewer.png'/>
 17            <meta name='Imagecontent='images/HelloPortugalInstantReality.png'/>
 18            <meta name='Imagecontent='images/HelloPortugalOctaga.png'/>
 19            <meta name='referencecontent='Completed https://github.com/castle-engine/view3dscene/issues/30#issuecomment-630715046'/>
 20            <meta name='Imagecontent='images/HelloPortugalXj3d.png'/>
 21            <meta name='Imagecontent='images/HelloPortugalX_ITE.png'/>
 22            <meta name='Imagecontent='images/HelloPortugalX_ITEPlayground.png'/>
 23            <meta name='Imagecontent='images/HelloPortugalX3DOM.png'/>
 24            <meta name='Imagecontent='images/HelloPortugalX3DOMEditor.png'/>
 25            <meta name='referencecontent='https://www.w3.org/International'/>
 26            <meta name='referencecontent='https://de.wikipedia.org/wiki/Liste_von_Hallo-Welt-Programmen/H%C3%B6here_Programmiersprachen'/>
 27            <meta name='referencecontent='https://en.wikipedia.org/wiki/Percent-encoding'/>
 28            <meta name='referencecontent='https://helloworldcollection.de/#VRML'/>
 29            <meta name='referencecontent='https://en.wiktionary.org/wiki/Hello_World'/>
 30            <meta name='referencecontent='https://en.wikipedia.org/wiki/%22Hello,%20World!%22_program'/>
 31            <meta name='referencecontent='https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world'/>
 32            <meta name='referencecontent='https://www.youtube.com/channel/UCSOnGlgAFxkWg8ilg-JEbAQ'/>
 33            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugal.x3d'/>
 34            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 35            <meta name='licensecontent='../license.html'/>
 36       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BlackAppearance, FlagOfPortugalImage, OlaShape, PortugueseFlagTransform, SpinClock, SpinInterpolator, ViewpointEntry, ViewpointRotation

Index for Viewpoint nodes: ViewpointEntry, ViewpointRotation
-->
 37       <Scene>
 38            <WorldInfo title='HelloPortugal.x3d'/>
 39            <Background skyColor='1 0.84 0.26'/>
 40            <Viewpoint DEF='ViewpointEntrydescription='Olá Portugal! Divirta-se com o X3D!'/>
 41 
          <!-- ROUTE information for ViewpointRotation node:  [from isBound to SpinClock.enabled ] -->
          <Viewpoint DEF='ViewpointRotationdescription='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='PortugueseFlagTransformscale='0.8 0.8 0.8translation='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='FlagOfPortugalImagedescription='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='SpinInterpolatorkey='0 0.3333 0.6667 1keyValue='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='SpinClockcycleInterval='4enabled='falseloop='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 shows event connections.
-->

<!-- to top Index for DEF nodes: BlackAppearance, FlagOfPortugalImage, OlaShape, PortugueseFlagTransform, SpinClock, SpinInterpolator, ViewpointEntry, ViewpointRotation

Index for Viewpoint nodes: ViewpointEntry, ViewpointRotation
-->
X3D Tooltips element index: Anchor, Appearance, Background, Box, FontStyle, head, ImageTexture, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, Text, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

ROUTE
event to
(1)
SpinClock
TimeSensor
enabled
SFBool
then
 
 
 
SpinClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
SpinInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
SpinInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
PortugueseFlagTransform
Transform
set_rotation
SFRotation


Anchor
description='Wikipedia: Tourism in Portugal' 
User-interaction hint for this node. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugalIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugal.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. -->