COCOS2DX 3.0 ScrollView A green color on the background of Android

Source: Internet
Author: User

Running on Windows is OK, and running under Android becomes like this:

After some groping, finally, the solution is as follows:

Open Project_name\frameworks\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\cocos2dxactivity.java file, Change as per map

is to add two words, set the rendering format as rgb_565, the default format is ARGB8888, if there is no such sentence, then the following Seteglconfigchooser (5,6,5,0,16,8) will not work.

After testing, under the LUA project, it's not a problem to run on a real machine.   But put it under the genymotion and run, it will collapse bulb.  The reason for the bulb is the last 8, which is the stencilsize value, which is the template buffer in the depth buffer. As long as this value is set to be greater than 0, run under the genymotion will collapse bulb, under the real machine does not have this problem, engaged in an afternoon, really do not know what is the reason, but the real machine above the problem has been resolved, if the High man road past, see this question, and know the answer, hope to tell One of the edges is

References:
http://blog.csdn.net/rev_fycd/article/details/8618482
http://blog.csdn.net/pathuang68/article/details/7351317
http://blog.csdn.net/song_hui_xiang/article/details/22809647

COCOS2DX 3.0 ScrollView A green color on the background of Android

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.