Introduction
VRML, the Virtual Reality Modeling Language, was the first standard for 3D scenes on
the web. Version 1.0 appeared in 1995, based on the file format of SGI’s Open
Inventor. VRML 2.0 followed in 1996 with animation, sound and scripting, and became
the ISO standard VRML97. Files are called worlds and use the extension
.wrl (the standard names it, and the media type model/vrml);
gzip-compressed worlds often use .wrz, which the VRML97 text does not mention
(unverified here against another source).
Browser plugins for VRML have long gone, and its successor is X3D. VRML is still written by CAD, scientific and 3D printing software as a simple way to export coloured meshes.
Structure
A VRML97 file is text. The first line is #VRML V2.0 utf8: the version and
the character set (VRML 1.0 starts
#VRML V1.0 ascii and its syntax differs). The rest is a tree of nodes, each a type name
followed by its fields in braces. Common nodes are Transform,
Shape, Appearance, Material and
IndexedFaceSet, whose coordIndex lists each face’s vertices
and ends it with -1.
#VRML V2.0 utf8
Shape {
appearance Appearance { material Material { diffuseColor 0 0.5 1 } }
geometry IndexedFaceSet {
coord Coordinate { point [ 0 0 0, 1 0 0, 0 1 0 ] }
coordIndex [ 0, 1, 2, -1 ]
}
}
In this reference
- Syntax and field types – the header, separators, names, statements, prototypes and routes, and the twenty field types
- Nodes – all 54 VRML97 nodes with every field, event, default and range
Not described
What this reference and the explorer leave out. All of it is defined by ISO/IEC 14772-1 (VRML97) and ISO/IEC 19776 (X3D); nothing is known to be undocumented.
Known, not yet covered
- Reference: the 54 node definitions on the nodes page were compared with the VRML97 clause 6 text (306 field and event lines, 0 differences in kind, type or default) and the syntax page with clauses 4.2, 4.3 and 5 on 2026-11-18. The prose of clause 6 (what each node does) is only summarised.
- Reference: events, EXTERNPROTO and browser behaviour are described only briefly (ISO/IEC 14772-1 clauses 4 and 5); the X3D additions (ISO/IEC 19776) are not described.
- Viewer: textures, lighting, transparency, Text, Inline worlds and animation are not drawn; shapes show their material colours.
- Viewer: sensors, interpolators and scripts are not run; they are listed and checked, and Script source is shown as text.
- Viewer: EXTERNPROTO definitions in other files are not read. Bare words where a value belongs (as Live3D files wrote) are read and reported rather than rejected.
Also used for
- VRML world – The first web 3D standard: VRML 1.0 and VRML97 text worlds, still used to export meshes.
- VRML world (gzip-compressed) – A gzip-compressed VRML world; unpack it to read the .wrl text.
Variants
- VRML 1.0 – the 1995 version, based on Open Inventor: a state machine of properties and shapes inside Separator nodes
- VRML97 – VRML 2.0, ISO/IEC 14772: a scene graph with PROTO, ROUTE, sensors and scripts
- X3D classic encoding – the same text syntax as VRML97, with PROFILE, COMPONENT and META statements (.x3dv)
Links
Software
- Castle Model Viewer – free viewer for VRML, X3D and other 3D formats (Windows, macOS, Linux)
- MeshLab – free open source mesh viewer and editor (Windows, macOS, Linux)
- Blender – free open source 3D suite that reads and writes VRML through its X3D add-on (Windows, macOS, Linux)
Developers
- X_ITE – X3D browser for web pages that also loads VRML (JavaScript)
Reference
- Web3D Consortium – the standards body that maintains VRML97 and X3D