From the course: Learning 3D Graphics on the Web with Three.js
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Primitive geometries - JavaScript Tutorial
From the course: Learning 3D Graphics on the Web with Three.js
Primitive geometries
- [Instructor] I will start off this chapter with a new scene file to illustrate the Three.js geometry properties a bit better. You can find this file among the exercise files. Three.js has a lot of primitive geometry types that you can use to create various types of objects. Here is a scene that contains a bunch of them. You can check out which primitive geometries are sourced in this file by checking the function called getGeometry. I applied a scratched metal texture on the objects to make them look slightly more interesting. These geometries are usually referred to as primitive geometries as they are relatively simple and usually used as the building blocks of other, more complicated geometries. The procedure where a primitive geometry is modified to the desired shape is called modeling. This is achieved by manipulating the vertices, edges, and faces of a base geometry. Geometries in 3D are made up of points called vertices and lines that connect them, called edges. The faces of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.