Reader small image

You're reading from  WebGL HOTSHOT

Product typeBook
Published inMay 2014
Publisher
ISBN-139781783280919
Edition1st Edition
Concepts
Right arrow
Author (1)
Mitch Williams
Mitch Williams
author image
Mitch Williams

Mitch Williams has been involved with 3D graphics programming and Web3D development since its creation in the mid 1990s. He began his career writing software for digital imaging products before moving on as Manager of Software for Vivendi Universal Games. In the late 1990s, he started 3D-Online, his own company, where he created "Dynamic-3D", a Web3D graphics engine. He has worked on various projects ranging from interactive 3D medical procedures, online 3D training for the Department of Defense, creating one of the first 3D mobile games prior to the launch of the iPhone, and graphics card shader language programming. He has been teaching Interactive 3D Media at various universities including UC Berkeley, UC Irvine, and UCLA Extension.
Read more about Mitch Williams

Right arrow

Building a navigable world of Facebook friends


The previous example programmed some pretty critical fundamentals of grabbing multiple Facebook images and pasting them into a 3D environment. We have yet to exploit the capabilities of interactive 3D worlds. Now, we shall add the ability to walk through our 3D Facebook world using the arrow keys and the mouse to navigate through Facebook pages. From here, we will use our imagination to create what a 3D social media world can become.

Engage thrusters

We continue to retrieve images using the facebook3dUI() function as in the previous example, but now we also call a new facebookFriendsNames() function that returns our friends' name and a link to their Facebook page and saves them in the facebookName and facebookLink arrays. The key coding change is in the data we request from the Facebook API, FB.api('/me/friends?fields=name,link…), which tells Facebook to return the names and web addresses of our friends. Note that we are hardly limited by just...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
WebGL HOTSHOT
Published in: May 2014Publisher: ISBN-13: 9781783280919

Author (1)

author image
Mitch Williams

Mitch Williams has been involved with 3D graphics programming and Web3D development since its creation in the mid 1990s. He began his career writing software for digital imaging products before moving on as Manager of Software for Vivendi Universal Games. In the late 1990s, he started 3D-Online, his own company, where he created "Dynamic-3D", a Web3D graphics engine. He has worked on various projects ranging from interactive 3D medical procedures, online 3D training for the Department of Defense, creating one of the first 3D mobile games prior to the launch of the iPhone, and graphics card shader language programming. He has been teaching Interactive 3D Media at various universities including UC Berkeley, UC Irvine, and UCLA Extension.
Read more about Mitch Williams