Book Image

ActionScript Graphing Cookbook

Book Image

ActionScript Graphing Cookbook

Overview of this book

"A picture is worth a thousand words" has never been more true than when representing large sets of data. Bar charts, heat maps, cartograms, and many more have become important tools in applications and presentations to quickly give insight into complicated issues.The "ActionScript Graphing Cookbook" shows you how to add your own charts to any ActionScript program. The recipes give step-by-step instructions on how to process the input data, how to create various types of charts and how to make them interactive for even more user engagement.Starting with basic ActionScript knowledge, you will learn how to develop many different types of charts.First learn how to import your data, from Excel, web services and more. Next process the data and make it ready for graphical display. Pick one of the many graph options available as the book guides you through ActionScript's drawing functions. And when you're ready for it, branch out into 3D display.The recipes in the "ActionScript Graphing Cookbook" will gradually introduce you into the world of visualization.
Table of Contents (17 chapters)
ActionScript Graphing Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

3D world population chart, part 2: Dressing up


Now that we have our base globe, we will look at a few options that are available to make it look better. We'll go into the three techniques in this recipe:

  • Adding an animated cloud layer

  • Adding bump mapping to give the impression of relief on the globe

  • Adding a skybox to fill the background skies

Getting ready

This recipe's starting code is the code from the previous recipe.

We will introduce a skybox. Many previously made skybox images can be downloaded from the Internet. The one that is included with the source files was found on the Unity3D forums (http://forum.unity3d.com/threads/99258-Space-Skybox), but you can also use Spacescape to create your own: http://alexcpeterson.com/portfolio/spacescape.

No matter how you obtain the skybox images, in the end you should have six images of equal size, one image for each direction. Place all the images in the lib folder of the project and give them a name so you can easily remember which is which (top,...