cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.12k stars 7.05k forks source link

Bad rendering quality on Windows 10 mobile #15901

Open crazyhappygame opened 8 years ago

crazyhappygame commented 8 years ago

Please run cpp-test on Windows 10 mobile and Android and compare graphic. It works fine (on both devices) but quality of rendered app is lower on Windows Phone.

I released (cocos2dx-3.10) exactly the same apps on Google Play and Windows Store.

  1. Google Play (https://play.google.com/store/apps/details?id=com.crazyhappygame.coloringpagespuzzleforkids).
  2. Windows 10: (https://www.microsoft.com/store/apps/9nblggh4m297)

It seems like there is some issue with scaling/smoothing on WindowsPhone. Both application uses: glview->setDesignResolutionSize(size.width, size.height, ResolutionPolicy::EXACT_FIT);

In attachment screen shots from devices: Android.png and WindowsPhone.png. Android.png looks much better that WindowsPhone.png. How can I fix it? Android: 720x1280 android Windows: 768x1280 windowsphone

ishmar commented 8 years ago

Yeah, got same issue. Don't have my phone now to capture screens but remember having it.

With original code it was easy to notice the ugly graphics (first I blamed 480x800 of Lumia 435). Later, I found that as I already had my designResolution(), removing the call to director->setContentScaleFactor() my game was still working, performance on Lumia 435 improved a bit, and graphics, while not being the same than on Android, looked better than before.

So I basically 'ignore' the hints given on cocos 2d-x multi resolution tutorial and just call

glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::EXACT_FIT);

After rereading the detailed explanation, it still seems a must to call setContentScaleFactor() but I would advice you to give it a try removing it and sharing results too.

crazyhappygame commented 8 years ago

@stammen could you help me?

michael-ordering commented 8 years ago

Are there any workround for solve this problem? I faced same thing on porting from Android to UWP. How can I solve this?

crazyhappygame commented 8 years ago

No workaround so far ...

ishmar commented 8 years ago

Sadly, One of my top interest about using cocos2d-x was the possibility to develop for all platforms (android, ios AND wp), more than a year after, I've stopped all efforts for WP due the lack of support for basic stuff such as a fast app startup (blame ANGLE) and my schedule doesn't include update my WP game (yeah, it's published for WP8.1 and UWP win10/win10mobile) as there is no answer from development team.

My feeling is that WP port is (almost) abandoned so....

dzpt commented 7 years ago

I'm facing the same while scaling big image to small on iOS. Have you solved this trouble?