Introduction to 3D Graphics and VRML

[ Previous | Index | Next ]


Interaction (cont...)

In VRML, objects can represent links that can be used to access other virtual worlds, or URLs for Web pages

VRML Anchor example

#VRML V2.0 utf8
  Group {
    children [

      ... 

      Anchor {
        url "../3dgraphics19c.html"
        description "Return to lecture"
        children [
          Shape {
            geometry Text {
              string ["Go back to", "VR Lecture" ]
              fontStyle FontStyle {
                justify "MIDDLE"
              }
            }
          }
        ]
      }
    ]
  }

Author: Michael Louka (Michael.Louka@of.telia.no)
Last Updated: 31 October 1997