Sprite Images getting distorted/Corrupted on Windows Phone

Bugs will be moved here once resolved.

Post » Mon Sep 01, 2014 2:43 pm

wp_ss_20140902_0003.jpg
wp_ss_20140901_0003.jpg


Problem Description
I am making a side scrolling game, where I am spawning Platforms above the Game layout. They gradually move downwards or to the left side. The game works perfectly on Windows 8.1 and the Construct 2 "Run Layout" in browser.
But when I port the same game to Windows Phone, the images are getting distorted/corrupted! This is not happening with all images.
I am using 256x160 sized tiles for Platforms and repeating 512x512 sprites for background/borders. Its the border images that causing the problem.

Attach a Capx
I would love to upload. But my company policies restrict me from doing so. :(
It has got many Artworks /sprites that we cant share yet.

However, here is a screenshot of the issue.
wp_ss_20140901_0003.jpg

Description of Capx
1. Spawn Platforms and background at regular interval.
2. These will scroll to the left and then get destroyed
3. I have a Player Sprite that performs standard platform moves (up down, left right)
4. Have coins/items appearing at random platforms which the player can collect

Steps to Reproduce Bug
    Only on Windows Phone. Appears immediately the game is started. Game works well on Computer browser and as a Windows 8.1 app.


Affected Browsers
  • Chrome: (NO)
  • FireFox: (NO)
  • Internet Explorer: (NO)

Operating System and Service Pack
Windows 8.1 Enterprise Edition x64 bit
Visual Studio 2013 Pro

Construct 2 Version ID
Construct 2 Beta release r177
You do not have the required permissions to view the files attached to this post.
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Mon Sep 01, 2014 8:38 pm

I found a fix .. I reduced the height of the tall sprites to about 330.. ie 512x330. Now the images seem to be appearing clearly.

Anyone has any idea if Windows Phone app has an image size limitation that could affect the performance?

Also earlier I had about three 512x512 background images under a sprite sheet and few smaller sized images in the same animation frame. When exported from Construct 2 to VS2013... the animation strip was grouped into a huge 2048 x 2048 sprite image!!!

Could this be the reason for the distorted images?

After reducing the height of the tall sprites, I see there is a 1024 x 1024 dimension file. And distorted image is gone!
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Thu Sep 04, 2014 3:24 pm

I've not seen this in any of my tests on Windows Phone. The type of corruption your screenshots show strongly indicate a graphics driver problem. It is not normally possible for our own code to result in that level of glitching.

Are you sure the phone is fully up to date? Microsoft have released several updates recently.

We cannot investigate this further without a .capx. If you not are allowed to share yours, please make a new one from scratch which you can share and demonstrates the problem. We prefer this anyway, as our bug report guidelines outline we do not normally accept full projects in bug reports.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,238

Post » Thu Sep 04, 2014 5:21 pm

Hi @Ashley! Thank you so much for responding. Yes I have the latest Windows Phone 8.1 updates install on my Lumia 720.

The issue is indeed with the large 2048 x 2048 sprite sheet generated after exporting to VS2013. Once I cropped the Blank borders and recompiled o my Phone.. I didnt see the Distortion again!

Here is the image illustration of the size (May be you can try out while I create a sample .CAPX) :
Image Size.png



BTW... when I said company I meant my brother :)
He is working hard on creating some awesome Graphics for my game. I believe will be one of the beautiful games made on Construct 2! I am so much in love with C2. Sadly I only have the Free Edition and don't know if I should buy the Personal Edition. If you promise me my game will do well I will consider buying it. :D.
But its a huge investment for me!! :? Here is a screenshot of my game. Yes I am sharing it finally.. not the Capx yet!
What do you think of the screenshot? It's a night setup, that's why its all dark.

Torch2.png
You do not have the required permissions to view the files attached to this post.
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Thu Sep 04, 2014 5:42 pm

@SamRock - could you visit webglreport.com on the affected device and report what it says for "Max texture size" on the right? I have a Lumia 520 which reports 4096x4096, and I suspect the Lumia 720 will be similar, but worth checking it's within the device capability. If it is, I'm sure it is a driver issue with the device and you should report it to Microsoft.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,238

Post » Thu Sep 04, 2014 6:33 pm

@Ashley, I visited the website and yes, mine phone is supposed to support 4096x4096 too!
I will try reporting to MS soon... right now, I am drowned in Construct 2 ... its awesome.. Thank you so much for giving us this great tool! :)
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Sat Nov 15, 2014 2:12 am

@Ashley, only for info. It's also happened to me the same thing. I have cropped from 2048x2048 to 2043x1344 and magically fix problem on my Lumia 1320.

Cheers,
Marco
B
9
S
2
Posts: 2
Reputation: 596


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest