This is 3-D photography. These are two of the practices I did. How you achieve this effect is taking a picture then slightly move the camera to the left of right. In Photoshop one would stick the second picture on top of the first. Set it slightly off and double click on the top layer. Un-check the red color. Put the glasses on and make necessary adjustments. To finish do basic correction and flatten the image.
Outside Photos: