Lighthouse3d.com

uW(.JUMLO-O)ͭKLSW(L)ɰU7TWHL(3RRl bJP< 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

}[6X>[rDj3%';sEBmdxnayvV RDo.g:N7  B ?z/ސUv/Ϟ?V΂| >^J{pA\[NS~j۵E|XqM:uaZtU_w MuBXD$+3p(V?Pvݰ?ww8=nb۶i=Z/(߅aE)0}|EM5Mb0ois\LBN-AV!]p,WO"ڵm`1 ,5X إ3x~L~_TyÞϣVs>5WD4?bRdN(&PWLF(Y,uQꧨAM@ƝO(E&{\y8:'|m*D!v5%eUc{,hlRt:QlƑz`DZXCr~H;R]R@=O!Da2 e8 :ƱVʸa1 =3Acƨa}}Vui[-/ȷuL:?Wz &͋% LEƥ8CwKLb_iĬxT"諌s Lbi|l 5vZw98tMDγ'$ТvZ)s+R(Yכm0 yW"n;2Gl"q8Ӫ$oi8GvA'##t%Z;.ݴ #ۉLGB;Ӌ/ w݅*nheMe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fields are present:

  • fieldOfView specifies an angle in radians. Small angles correspond to telephoto lenses, whereas large angles (up to 3.14) are the equivalent of wide-angle lenses. Note that perspective gets distorted with large values.
  • position specifies the user position in the coordinate system which the Viewpoint is defined.
  • orientation determines the direction at which the user is looking, it specifies a rotation relative to the default orientation which points along the Z axis in the negative direction.
  • description provides a textual description of the ViewPoint. Most browsers have a list of the Viewpoints found in their menus, the contents of that list is taken from the description fields of the ViewPoints. Also you can direct the browser to go to a Viewpoint by specifying the Viewpoint name after the URL, as in "my_world.wrl#my_viewpoint, where my_viewpoint is the value for the field description for a Viewpoint in the file my_world.wrl.
  • jump determines the Viewpoint transition when you change from the active Viewpoint to a new Viewpoint. If jump is TRUE then the user should be moved along the path from the current Viewpoint to the new Viewpoint, otherwise if jump is FALSE then the Viewpoint is simply changed without affecting the user's position.
  • In addition to the events common to all bindable nodes, this node generates the event bindTime with the current time when it receives the event set_bind.



    Syntax:
    Viewpoint {
    fieldOfView 0.785398
    position 0 0 10
    orientation 0 0 1 0
    description ""
    jump TRUE
    }


    In the right example there are two Viewpoint defined, v1 and v2. The fields in the form relate to Viewpoint v1. You can move between the Viewpoints to see the effect of the jump field. In v2 jump is TRUE. v2 is placed at 0 -10 0 and looking at the origin.