Smartphones and many other devices contain gyroscopes that determine their location and position. Google Creative Lab recently created an app on Unity called Sprayscape that hack an Android phone’s gyroscope, turning it into a “VR-ish” camera that can capture “faces, places and spaces.”
Google Creative Lab openly describes Sprayscape as "imperfect," and this is apparent when using the app. With Sprayscape open, the user touches and holds the screen, slowly capturing images that the app then stitches together or “sprays” onto the inside of a 360-degree sphere.
“On user tap or touch, the camera feed is rendered to a texture at a rate of 60 frames per second,” Google Creative Lab explains. “That texture is then composited with any existing textures by a fragment shader on the GPU. That same shader also creates the scape you see in app, handling the projection from 2D camera to a 360 sphere.”
The results aren’t exactly accurate but, again, Google is pretty open about it. The upside is that the code is on Github, so hopefully it will get refined. And in the meantime there could be some great intentional misuse that could lead to some pretty creatively glitchy and hilarious results.