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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O9b]ko)uE=h)؅͇yo RYl(R%)J6{ϝrHQZ'Ym(}̝!sb*eIT@i5Y[Fo^xWkQjmRg§ $.rq!9ENOd+?` k@+ "- C$g8gYT̊~Z݈AA7 04:_-QP˸+iLکr"!CDOxK3)RoigЏ>}agx*HQMU?VBZ΢VO{ op 7w+"sFW3MnG[ڡUʒW㬀)I"q:{Y S&:Lqw1o37SF}^sO4ŴjBAqoIK.Q>:zD6WE,ldи2UJ=S #VME)jؿ :.tuQIfRa Q4IM,C: u|0ʐ%KQ,}%+YAr;CWh':[joFUZad.#hZN_>- S7UP9XLtGچU{ ]Pнdhԫa]@768\O+րޚSxiG;X*gE{Ht*@Nee-BVU>,^-4v/HDT PwDYuk״ho3R6kmx&!s&W밶ai@k`ewZǍ=ՅI P8AD\5^t  D[&yWEbO^2f6MNCt-T1,mANWQ!z$ =M+ G#0T{8iZ5FZK EboXlqAɵ;zdC/#b˸!n`dx "a 0 b%<L+diy;[@j/k-g@26\Kچ(W99'2)m9SA ]51Xւ8$P^|B_7^qwãgY 4Glj?Ǘp}㥬b|Lbw>}:_?HI ڨ{:1ԇ7WW/ov;R~ ٫ӏP;.<`J02;qqǩ)fI<#7_2BoFMuja쪶|?wr/YvI!IQt[xaηÎ<S/Od4R5UI+!}xl/rt-EE>)v?^tysy IL(~y~/Y)СQBל5͵C%zpK-mf.0uΰ^3>e~j;O!F'r:g|4:=`_=̖]%݈iprWE^SW\uKj%FD21,qI!OmB{ZZۀ˜;?%c­ {ٓi78|89hH2|Ԩͫz{9׷;)s4e!q_퇿qؼ5j޳FO{'6Yj,>k@ E@˼@U0VS2MG_q*`oR_< Ϛ

FontStyle Node


This node is used inside the Text node to specify the display properties of the strings. The following fields are present:
  • family specifies the font family. Values for this field are: "SERIF", "SANS", "TYPEWRITER".
  • style specifies the font style. Values for this field are: "PLAIN", "BOLD", "ITALIC", "BOLDITALIC".
  • horizontal is a boolean field which specifies if the text is to be displayed horizontally.
  • leftToRight is a boolean field which specifies if the text is displayed left to right or right to left (Arabic way)
  • topToBottom is a boolean field which specifies if the text is displayed top to bottom or bottom to top (Chinese way).
  • justify specifies justification both along the major and the minor direction. If horizontal is TRUE then the major direction is horizontal and the minor direction is vertical, otherwise the major direction is vertical and the minor direction is horizontal. If only one value is specified then it refers to the major direction. The default value for the minor direction is "FIRST". There are four possible values for each justification: "FIRST", "BEGIN" (left justified), "MIDDLE" (centered), and "END" (right justified). "BEGIN" and "FIRST" are equivalent except for the minor direction when horizontal is TRUE (see note bellow).
  • language specifies the character set. "en" for English,"en_US" for US english, "zh" for Chinese, etc...
  • size specifies character height in VRML units.
  • spacing specifies the spacing between lines.


  • Syntax:
    FontStyle {
    family "SERIF"
    horizontal TRUE
    justify "BEGIN"
    language ""
    leftToRight TRUE
    size 1.0
    spacing 1.0
    topToBottom TRUE
    }


    Important: VRML is case-sensitive, be careful.

    Note: When horizontal is TRUE the following difference occurs in the minor direction justification between using "FIRST" and "BEGIN":

    "FIRST": The baseline of the first line is placed at the X axis.

    "BEGIN": If topToBottom is TRUE the top edge of the first line is the placed at the X axis, else the bottom edge of the first line is placed at the X axis.