google-code-export / los-cocos

Automatically exported from code.google.com/p/los-cocos
Other
1 stars 0 forks source link

FlipAngular3DTransition Doesn't reset the view correctly if interrupted with Escape. #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:

Initiate a FlipAngular3DTransition with a duration long enough to interrupt 
such as 2 seconds. As soon as you initiate the transition, hit Escape while 
it's in the process of flipping before it finishes.

Now the display will return to the previous scene, but it's still flipped from 
when Escape was pressed. The scene otherwise appears to function as normal and 
continues to update the frozen flipped quad in the wrong orientation.

Obviously the easy answer is not to interrupt the transition but I believe it 
should handle this condition. The default implementation of the Escape key 
handler is adequate for smaller games and many people do not override it and 
certainly use transitions.

I can provide screenshots if needed.

Original issue reported on code.google.com by AcidTo...@gmail.com on 28 Jan 2012 at 1:40

GoogleCodeExporter commented 9 years ago
Confirmed.

Attached:
    bugdemo_#172_grid_transition_escape_fail.py
    screenshots should_be.png and after_escape.png
    bugdemo_#172_grid_transition_escape_fail_2.py

The second script shows that after aborting the transition the modelview matrix 
is not what should be.

Probably additional code in the transition .finish should restore modelview, 
and somewhere else the modelview matrix should be captured. Maybe also the 
projection one.

Also, while not related to this issue, I'm not sure the projection change in 
the grid.active setter is correct. What if the original projection was ortho ?

Original comment by ccanepacc@gmail.com on 20 Feb 2012 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
better bugdemo attached.

Original comment by ccanepacc@gmail.com on 24 Feb 2012 at 8:10

Attachments:

GoogleCodeExporter commented 9 years ago
fixed at r1168

Notice that all grid transitions where showing the same mis-behavior

Original comment by ccanepacc@gmail.com on 24 Feb 2012 at 8:13

GoogleCodeExporter commented 9 years ago
fixed in cocos 0.5.5, closing

Original comment by ccanepacc@gmail.com on 14 Aug 2012 at 12:54