O'Reilly logo

Irrlicht 1.7 Realtime 3D Engine by Aung Sithu Kyaw, Johannes Stein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating a global ambient light

We are now going to set the light color for a global ambient light that will affect all the objects in the scene.

  1. Choose File | New to create a new scene in irrEdit.
  2. Select the topmost level node, which is a scene node, called root in our case.
  3. You'll see an attribute called AmbientLight in the Properties panel. Change this color to something else other than default black, let's say yellow:
    Time for action - creating a global ambient light
  4. Select the testCube node from the explorer and the choose Materials tab in the Properties panel. By default, Lighting property is unchecked. Check this checkbox and you'll see the result immediately as shown in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required