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

Summary

Using models from external sources isn't that hard to do in Three.js. Especially for the simple models, you only have to take a couple of simple steps. When working with external models or creating them using grouping and merging, it is good to keep the following in mind:

  • When you group objects, they remain available as individual objects. Transformations applied to the parent also affect the children.
  • When you merge geometries together, you lose the individual geometries and get a single new geometry. This is especially useful, when you're dealing with thousands of geometries you need to render and you're running into performance issues.
  • Remember that the Three.js GeometryExporter class is still a work in progress. The same goes for the ...

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