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

We've discussed a lot of items in this second introduction chapter and this should give you a good overview of what a scene is and what the most important components of a scene are. In the next couple of chapters we'll dive a lot deeper into the details of the Three.js library. The following are a few of the points that you should remember from this chapter:

  • The scene is the main container in the Three.js library. You can add the objects that you want to render to a scene.
  • A scene hasn't got too many specific options and properties. The most important ones allow you to add objects, remove objects, and work on the children attribute of the scene.
  • You can easily add the fog property to the scene by configuring one of the supplied Fog objects. ...

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