9

Animation and Moving the Camera

In the previous chapters, we saw some simple animations, but nothing too complex. In Chapter 1, Creating Your First 3D Scene with Three.js, we introduced the basic rendering loop, and in the chapters following that, we used that to rotate some simple objects and show a couple of other basic animation concepts.

In this chapter, we’re going to look in more detail at how animation is supported by Three.js. We will look at the following four subjects:

  • Basic animations
  • Working with the camera
  • Morphing and skeleton animation
  • Creating animations using external modes

We will start by covering the basic concepts behind animations.

Basic animations

Before we look at the examples, let’s do a quick recap of what was ...

Get Learn Three.js - Fourth 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.