TheParallaxView: Illusion of depth on iPhone X
Events
Subscribe:  iCal  |  Google Calendar
Birmingham GB   20, Sep — 24, Sep
Chiba JP   20, Sep — 24, Sep
Ohio US   21, Sep — 24, Sep
Los Angeles US   27, Sep — 1, Oct
Latest comments
by linda simon
less than a minute ago

it’s great post.i learn something new.i’ll try it my own. http://hotmailaccount.unblog.fr/

by Netraraj Pun
3 hours ago

Awesome. Really great tips for beginners like me to start working correctly.

Very interesting article, thanks for sharing!

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

Leave a Reply

1 Comment on "TheParallaxView: Illusion of depth on iPhone X"

avatar
Jimmy
Member
Jimmy

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

wpDiscuz