US
16 MIN READ TIME

MAGIC EYE 

Make your own Magic Eye images

Discover how Magic Eye images work by learning how to create your own pictures with hidden 3D objects. Mike Bedford’s behind the visual wizardry.

Credit: www.easystereogrambuilder.com

OUR EXPERT

Mike Bedford has an enduring fascination with 3D photography, but, he admits, this is the first time that he’s understood how Magic Eye images work.

A t first sight a Magic Eye picture, or an autostereogram to give it its generic moniker, looks like a patterned image that repeats several times across its width. However, if you stare at them for a while, a three-dimensional object will eventually appear to pop out of the page.

Here we’re going to see how to generate your own Magic Eye images. But while it’s interesting to produce these astonishing pictures using readily available software – and we’ll show you how to do that – we’re going to start with a few rather more manual exercises. By delving into the underlying principles in this way, you’ll gain an inkling of the magic that fools our eyes.

Perceiving depth

When talking about 3D images we’re thinking of images that are able to reproduce one particular visual characteristic, namely stereoscopy. Putting that in plain English, this refers to us seeing a scene from two slightly different viewpoints – one from each of our eyes – in such a way that our brains merge those two images and, in so doing, provide a much stronger depth perception than is present in 2D images. Returning to Magic Eye images, it’s stereoscopy that makes their magic possible.

Generally, we don’t notice the two slightly different images that our eyes capture, because our brains do all the processing subconsciously. However, to get a better feel for this important visual effect, here’s a simple exercise you can try out. Hold the index finger of one hand at arm’s length and hold the index finger of your other hand much closer to your eyes. Now, try looking at this scene with just one eye at a time, and you’ll see how the horizontal position between the two fingers shifts as you swap between your eyes.

Taking this one stage further, we’re going to delve into stereo pairs or, in other words, pairs of images.These could be either photographs or computergenerated images that represent what each eye would see of a scene.

Having done the “fingers in the air” exercise, if you look at the stereo pair of the canal lock (below) you’ll be able to appreciate how the two images differ, even though the horizontal shift isn’t nearly as great.

In photography, the two images can be generated by taking two photos, moving the camera by a small horizontal distance between the two shots. Similarly, 3D modelling software can capture 2D images for two horizontally different viewpoints. Stereo pairs are viewed in such a way that our left eye sees only the left-eye image and the right eye sees only the right eye image.

Instruments called stereoscopes can achieve this using simple optics. However, because we’re going to be using a free-viewing technique later in this article – one that doesn’t require an optical aid – this is a good time to start. So, using the stereo pair, try out the viewing technique (see box, facing page). Once you’ve learned the technique, you’ll be able to see a fully three dimensional image of the scene represented by the stereo pair.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99c
SUBSCRIBE NOW
30 day trial, then just $9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
July 2021
VIEW IN STORE

Other Articles in this Issue


WELCOME
LINUX FORMET
MEET THE TEAM
We need upgrades!
Technology never stops advancing – that’s a blessing
REGULARS AT A GLANCE
University banned for ‘hypocrite commits’
LINUX KERNEL
Google’s FLoC gets frosty reception
FLoC is Google’s replacement for cookies, but many companies and individuals have their concerns
Linux kernel hits one million git commits
Major milestone reached ahead of 30th anniversary
FILESYSTEM ERRORS
Gabriel Krisman Bertazi is a senior software engineer
STRONG SUPPORT
Keith Edmunds is MD of Tiger Computing Ltd,
Linux on Apple’s M1 makes headway
Ongoing work on the M1’s GPU brings Linux closer to Apple’s SoC
Spectre is back
Researchers find new line of attack that beats defences
Lucas Chess
One of the strongest ways to play – and learn – chess can now run on Linux
DISTRO WATCH
What’s behind the free software sofa?
PULLING TOGETHER
Matt Yonkovit is Percona’s Head of Open Source
TESTING TIMES
Jon Masters has been involved with Linux for
KERNEL WATCH
Jon Masters summarises the latest happenings in the Linux kernel, so that you don’t have to
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to lxf.answers@futurenet.com
Mailserver
WRITE TO US Do you have a burning
Subscriptions
www.magazinesdirect.com/lin/stm21
Loop Hero
We often find Management going around in circles, so when Evan Lahti introduced this latest “micro-RPG” they were left all in a spin!
Shortwave
Version: 2.0 Web: https://gitlab . gnome.org/World/Shortwave
Cosmic
Version: GIT Web: https://github.com/ pop-os/cosmic O ne
Haruna
Version: 0.6.1 Web: https://github.com/g-fb/haruna H aruna is
Vizex
Version: 1.9.9 Web: https://github .com/bexxmodd/vizex F ancy
eBPFSnitch
Version: 0.3.0 Web: https://github .com/harporoeder/ebpfsnitch B ack
Evilpixie
Version: 0.2.1-GIT Web: http://evilpixie.scumways.com B oth Gimp
Nethogs-Qt
Version: 0.0.8 Web: http://slist.lilotux .net/linux/nethogs-qt/ M any
Kitchen Tales
Version: GIT Web: https://github.com/pigdevstudio/kitchen-tales Here’s another brilliant
zFRAG
Version: GIT Web: https://github.com/ LostTrainDude/zfrag B ack
Optimizt
Version: GIT Web: https://github.com/ funbox/optimizt Optimizt is ideal
SingleFileZ
Version: GIT Web: https://github.com/ gildas-lormeau/SingleFileZ Don’t miss
REVIEWS
Phrozen Sonic Mini 4K
Print with more pixels per inch than an iPhone 12 Pro, says Andrew Sink.
Intel Core i5 11600K
It’s a chip that tickles Dave James’ price/performance sensibilities
Ubuntu 21.04
Not a fan of release names, Mayank Sharma is even more perplexed by the one given to this release, since hippos aren’t known to be hairy
Fedora 34
Red Hat-backed distros have had a falling out with the community off late. Mayank Sharma is hopeful this one will help heal some of those wounds
Escuelas Linux 6.13
Remote learning is the flavour of the season and Mayank Sharma finds a distro that’s just what the, er… headmaster ordered
ROUNDUP
3D modellers
Not everyone has the time to learn a complicated piece of 3D software. Michael Reed has five simple solutions for creating your own 3D assets
Flexibility and potential uses
What can you achieve with it?
Licencing and installation
What hurdles do you have to negotiate to get it up and running?
User interface
A clear interface is vital for graphics work
Documentation and community
Is help and support available when you need it?
Import/export formats
How well does it work and play with other programs and engines?
Rendering
What does the output look like?
Ease of use
How easy is it to learn and use?
The Verdict
3D modellers
GET INTO UBUNTU
The latest version of Ubuntu has landed, and Nick Peers is on hand to show you how to install it and find out what’s new
Install Ubuntu 21.04
Looking to switch to Linux from Windows? Discover how to take Ubuntu for a test drive, then install it alongside your existing operating system
Wayland strikes back
Ubuntu 21.04 attempts to reintroduce Wayland as the default desktop server. Will it succeed second time around?
What’s new in 21.04?
It may not be packed full of eye-catching new features, but Ubuntu 21. 04 features plenty of improvements
IN-DEPTH
EXPLORING PRESTEL
Mike Bedford shines a spotlight on the online data service that predated the World Wide Web by more than a decade…
LXF’s NEW $HOME
Jonni Bidwell has one month to save Linux Format’s web presence. He claims he didn’t sign * up for this, but Fate takes a different view…
Pi USER
NEC’s 4K Pi module exhibits positive signs
The Compute Module 4 is powering a commercial signage solution from NEC at 4K resolutions
Mu code editor
Les Pounder is a life-long learner and always keen to try something new. He goes back to basics and codes from a new coder’s point of view
Blast the evil mutant space bats
Les Pounder has landed on a new planet and the evil mutant space bats are trying to steal his space snacks. Defend those provisions with your life!
Fit a Raspberry Pi 4 inside a custom case
Your dreams of a Raspberry Pi desktop can be fulfilled with the DeskPi Pro case. Christian Cawley’s on hand to provide assembly instructions
TUTORIALS
Vet your USB devices
Security is more than just a strong password. Shashank Sharma is always on the hunt for robust techniques to safeguard his data
Get a next-gen media server up and running
Nick Peers reveals how to install and set up a completely open source – but brilliant – alternative to Plex, the streaming media platform
Exploring Blender’s features and tools
Delving further into Blender, this month, Michael Reed uncovers some impressive-looking features that are surprisingly easy to get started with
Build a fully featured Ubuntu NAS system
Nick Peers takes a generous portion of Ubuntu Server, adds a dash of Cockpit and whips up a tasty network-attached storage setup,
Emulate the classic Dragon 32
Les Pounder dons his suit of armour and gets ready to do battle with the fearsome Dragon!
CODING ACADEMY
Managing game objects with Python
Tired of being called small and hairy, Andrew Smith grabs his double-headed axe and sets out to create a world full of Dwarfs
Comparing time series data like a pro
Mihalis Tsoukalos explains how to use the Stumpy library to compare time series, with a little help from Anaconda
On the disc
Discover the highlights from this month’s packed DVD!
BUILD A BETTER LINUX SERVER
CentOS is dead, long live CentOS! We migrate from CentOS to its alternatives. Come with us!
Chat
X
Pocketmags Support