From ff819f99c66a125acdd2ca7c6fd6b41c9503bc0a Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sun, 11 Feb 2024 18:54:55 -0800 Subject: [PATCH] chore: include a basic wrl test file --- public/hello_world.wrl | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 public/hello_world.wrl diff --git a/public/hello_world.wrl b/public/hello_world.wrl new file mode 100644 index 0000000..2766686 --- /dev/null +++ b/public/hello_world.wrl @@ -0,0 +1,71 @@ +#VRML V2.0 utf8 +# X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt +# http://www.web3d.org/x3d/content/X3dToVrml97.xslt +# Generated using XSLT processor: SAXON 8.7 from Saxonica + +# [X3D] VRML V3.2 utf8 +# PROFILE Immersive +# [X3D] version=3.2 +# [X3D] noNamespaceSchemaLocation=http://www.web3d.org/specifications/x3d-3.2.xsd +# [head] + +# META "title" "HelloWorld.x3d" +# META "description" "Simple X3D example" +# META "created" "30 October 2000" +# META "modified" "15 February 2009" +# META "creator" "Don Brutzman" +# META "identifier" "http://www.web3d.org/x3d/content/examples/HelloWorld.x3d" +# META "image" "http://www.web3d.org/x3d/content/examples/HelloWorldTall.png" +# META "generator" "X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit" +# META "license" "http://www.web3d.org/x3d/content/examples/license.html" + +# [Scene] ========== ========== ========== + +NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo + +# Example scene to illustrate X3D nodes and fields (XML elements and attributes) +Group { + children [ + Viewpoint { + centerOfRotation 0 -1 0 + description "Hello world!" + position 0 -1 7 + } + Transform { + rotation 0 1 0 3 + children [ + Shape { + geometry Sphere { + } + appearance Appearance { + material Material { + diffuseColor 0 0.5 1 + } + texture ImageTexture { + url [ "earth-topo.png" "earth-topo.jpg" "earth-topo-small.gif" "http://www.web3d.org/x3d/content/examples/Basic/earth-topo.png" "http://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg" "http://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif" ] + } + } + } + ] + } + Transform { + translation 0 -2 0 + children [ + Shape { + geometry Text { + ### Warning: not supported in VRML97 encoding, solid field ignored + string [ "Hello" "world!" ] + fontStyle FontStyle { + justify [ "MIDDLE" "MIDDLE" ] + } + } + appearance Appearance { + material Material { + diffuseColor 0.1 0.5 1 + } + } + } + ] + } + ] +}