HTML and CSS Reference
Web developers have been trying for years to overcome 3D limitations to create better
interactive games, education tools, and infographics. In the past, plug-ins such as Unity,
Flash, and Quicksilver created Google Maps and online 3D explorations programs. Plug-
ins can be useful, but they leave you at the browser vendor's mercy for updates, usually
lack hardware acceleration, and are often proprietary. To solve these issues, the Khronos
Group created a Web Graphics Library (WebGL). WebGL, as mentioned in chapter 1 ,
without plug-ins. Several developers have even used WebGL to make drawing interfaces
that create 2D images and rotate those creations in 3D.
Figure 9.1. A simple WebGL application called X-Wing created by OutsideOfSociety. He worked on the popular
WebGL project http://ro.me .
(OOP) before working through this chapter's sample application. If you aren't, please go
You could learn basic 3D programming elsewhere, but we've provided it all for you—all in
one place—along with thorough explanations of 3D programming concepts, mathematics,
diagrams, and more. We even teach you how to apply your new knowledge by walking you
through the creation of a game: Geometry Destroyer!