Skip to main content

Three.js Framework

  • Chapter
Beginning WebGL for HTML5

Abstract

There are many WebGL frameworks that are available to abstract away the lower-level application programming interface (API) calls that we have covered in the first six chapters of the book. This abstraction helps to make WebGL development easier and more productive. We will discuss several WebGL frameworks in the next chapter. In this chapter we will concentrate on one of the most widely used frameworks — Three.js. We will cover the following:

  • A background of the library

  • How to start development with Three.js

  • Falling back to a 2D canvas context for rendering if WebGL is not supported

  • Three.js API calls to easily create cameras, objects, and use lighting models

  • Show the equivalent Three.js code to some examples found in previous chapters, which used direct low-level WebGL API calls

  • Introduce tQuery, a library that blends Three.js with jQuery selectors

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Brian Danchilla

About this chapter

Cite this chapter

Danchilla, B. (2012). Three.js Framework. In: Beginning WebGL for HTML5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3997-0_7

Download citation

Publish with us

Policies and ethics