HelloWorld.wrl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #VRML V2.0 utf8
  2. # X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt
  3. # https://www.web3d.org/x3d/content/X3dToVrml97.xslt
  4. # Generated using XSLT processor: Saxonica
  5. # [X3D] VRML V3.3 utf8
  6. # PROFILE Immersive
  7. # [X3D] version=3.3
  8. # [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.3.xsd
  9. # [head]
  10. # Alternate encodings: VRML97, X3D ClassicVRML Encoding, X3D Compressed Binary Encoding (CBE), X3DOM, JSON
  11. # META "title" "HelloWorld.x3d"
  12. # META "description" "Simple X3D model example: Hello World!"
  13. # META "created" "30 October 2000"
  14. # META "modified" "9 July 2023"
  15. # META "creator" "Don Brutzman"
  16. # META "Image" "HelloWorld.tall.png"
  17. # META "reference" "https://en.wikipedia.org/wiki/Hello_world"
  18. # META "reference" "https://en.wikipedia.org/wiki/Hello#.22Hello.2C_World.22_computer_program"
  19. # META "reference" "https://en.wikipedia.org/wiki/\"Hello,_World!\"_program"
  20. # META "reference" "https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world"
  21. # META "reference" "https://www.HelloWorldExample.net"
  22. # META "reference" "https://www.web3d.org"
  23. # META "reference" "https://www.web3d.org/realtime-3d/news/internationalization-x3d"
  24. # META "reference" "https://www.web3d.org/x3d/content/examples/HelloWorld.x3d"
  25. # META "reference" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.x3d"
  26. # META "identifier" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter01TechnicalOverview/HelloWorld.x3d"
  27. # META "license" "https://www.web3d.org/x3d/content/examples/license.html"
  28. # META "generator" "X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit"
  29. # META "reference" "HelloWorld.wrl"
  30. # META "reference" "HelloWorld.x3dv"
  31. # META "reference" "HelloWorld.x3db"
  32. # META "reference" "HelloWorld.xhtml"
  33. # META "reference" "HelloWorld.json"
  34. # [Scene] ========== ========== ==========
  35. NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
  36. # Example scene to illustrate X3D nodes and fields (XML elements and attributes)
  37. WorldInfo {
  38. info [ "Example scene to illustrate a simple X3D model" ]
  39. title "Hello World!"
  40. }
  41. Group {
  42. children [
  43. DEF ViewUpClose Viewpoint {
  44. centerOfRotation 0 -1 0
  45. description "Hello world!"
  46. position 0 -1 7
  47. }
  48. Transform {
  49. rotation 0 1 0 3
  50. children [
  51. Shape {
  52. geometry Sphere {
  53. }
  54. appearance Appearance {
  55. material DEF MaterialOffWhite Material {
  56. diffuseColor 0.980392 0.976471 0.964706
  57. }
  58. texture DEF ImageCloudlessEarth ImageTexture {
  59. url [ "earth-topo.png" "earth-topo.jpg" "earth-topo-small.gif" "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png" "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg" "https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif" ]
  60. }
  61. }
  62. }
  63. ]
  64. }
  65. Transform {
  66. translation 0 -2 0
  67. children [
  68. Shape {
  69. geometry DEF TextMessage Text {
  70. string [ "Hello" "world!" ]
  71. fontStyle FontStyle {
  72. justify [ "MIDDLE" "MIDDLE" ]
  73. }
  74. }
  75. appearance Appearance {
  76. material USE MaterialOffWhite
  77. }
  78. }
  79. ]
  80. }
  81. ]
  82. }