When you’re done with this chapter, you will

  • Have an important trick for your 3D programmer’s virtual toolbox
  • Be able to switch between multiple cameras
  • Know how and why to keep game and animation code separate
  • Understand Moon phases better than most people (but not the Toy Story animators)

Chapter 13Project: Phases of the Moon

In this chapter we’ll cover something every 3D programmer must learn at some point: how to visualize the Moon and its phases. It will end up looking something like this:

images/moon_phases/when_you_are_done.png

Why is the phase of the Moon important for 3D programmers? First, it’s a simple enough problem—the Sun shines on the Moon, which revolves around ...

Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.