This example shows web features of the VRML world.


#VRML V2.0 utf8

Viewpoint {
    position    0 20 0
    orientation -0.57735 -0.57735 -0.57735  2.0944
    fieldOfView 1.5708
}

A new entry point is defined.  The viewer looks at the world from the top.

Group {
   children [

Anchor works as a Separator.  It define an object.  However, Anchor
associates a link to the object.  If the viewer activates this link, the
web page will be displayed on the viewer's browser.  The link can also
point to any HTML page.

Inline provides a way to incorporate VRML objects from the web. The name field provides the URL of the included object. The bboxSize defines the bounding box of the object. Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/white_link.wrl" children [ Transform { translation 10 0 -5 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/white.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/mistake_link.wrl" children [ Transform { translation 5 0 0 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/mistake.wrl" bboxSize 5 5 5 } } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_vertex_link.wrl" children [ Transform { translation 0 0 5 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_vertex.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_vertex_indexed_link.wrl" children [ Transform { translation -5 0 10 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_vertex_indexed.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_face_link.wrl" children [ Transform { translation 5 0 -10 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_face.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_face_indexed_link.wrl" children [ Transform { translation 0 0 -5 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/per_face_indexed.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/texture_naive_link.wrl" children [ Transform { translation -5 0 0 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/texture_naive.wrl" bboxSize 5 5 5 } ] } ] }, Anchor { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/texture_link.wrl" children [ Transform { translation -10 0 5 children [ Inline { url "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML2/pyramid/texture.wrl" bboxSize 5 5 5 } ] } ] } ] }