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

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?U M6 P&(3ƓFٔ(jR~1IB8;9E$cB򭴑G eY L i3`>yYtx|b+4p6p:@m?O`D1][6<]up2(xvI/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1ɛTE=SYEz}~L'N|k̶p /mOA$g)M,Y?Rk됆d6;6STI9NB<-e|,N8WrF[dZ? TMk܏QsC&ܮiB[Ks! cNJN~&N ZЯS/ ;e/ SX蚯9-Q]osJ0Σ$ otgoHk_ /߽}}z/?WwIcIWNc5g>dmg \2ky\mtYq&obh}|jxĶ0.O]T/vۋF;ɚAOÙnv?oJۧ}!R`TTvtOdfE|[iĢ][\ y|C-km\%_2w C~!z'CK3P73G~>qD/? VS"?>aEP`8Oy癖K*2widfp5D߱Y'q!LaJ[-i~5 I/)C0iSB0.Mqgyʨwk"VC|>,w&b:U WpLgd 0􌱼:/LuQIeJa \X3G!3QȬsbFk+]O We@SRPg4M[ORfע oѶQҲe FM>}SLHfJPD vY` {:k kM)?AwĿ>&zhT$'m[s>CgȒ(ljfNoPNqpU6yD _-\H_ָjМ@2얕ErS'Q۩˷ݧd ΟzN"gSذjrU [ fu# f4fGq>wt[[v /-T1]S{Ns.SxYYG {կWˆDl"q]=nB{$ya].QV5f/Ԟr&/rCƹwkmr7gztVv|{Mp0S] $Z@͢CV(-,Y| 6 D*6ZM _oz`3ݔ4$@7+@ *$74Oyu5@BG#фB.|4CCUc`eP,v%Vd˙gI1gOV@|o\|ڏP?_*k1ܩHVA؉װ( rcA"X2┉b 1-o~g>:6L"a6ksi U0k2J{ ́u8Ii˙*ݼ "ίA~ قSMHڸG3FImO@A닀]%zJ_aNz|(e9

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.