epatel / EPGLTransitionView

OpenGL ES view for animating a view transition.
http://www.memention.com/blog/2010/02/28/Bells-and-Whistles.html
392 stars 68 forks source link

Landscape Mode not working #1

Closed wuf810 closed 13 years ago

wuf810 commented 14 years ago

I know you never implemented Landscape handling but having trouble doing myself. Any/hints tips about how to apply?

Looking at the OpenGL code, the animation (for example Turn) should work as it is animating along the Y axis but it appears the starting and ending animation images always revert to portrait...

epatel commented 14 years ago

I think the xib view for the target view should be setup properly in interface builder, ie all controls are placed in their final positions so you are not counting on the layout manager to places them. This because when the view is captured to the texture it has not been layed out, only loaded. For the graphical parts I can see if I can modify it to go the other way

wuf810 commented 14 years ago

Hi Edward, thanks for the reply.

I played around a bit. Set autorotate on the viewControllers to yes etc. Then in order to ensure that the transitions are corrected orientated I use glRotatef(-xx, 0, 0, 1); in the setUpTransition.

Although I'm seeing the transition correctly oriented now, I can't get the actual image (captured with UIGraphicsGetImageFromCurrentImageContext) to fit correctly i.e I think its physical size is incorrect or its autoresizing options are incorrect.

I'm sure I'm missing something…either way would really appreciate any thing you can do to help.

Thanks, Michael.

wuf810 commented 14 years ago

As an aside I've been working on adding a page curl affect to your example (using code from W. Dana Nuon).

Well so far the view is curling but sadly the transition is upside down, back to front and the wrong size :-) Nearly there though

If you are interested in adding this to your demo (I will probably need your help getting the last bits working) then let me know.

epatel commented 14 years ago

That sounds great!

Jolt-xx commented 14 years ago

If anyone has any code for landscape I would be forever grateful. For some reason I can't get the animation to show on the screen, it just transitions from one view to the other without the animation. Thanks in advance.

nonamelive commented 13 years ago

Please please implement the landscape mode.

Jolt-xx commented 13 years ago

My problem ended up being that the landscape transitions just weren't showing in the simulator but work fine on the device.

epatel commented 13 years ago

Checkout the FlipReader demo

wuf810 commented 13 years ago

What and where is the FlipReader demo?

epatel commented 13 years ago

It's a new demo in the repo

https://github.com/epatel/EPGLTransitionView/tree/master/FlipReader-iPad

wuf810 commented 13 years ago

Thanks Edward. Will check it out.