|
|
VRML Script Tutorial
Full list
VRML Interactive Tutorial
Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Appearance
Let there be Light
Materials with Colored Lights
Hierarchical Node Structures
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Interpolators
Let the Music Play
Bindable Nodes
Adding Realism to the world
Information about your world
Definition for Auxiliary Nodes
|
|
|
|
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
-
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.
|