Posts Categorized: Art

Faking 3D Perspective

Hey Wulvers …. Wulverites? Wulverines (spelled with a “U” so we can’t be sued)? Whatever. It’s Evan Doody here with another tech-art blog post! This time, I’m going to shed some light on how we add depth to our environments, mainly through the use of parallax. This effect has been used to add depth in games since the beginning…of time. According to Wikipedia, “Parallax is a displacement or difference in the apparent position of an object viewed along two different lines of sight, and is measured by the angle or semi-angle of inclination between those two lines.” Long story short, objects in the background move slower than the camera, and foreground objects move at a rate faster than the camera.

We like to setup our environment scenes with several parallax “layers” to give off the illusion of close, far, really far, and “I think I can see my house from here” far. To do this, we created a simple script which allows us to adjust the position of each layer based on the camera position in the scene. A problem arose, however when Mike presented me with the following object: