O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

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

Lighting the Scene

The difference between a simple 3D game and a complex one is often the amount of varied lighting in the game. As one of the most complicated themes in 3D graphics programming, lighting is such a difficult task that many games feature pre-lit scenes in order to simulate the effects of light. For example, a streetlight might seem to emit a directional light on the ground below when the texture of the ground below the light has simply been pre-rendered with the appearance of a light shining on it. This can result in a realistic scene that avoids the difficulties involved in programming real-time lighting effects. Even when using a library that might include support for hardware lights supported in the video card, such as OpenGL ...

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