O'Reilly logo

Learning ShiVa3D Game Development by Wade Tracy

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

Lightmaps

A lightmap is a lighting information that is baked right into the textures. Since lightmaps are pre-computed, they are very useful in freeing up resources that would otherwise be spent computing lighting at runtime. To set up a lightmap, we simply add a static light source such as the default one included with ShiVa. Make sure that the direction of the light is the same as the dynamic lights that you will be using—you don't want static shadows going one way and dynamic shadows going in the other direction. In our case, the tunnel was too big to generate a lightmap. It threw an error, but we can create the individual obstacles. The following screenshot shows one of the obstacles before (left-hand side of the screenshot) and after (right-hand ...

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