LIS 525 - VRML and X3D
VRML
VRML (Virtual Reality Modeling Language)
(pronouced "VER-mull")
is a specification for displaying 3-dimensional objects on the
Web.
To view VRML files
(which have the extension *.wrl),
you need a VRML browser or a VRML plug-in.
The browser or plugin provides such capabilities
as zooming and rotation;
"hot" objects can also be clicked on
like links in HTML pages.
You can create a VRML file
by exporting from some 3-D modeling packages
or from a specialized VRML editor
like gbVRML.
The TexNet32 abstractor's assistance package
includes an option to export a 3-D term-space display
to VRML.
Although VRML is a plain-text format,
creating a VRML file with a text editor
may be a substantial undertaking.
Here is an example of a simple VRML file
which contains only a single light source and a yellow sphere:
#VRML V2.0 utf8
Transform {
children [
NavigationInfo { headlight FALSE }
DirectionalLight {
direction 0 0 -1
}
Transform {
translation 3 0 1
children [
Shape {
geometry Sphere { radius 2.3 }
appearance Appearance {
material Material { diffuseColor 1 1 0 }
}
}
]
}
]
}
If you have a VRML plugin installed in your browser,
you can view the scene at 525vml2.wrl.
3-D modelling software can create very long VRML files
if, for example, it uses mesh objects
like Coordinate3.
VRML files that stick to a few simple shapes,
such as Sphere and Box,
can be quite short.
For a somewhat more complex VRML file,
see the term-space model at 525vml3.wrl.
If you're experimenting with creating a VRML file
and trying to view it,
there are a few things that may be worth noting:
- in the initial view,
the x axis runs across the screen
and the y axis up (not down) the screen,
as in a graph;
- the z axis runs toward (not away from) the viewer,
like the z-index of a style;
- the viewpoint of the observer typically starts at [0, 0, 10],
so that the origin ([0, 0, 0]) appears 10 units into the screen;
- if the viewpoint is inside an object,
the object is invisible.
X3D
The X3D Task Group of the Web3D Consortium
has developed the Extensible 3D (X3D) graphics specification
that is designed to be an improvement on VRML
in terms of predictability and standardization
and that encodes files in XML.
X3D allows developers to support subsets
of the specification, called "profiles".
Here is an X3D version of the yellow-sphere model:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN"
"http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile="Immersive">
<Scene>
<Transform>
<NavigationInfo
headlight="false">
</NavigationInfo>
<DirectionalLight
direction="0 0 -1">
</DirectionalLight>
<Transform
translation="3 0 1">
<Shape>
<Sphere
radius="2.3">
</Sphere>
<Appearance>
<Material
diffuseColor="1 1 0">
</Material>
</Appearance>
</Shape>
</Transform>
</Transform>
</Scene>
</X3D>
If you have an X3D browser installed,
you can view the file at
525vml2.x3d.
For More Information
- Beene, G. 2005.
Gary Beene's VB Information Center gbVRML Home Page.
http://www.garybeene.com/free/gbvrml.htm.
(A simple freeware VRML editing tool.
Annoyances include a scale hundreds of times larger
than suitable for default view
and failure to handle fractional dimensions.)
- Jupitermedia. 2007.
Web / Authoring / Languages / VRML - WebReference.com.
http://www.webreference.com/authoring/languages/vrml/.
(Links to information on authoring tools and browsers,
sample worlds, etc.)
- New Zealand Ministry for Culture and Heritage. 2007.
Richard Pearse - inventor and aviator.
http://www.nzhistory.net.nz/culture/richard-pearse.
(With a link to a VRML model of Pearse's 1903 flying machine.)
- Octaga. 2007.
Octaga - Bringing enterprise data to life.
(Downloadable player for VRML 2 and X3D,
free for personal noncommercial use;
does not support VRML 1 and is fussy about the format of X3D files.
There is also a professional version
for €875.)
- ParallelGraphics. 2007.
Cortona VRML Client - Web 3D Products - ParallelGraphics.
http://www.parallelgraphics.com/products/cortona/.
(Cortona VRML Client works as a VRML plug-in
for Internet Explorer 6, Netscape Navigator 8,
Firefox 1.5, and Opera 8.5, and above.)
- Perrett, G. 2006.
Seamless3d Home Page.
http://www.seamless3d.com/.
(Freeware 3d editor; can export to VRML and X3D;
appears powerful, but poorly documented.)
- Web3D Consortium. 2007.
The Virtual Reality Modeling Lan.
http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/.
(The standard for VRML.)
- Web3D Consortium. 2007.
Web3D Consortium - Royalty Free, Open Standards for Real-Time 3D Communication.
http://www.web3d.org/.
(Information and links related to X3D.)
- Web3D Consortium. 2007.
Web3D Consortium - Xj3D Java-based X3D Toolkit & Browser.
http://www.web3d.org/x3d/applications/xj3d/.
(Free download can include needed versions of Java and Java3D.
The VRML-to-X3D converter needs to be run from a command-line,
and the output will have to be tidied up to work in all browsers.
The Java3D version of the browser should work as installed;
the Elumens and OpenGL versions appear not to.)
- Web3D Consortium. 2007.
X3D Tooltips.
http://www.web3d.org/x3d/content/X3dTooltips.html.
(Alphabetical reference for X3D.)
Home
Last updated October 25, 2007.
This page maintained by
Prof. Tim Craven
E-mail (text/plain only): craven@uwo.ca
Faculty of Information and
Media Studies
University of Western
Ontario,
London, Ontario
Canada, N6A 5B7