Chapter 9. Animations and Moving the Camera
In the previous chapters, we have seen 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 chapter 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 in detail at the following four subjects:
- Basic animation
- Moving the camera
- Morphing and skinning
- Loading external animations
We start with the basic concepts behind animations.
Basic animations
Before we look at the examples, let's do a quick recap of what was shown in Chapter 1, Creating ...
Get Learning Three.js – the JavaScript 3D Library for WebGL - Second 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.