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

NavigationInfo Node


The NavigationInfo node described the user and specifies the navigation model. This is a bindable node.

The following fields are present in this node:

  • avatarSize specifies the physical dimensions of the user. These dimensions are used for collision detection purposes as well as terrain following. This field takes a list of three values. The first value specifies the minimum distance that the user can be from any collidable geometry, see the Collision node. The second value determines the height of the user, i.e. if using a terrain following option provided in some browsers the user will be maintained at the specified height. The third value determines the maximum height that the user can step over, think of a staircase for instance, the value should be higher than the height of a single step.
  • headlight is a boolean field which determines if the headlight is turned on or off, see Lighting.
  • visibilityLimit determines the maximum distance at which the user can see, the default value of 0.0 indicates that this distance is infinite. Note that regardless of the distance set you'll still see the background.
  • speed indicates the velocity at which the user moves in meters per second, well ideally at least.
  • type defines the type of navigation for the user. Possible values are "WALK", "EXAMINE", "FLY", and "NONE". Some browsers may provide more navigation modes but these four are the 'official' ones.
  • In addition to the events defined explicitly by the exposed fields (in bold) this node supports the events common to all bindable nodes.

    Syntax:
    NavigationInfo {
    avatarSize [0.25, 1.6, 0.75]
    headlight TRUE
    speed 1.0
    type "WALK"
    visibilityLimit 0.0
    }


    In the example provided the user is placed at a height of 1.6 meters from the ground. The first step has a height of 0.25 meters and the last two steps have a height of half a meter.