Lighthouse3d.com

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

Page not found » Lighthouse3d.com
Help end child hunger

Error 404 - Not Found

Sorry, the page that you are looking for does not exist.

Group Node


If you're not familiar to grouping nodes in VRML see the section Creating Hierarchical Node Structures for general information on grouping.

The group node lets you treat a set of nodes as a single entity.

The following fields are present:
  • children which contains all the nodes included in the group.
  • bboxCenter specifies the center of a box that encloses the nodes in the group. The value for this field is a 3D point.
  • bboxSize specifies where the size of a box that encloses the nodes in the group. 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. If the children nodes do not fit inside the box defined the results are undefined.
  • The latter two fields are optional. They can be used by the browser for optimization purposes.

    Syntax:
    Group {
    children []
    bboxCenter 0 0 0
    bboxSize -1 -1 -1
    }


    The following hierarchical structure of a VRML file exemplifies scoping with the group node:
    Group g1 {
    Shape A
    Directional Light 1
    Group g2 {
    DirectionalLight 2
    Shape B
    }
    }
    The directional light in group 1 will lit both shapes A and B because a directional light lits all nodes within the same group and in descendent groups. However, the directional light in group 2 will only lit shape B. Shape A is placed outside the group where the light is defined and therefore it is not lit by the directional light in group 2.

    The following code exemplifies the syntax of the Group node:

    Example:
    #VRML V2.0 utf8

    Group {
    children [
    Shape {
    geometry Cylinder {
    height 5.0
    radius 0.5
    }
    }
    Shape {
    geometry Sphere {}
    }
    ]
    }