Three.js Cookbook
eBook - ePub

Three.js Cookbook

  1. 300 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Three.js Cookbook

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Three.js Cookbook


Table of Contents

Three.js Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started
Introduction
Getting started with the WebGL renderer
Getting ready
How to do it...
See also
Getting started with the Canvas renderer
Getting ready
How to do it...
How it works...
See also
Getting started with the CSS 3D renderer
Getting ready
How to do it...
How it works...
See also
Detecting WebGL support
Getting ready
How to do it...
Setting up an animation loop
Getting ready
How to do it...
See also
Determining the frame rate for your scene
Getting ready
How to do it...
How it works...
Controlling the variables used in the scene
Getting ready
How to do it...
There's more...
Setting up a local web server with Python
Getting ready
How to do it...
Setting up a local web server with Node.js
Getting ready
How to do it...
Setting up a local web server using Mongoose
Getting ready
How to do it...
See also
Solving cross-origin-domain error messages in Chrome
How to do it...
Solving cross-origin-domain error messages in Firefox
How to do it...
How it works...
See also
Adding keyboard controls
Getting ready
How to do it...
How it works...
There's more...
See also
Loading textures asynchronously
Getting ready
How to do it...
How it works...
See also
Loading models asynchronously
Getting ready
How to do it...
There is more...
Loading models asynchronously with progress
Getting started
How to do it...
Loading other resources asynchronously with progress
Getting ready
How to do it...
Waiting until resources are loaded
Getting ready
How to do it...
How it works...
There is more...
See also
Dragging a file from the desktop to the scene
Getting ready
How to do it...
How it works...
2. Geometries and Meshes
Introduction
Rotating an object around its own axis
Getting ready
How to do it...
How it works...
See also
Rotating an object around a point in space
Getting ready
How to do it...
How it works...
See also
Informing Three.js about updates
Getting ready
How to do it...
How it works...
See also
Working with a large number of objects
Getting ready
How to do it...
How it works...
See also
Creating geometries from height maps
Getting ready
How to do it...
How it works...
There's more…
See also
Pointing an object to another object
Getting ready
How to do it...
How it works...
There's more…
See also
Writing text in 3D
Getting ready
How to do it...
How it works...
There's more…
Rendering 3D formulas as 3D geometries
Getting ready
How to do it...
How it works...
There's more…
Extending Three.js with a custom geometry object
Getting ready
How to do it...
How it works...
There's more...
Creating a spline curve between two points
Getting ready
How to do it...
How it works...
There's more…
Creating and exporting a model from Blender
Getting ready
How to do it...
See also
Using OBJMTLLoader with multiple materials
Getting ready
How to do it...
How it works...
There's more…
See also
Applying matrix transformations
Getting ready
How to do it...
How it works
There's more…
See also
3. Working with the Camera
Introduction
Making the camera follow an object
Getting ready
How to do it...
How it works...
There's more…
See also
Zooming the camera to an object
Getting ready
How to do it...
How it works...
There's more…
Using a perspective camera
Getting ready
How to do it...
How it works...
There's more…
See also
Using an orthographic camera
Getting ready
How to do it...
How it works...
There's more…
See also
Creating a 2D overlay
Getting ready
How to do it...
How it works...
See also
Rotating the camera around a scene
Getting ready
How to do it...
How it works...
There's more…
See also
Matching the rendered view to a resized browser
Getting ready
How to do it...
How it works...
Converting world coordinates to screen coordinates
Getting ready
How to do it...
How it works...
See also
Selecting an object in the scene
Getting ready
How to do it...
How it works...
There's more
See also
4. Materials and Textures
Introduction
Adding depth to a mesh with a bump map
Getting ready
How to do it...
How it works...
There's more…
See also
Adding depth to a mesh with a normal map
Getting ready
How to do it...
How it works...
There's more…
See also
Using HTML canvas as a texture
Getting ready
How to do it...
How it works...
See also
Using HTML video as a texture
Getting ready
How to do it...
How it works...
There's more…
See also
Creating a mesh with multiple materials
Getting ready
How to do it...
How it works...
See also
Using separate materials for faces
Getting ready
How to do it...
How it works...
There's more…
See also
Setting up repeating textures
Getting ready
How to do it...
How it works...
See also
Making part of an object transparent
Getting rea...

Table of contents

  1. Three.js Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Three.js Cookbook by Jos Dirksen in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Graphics. We have over one million books available in our catalogue for you to explore.