The Basic Components that Make up a Three.js Application
In the previous chapter, you learned about 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.
By the end of this chapter, you’ll have learned how to use the basic components that are used in every Three.js application and should be able to create simple scenes using these standard components. You should also feel comfortable working with Three.js applications that use the more advanced objects, since the approach used by Three.js for simple and advanced components is the same.
In this chapter, we will cover the following topics:
- Creating a scene
- How geometries and meshes are related
- Using different cameras for different scenes
We’ll start by looking at how you can create a scene and add objects...