Book Image

WebGL HOTSHOT

By : Mitch Williams
Book Image

WebGL HOTSHOT

By: Mitch Williams

Overview of this book

Table of Contents (17 chapters)
WebGL HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Visiting Facebook friends in WebGL


Now that we have built our first application by acquiring a Facebook image and displayed it in WebGL, it is time to create a 3D user interface of our Facebook friends.

Prepare for lift off

As it often happens in programming when we are just grabbing a single item, such as an image, there is not a great deal of complexity. However, once we want to access two or more of our Facebook friends' images, we have additional issues, in particular, downloading multiple images simultaneously in the background. We begin by building on the previous example that focused on just the critical interfacing with Facebook. In this example, we will create the 2D flat plane for the texture images by specifying the vertices instead of importing a 3D mesh. Texture mapping our Facebook friends onto a 3D mesh such as a dog or cow would be fun, but let's leave the creativity to you—the designers.

Engage thrusters

Similar to the previous example, once Facebook verifies that the user is...