TheParallaxView: Illusion of depth on iPhone X
Events
Subscribe:  iCal  |  Google Calendar
Milwaukee US   17, Jun — 22, Jun
New York US   17, Jun — 20, Jun
St. Petersburg RU   19, Jun — 21, Jun
TBA BR   22, Jun — 24, Jun
Amsterdam NL   25, Jun — 28, Jun
Latest comments
by Charlotte Delannoy
8 hours ago

Thanks a lot ! Did you give some masterclass of something ?

by Hun Young Ha
11 hours ago

How is the Clovers sit on top between tiles? for mine, blend modes doesnt seem to be working... they follow the height of the tiles which results in extreme distortion of clovers following the height changes of tiles

by Gary Sanchez
12 hours ago

I really liked Cris Tales, its a Colombian game, i really like it how it looks, its like a old JRPG with a unique graphic style: https://www.youtube.com/watch?v=EXAUWjhqeKg

TheParallaxView: Illusion of depth on iPhone X
2 March, 2018
News

This is a very cool project, which got insane popularity on the web. Peder Norrby from Sweden shared his experiments with the illusion of depth, which is created with iPhone X. The video describes it best. Soon the app will be available for free on AppStore.

Using the position of an eye and the device screen rectangle a non-symmetric camera frustum can be defined. The frustum defines an off-axis projection that when used for rendering on the device allows for objects appearing in front of, and behind the screen of the device.

Peder Norrby 

Source code

If you are an experienced Unity + iOS developer you can download the source code and build the app to your iPhone X but if you just want to try the app you can grab it free from the AppStore [in review, coming soon].

I cannot give support on how to use Unity and build the app. Only get the source if you know what to do with it.

Full source code is available here: TheParallaxView on GitHub
(Unity and Unity’s ARKitPlugin required)

Implemented in Unity with UnityARKitPlugin. The technique should easily transfer to native iOS apps and other devices.

Although you are welcome to use the code (under MIT license, basically with attribution) the point of sharing the code is more to show the technique to other developers than to serve as actual code building blocks.

 

 

Comments

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jim Recent comment authors
Jimmy
Member
Jimmy

Is iPhone X necessary ? Can it be done with iPhone 7 ?