Learn Three.js program 3D animations and visualizations for the web with JavaScript and WebGL
Three.js has become the industry standard for creating stunning 3D WebGL content. In this edition, you'll learn about all the features of Three.js and understand how to integrate it with the newest physics engines. You'll also develop a strong grip on creating and animating immersive 3D sc...
Main Author: | |
---|---|
Format: | eBook |
Language: | English |
Published: |
Birmingham, UK
Packt Publishing Ltd.
2023
|
Edition: | Fourth edition |
Subjects: | |
Online Access: | |
Collection: | O'Reilly - Collection details see MPG.ReNa |
Table of Contents:
- Chapter 2: The Basic Components that Make up a Three.js Application
- Creating a scene
- The basic functionality of a scene
- How geometries and meshes are related
- The properties and functions of a geometry
- Functions and attributes for meshes
- Using different cameras for different scenes
- An orthographic camera versus a perspective camera
- Looking at specific points
- Debugging what a camera looks at
- Summary
- Chapter 3: Working with Light Sources in Three.js
- What lighting types are provided in Three.js?
- Working with basic lights
- THREE.AmbientLight
- THREE.SpotLight
- THREE.PointLight
- THREE.DirectionalLight
- Using the THREE.Color object
- Working with special lights
- THREE.HemisphereLight
- THREE.RectAreaLight
- THREE.LightProbe
- THREE.LensFlare
- Summary
- Part 2: Working with the Three.js Core Components
- Chapter 4: Working with Three.js Materials
- Understanding common material properties
- Basic properties
- Blending properties
- Advanced properties
- Starting with simple materials
- THREE.MeshBasicMaterial
- THREE.MeshDepthMaterial
- Combining materials
- THREE.MeshNormalMaterial
- Multiple materials for a single mesh
- Advanced materials
- THREE.MeshLambertMaterial
- THREE.MeshPhongMaterial
- THREE.MeshToonMaterial
- THREE.MeshStandardMaterial
- THREE.MeshPhysicalMaterial
- THREE.ShadowMaterial
- Using your own shaders with THREE.ShaderMaterial
- Customizing existing shaders with CustomShaderMaterial
- Materials you can use for a line geometry
- THREE.LineBasicMaterial
- THREE.LineDashedMaterial
- Summary
- Chapter 5: Learning to Work with Geometries
- 2D geometries
- THREE.PlaneGeometry
- THREE.CircleGeometry
- THREE.RingGeometry
- THREE.ShapeGeometry
- 3D geometries
- THREE.BoxGeometry
- THREE.SphereGeometry
- THREE.CylinderGeometry
- THREE.ConeGeometry
- THREE.TorusGeometry
- THREE.TorusKnotGeometry
- THREE.PolyhedronGeometry
- THREE.IcosahedronGeometry
- THREE.TetrahedronGeometry
- THREE.OctahedronGeometry
- THREE.DodecahedronGeometry
- Summary
- Chapter 6: Exploring Advanced Geometries
- Learning advanced geometries
- THREE.ConvexGeometry
- THREE.LatheGeometry
- BoxLineGeometry
- THREE.RoundedBoxGeometry
- TeapotGeometry
- Creating a geometry by extruding a 2D shape
- THREE.ExtrudeGeometry
- THREE.TubeGeometry
- Extruding 3D shapes from an SVG element
- Cover
- Title Page
- Copyright and Credits
- Contributors
- Table of Contents
- Preface
- Part 1: Getting Up and Running
- Chapter 1: Creating Your First 3D Scene with Three.js
- Technical requirements
- Getting the source code
- Testing and experimenting with the examples
- Exploring the HTML structure for Three.js applications
- Rendering and viewing a 3D object
- Setting up the scene
- Adding lights
- Adding the meshes
- Adding an animation loop
- Using lil-gui to control properties and make experimenting easier
- Helper objects and util functions
- Summary