Book Image

OUYA Game Development by Example

By : John Donovan
Book Image

OUYA Game Development by Example

By: John Donovan

Overview of this book

The OUYA console and development kit gives you the power to publish video games for the players, creating a console marketplace of the gamers, for the gamers, and by the gamers. Using the OUYA developer kit and the Unity3D game engine, even beginners with a captivating game idea can bring it to life with a hint of imagination. OUYA Game Development by Example uses a series of feature-based, step-by-step tutorials that teach beginners how to integrate essential elements into a game engine and then combine them to form a polished gaming experience.
Table of Contents (18 chapters)
OUYA Game Development by Example Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding realism to your scene with lightmapping


Lightmapping in Unity is a quick and powerful process that can add detailed shadows and object lighting to make your game world appear even more real. To demonstrate this, we'll create a basic scene with primitive objects and preview it before and after lightmapping:

  1. Create a new scene in Unity named lightmappingDemo.

  2. Create a plane positioned at 0, 0, 0 for our objects to sit on.

  3. Create three cubes and position them next to each other on the plane.

  4. Give each cube a different material color or size.

  5. Create a point light and position it so that it lights the three cubes and the plane.

    Your fully assembled scene should look something like the following screenshot:

    As you can see, none of the cubes have cast shadows yet. Directional lights can project shadows across any kind of object automatically, but point lights require lightmapping to cast shadows.

  6. Open the Window menu on the topmost toolbar of the Unity editor and select Lightmapping...