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

Z6y ];CƼ.YN%s*[Tlש-Ϭ "AcBёd<)Hu)n4ݛ0cյ~\׷B [튂OX(<~X1C]Kl:/e}ݝ8y6K9fԏu{jS[@O4t<^UմGiׯiZ¹[_Dk- Wf8{PF{F/*T  b ,n[tfQҖñA$xs1 y̧w2B1o5WzN{Ubߦ(avώ\C I5x)&gA{lJċ&cd12h@S=\7K(sRQ`EF@IN ~Ur]mohV(ƷyRL }|dJ!lvKO܁d,^M ’&^z!K0lɆB0I0;crUuq)gYЁTh+Qb$m%鬩,80Ds m2cc=3ϜG㠍E3u8! (IӗOxzVng_(uNIA.D7Q@x'b U'[\?I^{͵у28R~L|qXwSEN#zs;hf=g"^yKϷ@QT.EH?`nVv m?s! U٤0j-BH?6^Y",Ry0C)sg,k;WWļgQ`]F-E_߿o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Tʒlቀj(_?CSxWs? i|`5;iZ[$$٩ilD5K\dqHN+ҏϙ) PʂH'z9`56>Ha.pȄ5M(|k)|±W)I[O'iW jJ]Me]absygfi]sU %ꂿmn[IZyԕqwDOwixچ5, woo^+ q0"?PՆXa5sŀ:x@6WE,eи2eJ=S #My)jؿ :.tuQIfRa Q4IM,C: u|0ʐ% Q,|%+YAr;CWh':]joFUZad.#hZN_>- S7UP9XLtچU{ ]Pнdhԫa]@768\Ono+րޘSxi;X*gE{Ht*@Nee-BVU>,^-4v/HDT d_煱vDYuk״ho2B6kmx&!s&W밶ai@k`eǷZǍ=ՅI P8AD\5^t % D&yWEbO^2f6MJCt-T1,MANWQ}9؅&Z=}4@H #-Մ"`?,gf긠Z V =sArk?B}|0"d[p XY'^"(}Xh !!XI8 '~D) 8AbZ] 80i"̬ͥ00BǶ!(en,;~ÉLJ[TuHq~ U Ծj2Eƍ:zYM;3/ڏe}x;\ߤx)+6F)S<؝O!uqҪ64uRu|ु|6j^&ky)p ?/勫m8Ɩ_B~A;Ԏ .O<Ͽ>V%k\yjhY*gW QSwzZض3Ohx]yRChgR8;d,?1Ec=nOw-j۽-?ZmV??YJ99mO@ Y@˼^CU/0VS2MG_q*`oR?lU

Viewpoint Node


The Viewpoint node specifies the user's location and viewing model parameters. This is a bindable node.

The following 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.