Webots Reference Manual

previous page go up next page

Thanks

1. Introduction

2. Node Chart

3. Nodes and API Functions

4. Prototypes

5. Physics Plugin

6. Fast2D Plugin

7. MTN Functions

8. Webots World Files

     

8.1 Generalities

Webots world files must use the .wbt file name extension. The first line of a .wbt file uses this header:

#VRML_SIM V5.0 utf8

where the number 5 stands for Webots 5. Although the header specifies utf8, at the moment only ascii is supported.

The comments placed just below the header store the window configuration associated with this world.

One (and only one) instance of each of the WorldInfo, ViewPoint and Background nodes must be present in every .wbt file. For example:

#VRML_SIM V5.0 utf8
#!mainWindow: 0 0 0.5 0.700195
#!sceneTreeWindow: 0 0.461914 0.5 0.488281 0.25
#!textEditorWindow: 0.5 0 0.5 0.700195 0.370313
#!logWindow: 0.501562 0.34082 0.5 0.299805

WorldInfo {
  info [
    "Description"
    "Author: first name last name <e-mail>"
    "Date: DD MMM YYYY"
  ]
}
Viewpoint {
  orientation 1 0 0 -0.8
  position 0.25 0.708035 0.894691
}
Background {
  skyColor [
    0.4 0.7 1
  ]
}
PointLight {
  ambientIntensity 0.54
  intensity 0.5
  location 0 1 0
}

previous page go up next page
^ page top ^

  E-mail to webmaster Last updated: Copyright © 2008 Cyberbotics Ltd.