Book Image

Processing 2: Creative Coding Hotshot

By : Nikolaus Gradwohl
Book Image

Processing 2: Creative Coding Hotshot

By: Nikolaus Gradwohl

Overview of this book

Processing makes it convenient for developers, artists, and designers to create their own projects easily and efficiently. Processing offers you a platform for expressing your ideas and engaging audiences in new ways. This book teaches you everything you need to know to explore new frontiers in animation and interactivity with the help of Processing."Processing 2: Creative Coding Hotshot' will present you with nine exciting projects that will take you beyond the basics and show you how you can make your programs see, hear, and even feel! With these projects, you will also learn how to build your own hardware controllers and integrate devices such as a Kinect senor board in your Processing sketches.Processing is an exciting programming environment for programmers and visual artists alike that makes it easier to create interactive programs.Through nine complete projects, "Processing 2: Creative Coding Hotshot' will help you explore the exciting possibilities that this open source language provides. The topics we will cover range from creating robot - actors performing Shakespeare's "Romeo and Juliet", to generating objects for 3D printing, and you will learn how to run your processing sketches nearly anywhere from a desktop computer to a browser or a mobile device.
Table of Contents (16 chapters)
Processing 2: Creative Coding Hotshot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

From globe to neon globe


For our final task of this mission, we will be converting the globe we just created into a glowing neon globe. We will create a globe that would fit into an 80s movie like WarGames or Tron. We will create this glow effect by applying two filters to our globe. The first one is an edge detection filter, which strips away every filled area of the image and only leaves the outlines of the continents. The second filter will add a glow effect to our lines. We will implement these filters in the OpenGL Shading Language (GLSL). These GLSL filters will be executed by our graphics card; they don't need CPU resources.

We will only apply our filters if the simple texture showing the continents is active, and we will deactivate them when the satellite images from NASA's Visible Earth project are active.

Engage Thrusters

Let's create our filters:

  1. First, we need to change the colors of our world map texture to make the sea appear black and the continents green. Open the sketch that...