In this section, we'll look at a different way of creating geometries. In this chapter, so far, and in the previous chapter, we used the default geometries provided by Three.js to create interesting-looking geometries. With the default set of properties, you can create beautiful models, but you are limited to what Three.js provides. In this section, we'll show you how you can combine these standard geometries to create new ones—a technique known as Constructive Solid Geometry (CSG) To do this, we use the Three.js extension ThreeBSP, which you can find online at https://github.com/skalnik/ThreeBSP. This additional library provides the following three functions:
Learning Three.js - the JavaScript 3D Library for WebGL
By :
Learning Three.js - the JavaScript 3D Library for WebGL
By:
Overview of this book
Table of Contents (20 chapters)
Learning Three.js – the JavaScript 3D Library for WebGL Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Creating Your First 3D Scene with Three.js
Basic Components That Make Up a Three.js Scene
Working with the Different Light Sources Available in Three.js
Working with Three.js Materials
Learning to Work with Geometries
Advanced Geometries and Binary Operations
Particles, Sprites, and the Point Cloud
Creating and Loading Advanced Meshes and Geometries
Animations and Moving the Camera
Loading and Working with Textures
Custom Shaders and Render Postprocessing
Adding Physics and Sounds to Your Scene
Index
Customer Reviews