OpenGL VRML Shockwave 3D
Home Tutorials Books Applications Tools Docs Models Textures

Send me bugs and suggestions, please
VRML Script Tutorial
Full list

VRML Interactive Tutorial

Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Box
Sphere
Cone
Cylinder
PointSet
IndexedLineSet
IndexedFaceSet
Extrusion
ElevationGrid
Example: Chessboard
Text
FontStyle
Appearance
Material
Textures
Image Texture
Movie Texture
Pixel Texture
Texture Coordinate
Texture Transform
Let there be Light
Directional Light
Point Light
Spot Light
Materials with Colored Lights
Hierarchical Node Structures
Group
Transform
Collision
Anchor
Billboard
Switch
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Creating Paths between events: ROUTE
Generating Events based on Timers or User Actions
Timers
Touch Sensor
Visibility Sensor
Dragging Sensors
Plane Sensor
Sphere Sensor
Cylinder Sensor
Proximity Sensors
Example: Proximity sensor
Interpolators
Color
Coordinate
Normal
Orientation
Position
Scalar
Example
Let the Music Play
Sound
AudioClip
Bindable Nodes
Who Am I: NavigationInfo
Where Am I: ViewPoint
Adding Realism to the world
Background
Fog
Information about your world
WorldInfo
Definition for Auxiliary Nodes
Coordinate
Color
Normal

Grouping Nodes


A set of nodes can be defined as a group in VRML. The following grouping nodes are avalable in VRML:

  • Anchor: define a complex shape, built using a set of shapes, as a hyperlink to another VRML world, to a HTML page, or to any other data that your browser can read.
  • Billboard: specifying a set of nodes which are always turned to you regardeless of your position.
  • Collision: defining a set of nodes which the browser should be warned when collision occurs.
  • Group: defining a new node type composed by a set of nodes so that you can reuse it later without repeating the entire set of nodes.
  • Switch: defining a set of nodes in which at most one of the nodes is drawn.
  • Transform: defining a new coordinate system so that objects can be placed in locations other than the origin.
  • Grouping also can be used for scoping, i.e. some node types, when placed n a group, only affect the other nodes within the same group. For instance, Directional Lights only affect nodes within the same group (at least according to the official VRML 2.0 specification). Sensor nodes are also constrained to the group their defined in.

    You can place groups inside groups, creating a hierarchical structure of nodes. A group node can have any number of child nodes inside the children field.

    All grouping nodes accept the following events:
    addChildren: which add a new node to the group
    removeChildren: which removes a given node from the group
    To generate one of these events you have to use Scripts.



    Site designed and maintained by António Ramires Fernandes
    Your comments, suggestions and references to further material are welcome!

    Lighthouse 3D privacy statement