Hello World!

The VRML animation above shows the Hello World sentence. You can approach it travel around it if you wish using the control handles. The control handles are part of the dashboard which is produced by the browser. The source code is located in the file HelloWorld.wrl and looks like this:

#VRML V2.0 utf8 

Group {
  children       DEF HelloWorld Transform {
    children   Shape {
      appearance       Appearance {
       material        Material {
       }

      }

      geometry CoTextGraph {
       textType        0
       string  "Hello World !"
       fontStyle       FontStyle {
         size  36
         spacing       1
       }

       isBeveled       TRUE
       bevelCoords     [ 0 0,
                 1.44 1.2,
                 1.44 0 ]
      }

    }

    translation        -0.477402 0 0
    scale      0.02 0.02 0.02
  }

}

If you want to preform the experiments, you have to download the course material.

Experiment 1:

Open the file HelloWorld.wrl with a text editor and change the contents of the string "Hello World !" into some other phrase like string "I am here !". Then save the file under the same name (it is wise to make a backup copy of the original) and press RESET THE ANIMATION which is also stays on the bottom of each page. The changed text should appear in the above VRML world.

Experiment 2:

Change

      geometry CoTextGraph {
       textType        0

into

      geometry CoTextGraph {
       textType        1

and then play with the parameters which determine the size of beveling:

       bevelCoords     [ 0 0,
                 1.44 1.2,
                 1.44 0 ]

For example, try

       bevelCoords     [ 0 0,
                 3 3,
                 3 0 ]

RESET THE ANIMATION


Go to the next lesson


[course first page]

[VRML biology]