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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WF ݄+<ګJF65}->Xt2O+7^҉QX/މU(ތU$}~l.+7pyfKRUmRxB;{!uiE::vx) Kg_O7؇/ofxqfҕtcN)7#xTxe*a_vx/i-hJ*ӕ'{z#vfG.lۙmv92流ݧE8bAChSd`?{2 II.1Gavw,^9tEWt9^]rE 9POiWjn/ G[SDkqcwQjd41bbZw3uvJ6ROrs BEb<lAZW?SFHUx'԰AWL{pꂻ03$2 6pFf#W]Q/*J;URE.2r4@0\l o~G 7nfG8ǝQ\o֟ybTM{ŲB$cUo]nEJLMeu'韤*_}dV Ǔ:5WoCѓ nOz#}?IL9+68wN:@ e8DBE.Sj9Y1(Sqt <|{0u

Inline Node


In VRML you can split your world over a set of files. This simplifies world design, and lets you reuse world parts in many worlds. For instance you can have a set of shapes that draw a door in a file door.wrl and use the file in a house, contained in a file house.wrl.

The Inline node lets you specify a url where the data can be retrieved from. The url must contain a valid and complete VRML file, header included.

The following fields are present:
  • url which lets you specify the location of the file to be included. You can specify multiple locations if you want to, the browser will look for data in those locations in decreasing order of preference.
  • bboxCenter specifies where the center of a box that encloses the nodes in the inlined file. The value for this field is a 3D point.
  • bboxSize specifies where the size of a box that encloses the nodes in the inlined file. By default this field has a value of -1 -1 -1, which implies that no box is defined. The values for this field must be greater than or equal to zero.
  • The latter two fields are optional. They can be used by the browser for optimization purposes.

    Note that any node definitions using DEF which occur inside the inlined file are not visible outside the inlined file.

    Syntax:
    Inline {
    url []
    bboxCenter 0 0 0
    bboxSize -1 -1 -1
    }