<<VRML 2.0 - An Introductory view by examples

Reuse and Prototyping

Prototypes allow users to extent the set of VRML nodes types. Their definition can be included in the file in which they are used or they can be defined externally. It allows the encapsulation and parametrization of geometry, attributes, behaviors, or some combination thereof.

Usage

Prototype definition and use have the following formats : External prototype files are defined as follows : The IS statement is used inside a Prototype definition to associate a prototype definition parameter to a node parameter. See example.

Instantiation in VRML is accomplished by using the DEF / USE keywords. This mechanism allows a node to be referenced in a VRML file multiple times.

Usage


Introduction Presenting VRML Nodes Sensors
Interpolators
Routes Time Scripting