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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U$}~l.+7pyfKRUmRxB;{!uiE::vx) Kg_O7؇/ofxqfҕtcN(7#vTxe*a_vx/i-hJ*ӕ'{zvfG.lۙmv90 ݧE8BAChSd\?{2 II.1avw,^9tEWt9^]rчE 9HOi7jn/ G[DSDkqcwAjd41BbZw3uvJ6ROrs BEB<lAZW?SFHUx '԰AWL{pꂺ03"2 6pFf#W]A/*J;UR.2r4@0\l o~G 7nfG8ǝQ\o֟ybTM{B cQt*"rmw&O ^>}nSdx[I7Iv'v>$/l;'SBBK!t`"~)Z8:W=m

Grouping Nodes


A set of nodes can be defined as a group in VRML. The following grouping nodes are avalable in VRML:

  • Anchor: define a complex shape, built using a set of shapes, as a hyperlink to another VRML world, to a HTML page, or to any other data that your browser can read.
  • Billboard: specifying a set of nodes which are always turned to you regardeless of your position.
  • Collision: defining a set of nodes which the browser should be warned when collision occurs.
  • Group: defining a new node type composed by a set of nodes so that you can reuse it later without repeating the entire set of nodes.
  • Switch: defining a set of nodes in which at most one of the nodes is drawn.
  • Transform: defining a new coordinate system so that objects can be placed in locations other than the origin.
  • Grouping also can be used for scoping, i.e. some node types, when placed n a group, only affect the other nodes within the same group. For instance, Directional Lights only affect nodes within the same group (at least according to the official VRML 2.0 specification). Sensor nodes are also constrained to the group their defined in.

    You can place groups inside groups, creating a hierarchical structure of nodes. A group node can have any number of child nodes inside the children field.

    All grouping nodes accept the following events:
    addChildren: which add a new node to the group
    removeChildren: which removes a given node from the group
    To generate one of these events you have to use Scripts.