O'Reilly logo

Learning Three.js: The JavaScript 3D Library for WebGL by Jos Dirksen

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

Chapter 9. Animations and Moving the Camera

In the chapters so far we've already seen some simple animations, but nothing too complex. In the first chapter we've introduced the basic rendering loop, and in the following chapter we've 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 details on how animation is supported by Three.js. We will look in detail at the following four subjects:

  • Basic animations: The basic of all animations in Three.js deals with changing any of the following three properties of an object: its position, its rotation, and its scale. In the first part we'll quickly look back at how you can do this from the rendering loop we introduced in ...

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