Three.js Cookbook
eBook - ePub

Three.js Cookbook

Jos Dirksen

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

Three.js Cookbook

Jos Dirksen

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
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 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
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 here.
Is Three.js Cookbook an online PDF/ePUB?
Yes, you can access Three.js Cookbook by Jos Dirksen in PDF and/or ePUB format, as well as other popular books in Informatique & Infographie. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783981182

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