Webots Reference Manual - chapter 3 - section 39

Webots Reference Manual


3.39 PointLight

Derived from Light.

PointLight {
  SFVec3f   attenuation   1 0 0    # [0,inf)
  SFVec3f   location      0 0 0    # (-inf,inf)
  SFFloat   radius        100      # [0,inf)
}

3.39.1 Description

The PointLight node specifies a point light source at a 3D location in the local coordinate system. A point light source emits light equally in all directions. It is possible to put a PointLight on board a mobile robot to have the light move with the robot.

A PointLight node's illumination drops off with distance as specified by three attenuation coefficients. The final attenuation factor is calculated as follows: att = 1/(attenuation[0] + attenuation[1] * r + attenuation[2] * r2), where r is the distance from the light to the surface being illuminated. The default is no attenuation. When PointLight nodes are used together with LightSensor, it is recommended to change the default attenuation to a more realistic [0 0 4*π] in order to more accurately model physical reality. Indeed, if a point source radiates light uniformly in all directions and there is no absorption, then the irradiance drops off in proportion to the square of the distance from the surface.

release 7.0.2
Copyright © 2012 Cyberbotics Ltd. All right reserved.