|
|
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
|
|
|
|
Inline Node
In VRML you can split your world over a set of files. This simplifies world
design, and lets you reuse world parts in many worlds. For instance you
can have a set of shapes that draw a door in a file door.wrl and use the
file in a house, contained in a file house.wrl.
The Inline node lets you specify a url where the data can be retrieved
from. The url must contain a valid and complete VRML file, header included.
The following fields are present:
url which lets you specify the location of the file to be included.
You can specify multiple locations if you want to, the browser will look
for data in those locations in decreasing order of preference.
bboxCenter specifies where the center of a box that encloses
the nodes in the inlined file. The value for this field is a 3D point.
bboxSize specifies where the size of a box that encloses the
nodes in the inlined file. By default this field has a value of -1 -1 -1,
which implies that no box is defined. The values for this field must be
greater than or equal to zero.
The latter two fields are optional. They can be used by the browser for
optimization purposes.
Note that any node definitions using DEF
which occur inside the inlined file are not visible outside the inlined
file.
Syntax:
|
Inline
{ |
url []
bboxCenter 0 0 0
bboxSize -1 -1 -1
|
} |
|
|