Cargando…

Three.js cookbook : over 80 shortcuts, solutions, and recipes that allow you to create the most stunning visualizations and 3D scenes using the Three.js library /

This book is ideal for anyone who already knows JavaScript and would like to get a broad understanding of Three.js quickly, or for those of you who have a basic grasp of using Three.js but want to really make an impact with your 3D visualizations by learning its advanced features. To apply the recip...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Dirksen, Jos (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • Acknowledgments
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started
  • Introduction
  • Getting started with the WebGL renderer
  • Getting started with the Canvas renderer
  • Getting started with the CSS 3D renderer
  • Detecting WebGL support
  • Setting up an animation loop
  • Determining the frame rate for your scene
  • Controlling the variables used in the scene
  • Setting up a local web server with Python
  • Setting up a local web server with Node.jsSetting up a local web server using Mongoose
  • Solving cross-origin-domain error messages in Chrome
  • Solving cross-origin-domain error messages in Firefox
  • Adding keyboard controls
  • Loading textures asynchronously
  • Loading models asynchronously
  • Loading models asynchronously with progress
  • Loading other resources asynchronously with progress
  • Waiting until resources are loaded
  • Dragging a file from the desktop to the scene
  • Chapter 2: Geometries and Meshes
  • Introduction
  • Rotating an object around its own axisRotating an object around a point in space
  • Informing Three.js about updates
  • Working with a large number of objects
  • Creating geometries from height maps
  • Pointing an object to another object
  • Writing text in 3D
  • Rendering 3D formulas as 3D geometries
  • Extending Three.js with a custom geometry object
  • Creating a spline curve between two points
  • Creating and exporting a model from Blender
  • Using OBJMTLLoader with multiple materials
  • Applying matrix transformations
  • Chapter 3: Working with the Camera
  • IntroductionMaking the camera follow an object
  • Zooming the camera to an object
  • Using a perspective camera
  • Using an orthographic camera
  • Creating a 2D overlay
  • Rotating the camera around a scene
  • Matching the rendered view to a resized browser
  • Converting world coordinates to screen coordinates
  • Selecting an object in the scene
  • Chapter 4: Materials and Textures
  • Introduction
  • Adding depth to a mesh with a bump map
  • Adding depth to a mesh with a normal map
  • Using HTML canvas as a texture
  • Using HTML video as a texture
  • Creating a mesh with multiple materialsUsing separate materials for faces
  • Setting up repeating textures
  • Making part of an object transparent
  • Using a cubemap to create reflective materials
  • Using a dynamic cubemap to create reflective materials
  • Using Blender to create custom UV mapping
  • Configuring blend modes
  • Using a shadow map for fixed shadows
  • Chapter 5: Lights and Custom Shaders
  • Introduction
  • Creating shadows with THREE. SpotLight
  • Creating shadows with THREE. DirectionalLight
  • Softening lights by adding ambient lighting