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

ZF~ 4 Xy,ox³rXRlL{E@\O66 MjbFB^WYݛ0KիkU¯ok 3=ӱHC{Qx 08K8|>\bI}(-$qҙlcFX'&1E,DCsUu˺^ͺuu%,|Ϳ6k$Z[o1XUz5y}ݫDg%4?Ou|{Q,^8(usZߛY%p`"m-\ Iԧw2Be#?j̯}"Y*xv2%H6H ? Pb3/Nهg3U0 h'fz.#1!tӱҧT $'_*H-I@Ƿ,Dir+ƷyR\ƌ>zt> bJI?yt%ҧ_ @4^C ’&^zaʼ0lɆB0I0;cru qijQЁ6Wܲ4!yx$&Ƴ4ć)BЦ Bv:yu3AO) IJ5BCR#$/x:*7E#JS :]& (d[삡jT>{J7?O h}44Ma,, IGb-t#9nv4Ck=g"nyKϷ@Ql*"&!zg*|HgU!f^#e,qﮅ S>) )B.yJ(/ "%Qh=.)[gxdq ɐ*@Jx(t. e}Jj@i_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M|о.u6ejTJmu:XC}u|dAedvCϏds#m*CI$ԤI3;6jA2CFFk,9*5JnўƟ*sBFUʗ)˰Z2!fɸNOSɗ=9E ƿjF+3:oǞb%/f=.Z2y#ŒiيkWūeM":pbE%j4qKU^uM]HM9 W:.$ƙ7kS gz+h T+`5:I*gKp VAXNп`p $_=H\ I ,?z`3=$ @Wq7W2Fr7g7M.)ƆxN_֠-{uw@9'H{Ov+QI`r +]|igN$eL-=VVK{ral˶y}?U>w("?N:I&NqӬ_b< ÊwpC7*8ی>{,/RdΐEF|Qhp{ltvhu9z7n9\F1AHl]V\w:@ɞQn.A(6ϾCg=cwX#Cvڃzygt 
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.