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.21k stars 7.06k forks source link

Depth buffer problems on Android - regression in 3.17 compared with 3.15.1 #19115

Closed Glidos closed 5 years ago

Glidos commented 6 years ago

Steps to Reproduce:

  1. Freshly installed Android Studio as of 13/10/2018 v3.2.1
  2. Freshly downloaded cocos2d-x v3.17 unarchived to the root of the C drive
  3. Open ccptests project and allow Android Studio to download missing components (DO NOT allow Android Studio to upgrade the project's gradle version)
  4. Android Studio reports missing mips platform, so download ndk v16b (recommended for cocos v3.17) and update project to use that.
  5. Build and run cpp-tests on Galaxy S6.
  6. Navigate to 46: Node: Sprite3D
  7. Step to 7: basic toon shader test
  8. Look at where the spout joins the main body of the teapot: the polygons in that area pop in and out. the same problem can be seen in 8: light map test when dragging the scene, and also in my own project, which is where I first noticed it. The problem doesn't occur in v3.15.1 of cocos2d-x using ndk 11c.
Glidos commented 6 years ago

I left out step 2.5. run setup.py within the cocos2d-x directory (not bothering to specify sdk, ndk and ant paths because I believe they are no longer needed when using Android Studio.)

Glidos commented 5 years ago

Still apparent in v3.17.1

Glidos commented 5 years ago

All is well again in v3.17.2. No idea who or what fixed it.