Close ad

When it's released in the fall iOS 7, we will get a bunch of new features in our apple devices. In addition to a completely redesigned, sometimes even controversial, appearance, Apple offers us a completely new paradigm of user enjoyment. It seems that Apple wants to prepare its mobile system for the next decade with this drastic step.

Among the novelties is the so-called parallax effect. If I should quote Wikipedia, parallax (from Greek παράλλαξις (parallaxis) meaning "change") is the angle subtended by straight lines drawn from two different locations in space to the observed point. Parallax is also referred to as the apparent difference in the position of a point relative to the background when viewed from two different locations. The further the observed object is from the observation points, the smaller the parallax. Most of you probably get goosebumps at the memory of school desks and boring physics classes.

In practice, this simply means that with a bit of clever programming, the display turns into something more. Suddenly, it is not just a two-dimensional surface with matrices of icons and other elements of the user environment, but a glass panel through which the user is able to see the three-dimensional world while filming the device.

Perspective and parallax

The basic principle of how to create a functional parallax effect on a two-dimensional display is quite simple. Because light passes through the eye to a single point, the brain had to learn to recognize the size of objects relative to the angle between their edges. The result is that closer objects appear large, while distant objects appear small.

These are the basics of perspective perception, which I'm sure each of you has heard of at some point. Parallax, in this iOS context, is the apparent movement between these objects as you move around them. For example, when you are driving a car, closer objects (trees by the roadside) move faster than more distant ones (hills in the distance), even though they are all standing still. Everything changes its places differently at the same speed.

Along with several other tricks of physics, perspective and parallax play a very important role in our perception of the world around us, enabling us to sort and understand the various visual sensations that our eyes capture. In addition, photographers with a sense of perspective they like to play.

From rockets to phones

In iOS, the parallax effect is completely simulated by the operating system itself, with a little help from technology originally developed for launch vehicles. Inside the latest iOS devices are vibrating gyroscopes, devices smaller than a human hair that oscillate at a given frequency when exposed to an electrical charge.

As soon as you start moving the device along any of the three axes, the whole mechanism starts to resist the change in orientation due to Newton's first law, or the law of inertia. This phenomenon allows the hardware to measure the speed and direction the device is being rotated.

Add to this an accelerometer that can detect the orientation of the device, and we get an ideal interplay of sensors to very precisely detect the necessary data to create the parallax effect. Using them, iOS can easily calculate the relative movement of individual layers of the user environment.

Parallax for everyone

The problem of parallax and the illusion of depth can be solved in a straightforward way thanks to mathematics. The only thing the software needs to know is to organize the content into a set of planes and then move them depending on their perceived distance from the eyes. The result will be a realistic rendering of depth.

If you've been watching WWDC 2013 or iOS 7 introductory video, the parallax effect was clearly shown on the main icon screen. When moving the iPhone, they seem to float above the background, which creates an artificial impression of space. Another example is the subtle movement of open tabs in Safari.

However, the exact details are shrouded in mystery for now. Only one thing is clear - Apple intends to weave parallax across the entire system. This may, after all, be the reason why iOS 7 will not be supported on the iPhone 3GS and the first-generation iPad, since neither device has a gyroscope. It can be expected that Apple will release an API for third-party developers to also benefit from the third dimension, all without much power consumption.

Genius or tinsel?

While most of iOS 7's visual effects can be comprehensively described vicariously, parallax requires its own experience. You can watch dozens of videos, whether official or otherwise, but definitely do not evaluate the parallax effect without trying it yourself. Otherwise, you will have the impression that this is only an "eye" effect.

But once you get your hands on an iOS 7 device, you'll see another dimension behind the display. This is something that is very difficult to describe in words. The display is no longer just a canvas on which applications displaying imitations of real materials are rendered. These are replaced by visual effects that will be synthetic and realistic at the same time.

More than likely, once developers start using the parallax effect, apps will be overwhelmed with it as everyone tries to find the right way to use it. However, the situation will stabilize before long, just like with previous iOS versions. However, at the same time, completely new applications will see the light of day, the possibilities of which we can only dream about today.

Source: MacWorld.com
.