iOS7 Parallax Effect

Software: Away3D 4.x

VMC, Newbie
Posted: 13 June 2013 03:56 PM   Total Posts: 2

In case you haven’t seen it, iOS7 introduces a Parallax Effect where the background image appears deeper behind the home screen icons - an effect that is apparent when you tilt the phone. Here’s an example video:
http://youtu.be/ljoy4iAQwWw

Does anyone have any suggestions as to how to implement a similar effect with Away3D?

The gyroscope data can provide pitch, yaw, and roll angles, but how can that be converted to values that can consistently create the parallax effect independent of device orientation (if you’re holding the device parallel to a wall vs parallel to the floor vs spinning in an office chair)?

I suspect that it has something to do with determining a “control” or “home” orientation and shifting relative to that, but my 3D math is poor. Anyone have any suggestions?

Thanks!

   

Avatar
Luca, Sr. Member
Posted: 14 June 2013 06:00 AM   Total Posts: 230   [ # 1 ]

Hi VMC, i have no time ( im working on AwayGamesMaker ) but…

I think you can try to use ( i think you have a little experience with shaders programs ) smile :
and give a range to the….

var Sp3D:Sprite3D = new Sprite3D( InactiveObjectMaterial, 50, 50 );
for “always facing model” or a plane and your custom shader material:

http://en.wikipedia.org/wiki/Parallax_mapping
http://away3d.com/tutorials/Writing_Custom_Materials_1:_Getting_Started

http://www.pythonstuff.org/glsl/example_5_parallax_mapping.html
http://www.opengl.org/sdk/docs/tutorials/TyphoonLabs/Chapter_4.pdf

i can do nothing else for you now but… smile

   

VMC, Newbie
Posted: 15 June 2013 01:20 PM   Total Posts: 2   [ # 2 ]

Thanks Luca, the resources your provided were very helpful.

   

Avatar
Luca, Sr. Member
Posted: 15 June 2013 03:07 PM   Total Posts: 230   [ # 3 ]

Hey, if you make some “demo”, you can share them with us… smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X