The Virtual Reality Modeling Language (VRML) is a language
for describing multi-participant interactive simulations -- virtual worlds
networked via the global Internet and hyperlinked with the World Wide Web.
All aspects of virtual world display, interaction and internetworking can be
specified using VRML. It is the intention of its designers that VRML become
the standard language for interactive simulation within the World Wide Web.
This link will take you to an entrance way where you can decide where you would like to go in cyberspace.
This one was created using the VRML creation utility found on the
AEREAL World Wide Web Site. Check it out Today to join over 3,000 people who have created their own Worlds
.
For example, this file contains a simple scene defining a view of a red
cone and a blue sphere, lit by a directional light:
#VRML V1.0 ascii
Separator {
DirectionalLight {
direction 0 0 -1 # Light shining from viewer into scene
}
PerspectiveCamera {
position -8.6 2.1 5.6
orientation -0.1352 -0.9831 -0.1233 1.1417
focalDistance 10.84
}
Separator { # The red sphere
Material {
diffuseColor 1 0 0 # Red
}
Translation { translation 3 0 1 }
Sphere { radius 2.3 }
}
Separator { # The blue cube
Material {
diffuseColor 0 0 1 # Blue
}
Transform {
translation -2.4 .2 1
rotation 0 1 1 .9
}
Cube {}
}
}
This is a longer example of a VRML scene. It contains a simple model
of a track-light consisting of primitive shapes, plus three walls
(built out of polygons) and a reference to a shape defined elsewhere,
both of which are illuminated by a spotlight. The shape acts as a
hyperlink to some HTML text.
#VRML V1.0 ascii
Separator {
Separator { # Simple track-light geometry:
Translation { translation 0 4 0 }
Separator {
Material { emissiveColor 0.1 0.3 0.3 }
Cube {
width 0.1
height 0.1
depth 4
}
}
Rotation { rotation 0 1 0 1.57079 }
Separator {
Material { emissiveColor 0.3 0.1 0.3 }
Cylinder {
radius 0.1
height .2
}
}
Rotation { rotation -1 0 0 1.57079 }
Separator {
Material { emissiveColor 0.3 0.3 0.1 }
Rotation { rotation 1 0 0 1.57079 }
Translation { translation 0 -.2 0 }
Cone {
height .4
bottomRadius .2
}
Translation { translation 0 .4 0 }
Cylinder {
radius 0.02
height .4
}
}
}
SpotLight { # Light from above
location 0 4 0
direction 0 -1 0
intensity 0.9
cutOffAngle 0.7
}
Separator { # Wall geometry; just three flat polygons
Coordinate3 {
point [
-2 0 -2, -2 0 2, 2 0 2, 2 0 -2,
-2 4 -2, -2 4 2, 2 4 2, 2 4 -2]
}
IndexedFaceSet {
coordIndex [ 0, 1, 2, 3, -1,
0, 4, 5, 1, -1,
0, 3, 7, 4, -1
]
}
}
WWWAnchor { # A hyperlinked cow:
name "http://www.foo.edu/CowProject/AboutCows.html"
Separator {
Translation { translation 0 1 0 }
WWWInline { # Reference another object
name "http://www.foo.edu/3DObjects/cow.wrl"
}
}
}
}
Browser Considerations
This section describes the file naming and MIME conventions to be used in
building VRML browsers and configuring WWW browsers to work with them.
File Extensions
The file extension for VMRL files is .wrl (for world).
MIME
The MIME type for VRML files is defined as follows:
x-world/x-vrml
The MIME major type for 3D world descriptions is x-world.
The MIME minor type for VRML documents is x-vrml.
Other 3D world descriptions, such as oogl for The Geometry Center's
Object-Oriented Geometry Language, or iv, for
SGI's Open Inventor ASCII format, can be supported by using
different MIME minor types.
Back
to the Home Page
Site maintained using . HTML validation by
URL: http://www.chemistbench.com/gvrml.html
This page is operated and updated by Michael B. Weiner. Reproduction
in any manner without express written consent is not permitted by law.
Copyright © 1995-2002. All rights reserved. The Chemist's Bench Web Site,
The Chemist's Bench Web Site banner and logo, and The Chemist's Bench Web Site
names are trademarks under the exclusive ownership of Michael B. Weiner.
All other trademarks are the sole property of their respective owners.
Page created on December 28, 1995. Last changes on