School of Computing, Staffordshire University || VAV lectures on virtuality || Virtual Reality

VRML

Virtual Reality Modelling Language

Alan Dix

http://www.comp.lancs.ac.uk/computing/users/dixa/teaching/VAV/VRML.html


top || prev || next

what is it?

standardised (sort of) notation for virtual reality over the web

text file (use normal text editor)

bit like a programming language

also special world building software


top || prev || next

how do you use it?

you need a browser
Netscape plug-in
stand alone VRML viewer
and a world
find one on the net
write your own
some examples on S: drive


top || prev || next

interactivity over the web???

'world' is downloaded
interaction is local
moving within the world


top || prev || next

links to the web?

can be linked to from web pages

active objects link back


top || prev || next

versions

VRML 1.0
first version
'static' worlds - only viewpoint changes
VRML 2.0
animated objecst in world
tidying up etc.


top || prev || next

VRML file format

filename (URL) ends ".wrl"
c.f. .html, .gif, .jpg etc.
VRML 1.0 first line:
#vrml 1.0 ascii
VRML 2.0 first line:
#vrml 2.0 utf8
can have binary versions too


top || prev || next

contents

one or more nodes

general format

    DEF object objecttype {
        fieldname  value
             . . .
    }

or simply:

    objecttype {
        fieldname  value
             . . .
    }


top || prev || next

types of nodes

objects that appear in the world
e.g. sphere, cone, cube etc.
nodes that alter subsequent objects
e.g. texture, color, transformations
nodes that group other nodes
also limit the effect of transformations etc.


top || prev || next

examples

When you are looking at a virtual world you can use "Document Source" from Netscape's View menu to see the VRML code that produced it.

a sphere
add color
alternatively wrap a texture round it
you can use any gif or jpeg image
other shapes such as a cone
put them together
OOPs! - all objects are centred at origin, need to use a Transform node to move one of the objects
try again with a cone and sphere
that's better
a framed picture built out of 'cubes'
N.B. in VRML cube means cuboid!
finally a rogue's gallery
this uses WWWInline nodes to include one VRML file within another
also WWWAnchor nodes are used to link to other web pages


top || prev |

more ...

Leeds University VRML & JAVA3D site
Nic Sulver's 3D graphics web pages
These include a local copy of the VRML 1.0 standard, Nic's own lectures as Powerpoint presntations and various 3D examples and links.
VRML Browsing & Building Cyberspace, Mark Pesce, New Riders, 1995.
Nic's recommended book. I've not read it yet. He says it is good on the philosphy as Pesce was one of the originators of VRML, but not so good as tutorial.
VRML: Exploring Virtual Worlds on the Internet, Walter Goralski, Matthew Poli and Peter Vogel, Prentice Hall, 1997.
3D Graphics and VRML2, Laura Lemay, Kelly Murdock and Justin Couch, Sams.net, 1997.
Two "big book + CD ROM" bundles. Both go wider than VRML. Possibly the VRML was almost a marketing afterthought? CD ROMs contain lots of useful freebees - mostly for the PC, less for the Mac (sigh). Each deal with different versions of VRML. However, I found that the VRML 1.0 tags in the Goralski book do not always agree with the official VRML 1.0 specification. I think this is a sign of the way VRML has drifted and is implemented and extended differently by different browsers. The Lemay book has a very useful reference section on the back for both VRML 2.0 and HTML.


top || VAV lectures on virtuality || Virtual Reality
Alan Dix 12/3/97