VRML File Structure
A VRML file always starts with the header:
#VRML V2.0 utf8
The identifier "utf8" which appears on the header lets you use
international characters in your VRML models.
Comments start with #, all characters until the end of the line being
ignored.
After the header the following can appear:
-
nodes
-
prototypes (Not done yet)
-
routes
In the next sections one shall see what each of the above is used for.
Note: For precise syntax and semantic definition please consult the
VRML 2.0 Specification.
The color model in VRML is RGB. In order to define a color three values
are needed: Red Green and Blue, these values are between 0.0 and 1.0. For
instance 0.0 0.0 0.0 is Black, 0.0 0.0 1.0 is Blue, and 1.0 1.0 1.0 is
White.
The units in VRML are assumed to be meters. Although you do not have to
follow this convention it is advisable that you do. If everyone follows
this convention then all worlds will be scale compatible.
The angles in VRML are measured in radians, not in degrees.