|
|
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
|
|
|
|
Shape Node
All visible objects are defined inside a Shape node. This node has two
fields: appearance and geometry .
The appearance field specifies an Appearance
node which is used to define color, textures and so on to be applied to
the geometry, the geometry field indicates which shape is to be
drawn.
Syntax:
|
Shape { |
appearance NULL
geometry NULL
|
} |
|
The appearance field is optional, if nothing is said the default
values will be used.
the value for the geometry field may be any of the following Nodes:
-
Box
-
Cone
-
Cylinder
-
ElevationGrid
-
Extrusion
-
IndexedFaceSet
-
IndexedLineSet
-
PointSet
-
Sphere
-
Text
|