Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping node doesn't work on Android 5.0: #10759

Closed
piotrros opened this issue Mar 6, 2015 · 6 comments
Closed

Clipping node doesn't work on Android 5.0: #10759

piotrros opened this issue Mar 6, 2015 · 6 comments
Assignees
Milestone

Comments

@piotrros
Copy link

piotrros commented Mar 6, 2015

See this topic:

http://stackoverflow.com/questions/28842039/cocos2d-x-android-5-0-clipping-node-not-working

@hsienwei
Copy link

i got it too.
It occurred to Nexus 7 with android 5.1.
Some info below.
https://dl.dropboxusercontent.com/u/10581994/cocos2dx_issue/nexus.txt
https://dl.dropboxusercontent.com/u/10581994/cocos2dx_issue/Screenshot_2015-04-16-13-43-24.png
https://dl.dropboxusercontent.com/u/10581994/cocos2dx_issue/Screenshot_2015-04-16-13-41-14.png

if modify Cocos2dxActivity.java like code below, problem will be fix.
// Switch to supported OpenGL (ARGB888) mode on emulator
if (isAndroidEmulator())
this.mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
else
this.mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8);

p.s. using cocos2d-x 3.5

@hussain-sohaib
Copy link

to fix this issue, in appcontroller.mm change pixelformat and depthFormat to this.

pixelFormat: kEAGLColorFormatRGBA8
depthFormat: GL_DEPTH24_STENCIL8_OES

thanks!

@tomhmp
Copy link

tomhmp commented Apr 16, 2015

I'm also experiencing this issue although neither of the above suggestions worked for me.

My clipping nodes seem to work fine on our Samsung S3 (4.1.2) but not on our S4 (4.2.2) or our Nexus 7 (4.4.3).

I've also tried changing the #define GL_DEPTH24_STENCIL8 in CCGL-android.h to GL_DEPTH24_STENCIL8_OES but that didn't seem to make a difference. No luck with creating the ClippingNodes in a CallFunc either (which I read as a suggestion elsewhere).

I'm currently using cocos2dx v3.4 if anyone else has any thoughts?

@walzer walzer added this to the V3.7 milestone Apr 24, 2015
@walzer walzer modified the milestones: v3.8, v3.7 Apr 27, 2015
@lalaloha
Copy link

Hi,

I got the problem described in "Screenshot_2015-04-16-13-41-14.png" too with cocos2d-x 3.5, and using UIScrollView, and it happens in nexus 7.. I tested all the code in many devices, and all is okay.. but in nexus 7 (the first model), it became like the screenshot.. Is there any quick and permanent fix for this? thanks

@yangws
Copy link
Contributor

yangws commented Jul 9, 2015

I send a pr for this issue, but i don't have any device to reproduct this issue.
Please test my pr if can reproduct this issue, thanks.
If the pr works correctly, please tell me, thanks.

@pandamicro
Copy link
Contributor

@piotrros @hsienwei @tomhmp @lalaloha
Can you help to test our fix #12762 ? Thanks

@pandamicro pandamicro assigned yangws and unassigned dabingnn Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants