Tests of speed depending on scene lighting

English
Česky
<< Previous
Main page
Benchmarks - contents
How to measure?
Polygons
Materials
Fog
Lights
Textures
ROUTE
Next >>

In VRML, there are three kinds of lighsources. Directional light (node DirectionalLight) is the simplest of them. All the rays of this light are parallel and they have the constatnt intensity in all the space. Point light (node PointLight) is more complicated. The rays are cast from one point radially to the scene (like the Sun). The intensity of the rays can decrease with the distance from the lightsource. The most complicated lightsource is the spot light (node SpotLight). The rays go from one point, but in determined direction and solid angle. Another possible source of light in the scene is the avatar's headlight. It is a directional light that aims to the same direction as the avatar's eyes.

In this test, you will find how does your browser manage different kinds of lighsources. In all the scenes we use the same object, whose material is defined as follows:

material Material {
 diffuseColor  0.9 0.9 0.9
 ambientIntensity 0.2
 specularColor 0.7 0.7 0.7
 shininess 0.6
}

The object is placed in the room, on whose walls it is possible to see the effects of lights. The total numbers of triangles is 10600 (10000 for the object and 600 for the walls of the room).

The first scene uses only the avatar's headlight, then there are three scenes with directional ligtsources (4, 8 and 12), then three scenes with point sources and finally three scenes with spot lights.

CAUTION!!! It might happen, that the scenes with 12 light sources will be the same as the scenes with eight ones. This is an error. The scenes are prepared so that the difference between 8 and 12 sources is easily visible. The problem is given by the fact that the OpenGL specifiation requires only 8 lights. The browser can ignore all the lights over the eighth.


Tests:
Jaroslav Křivánek CGG FEL ČVUT Jiří Žára