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

Creating animations using external models

In Chapter 8, Creating and Loading Advanced Meshes and Geometries, we've looked at a number of 3D formats that are supported by Three.js. A couple of those formats also support animations. In this chapter we'll look at the following examples:

  • Blender with the JSON exporter: we'll start with an animation created in blender and exported to the Three.js JSON format.
  • Collada model: the collada format has support for animations. For this example we'll load an animation from a collada file and render it with Three.js.
  • MD2 model: the MD2 model is a simple format used in the older quake engines. Even though the format is a bit dated, it is still a very good format for storing character animations.

We'll start with ...

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