Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

iOS 6: problem with sprites rotation in gpu mode

$
0
0

Hi,

 

I have a game published on iTunes and today I found a serious problem with the latest iOS 6 GM.

Sprite rotation around X and Y axes doesn't work with gpu render mode.

 

Here is my code:

 

<mx:UIComponent id="gameCanvas" mouseChildren="false" mouseEnabled="false" width="100%" height="100%" />

...

var gridSprite:Sprite=new Sprite();

gameCanvas.addChildAt(gridSprite,0);

// then I draw stuff on this gridSprite

 

It works fine if this sprite is not rotated.

But when I change its rotationX or rotationY properties, the sprite disappears from the screen!

 

 

My game works fine on older versions of iOS (5.0, 5.1.1 and 6 beta 3).

This problem only happens on iOS 6 GM and since iOS 6 will be officially released in a few days, I am really worried...

I tried Air 3.3 and Air 3.4 - both have this problem.

In "cpu" and "direct" render modes sprite rotation works, but graphics performance is terrible. So "gpu" is my only option...

 

I'll really appreciate any help.


Viewing all articles
Browse latest Browse all 2954

Trending Articles