Chapter 2. The Basic Components that Make Up a Three.js Application
In the previous chapter, you learned the basics of Three.js. We looked at a couple of examples, and you created your first complete Three.js application. In this chapter, we'll dive a bit deeper into Three.js and explain the basic components that make up a Three.js application. In this chapter, you'll explore the following topics:
- The main components that you can use to create a Three.js application
- What you can do with the
THREE.Scene
object - How geometries and meshes are related
- The difference between the orthographic and perspective
camera
s
We'll start by looking at how you can create a scene and add objects.