We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
PVRTC4 image format problems with mipmapping
PVRTC4 image format problems with mipmapping
Bug #4338 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8357
Status: | Closed | |
---|---|---|
Start date: | 2014-03-10 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | ios, mac | |
Target version: | - |
I'm using latest version 2 of cocos-2d-x and I have problems using mipmaps and pvrtc files. I used test app to change the example of scaling pvrtc, to play my files... in this case I work with a pvr.ccz file that uses RGBA8888 format (without incrusted mipmaps) and activating mipmaps it works well. When I work with a pvr.ccz file that uses PVRTC4 format (without incrusted mipmaps) It generates wrong mipmaps (showing a lot of color artifacts and transparency) and it works really bad.
this is the modified code I use:
I tested this right now with a file generated with texturepacker and it doesn't work for me. the image has premultiply alpha disabled and it has no mipmaps generated (I uploaded the image for testing).
I have tested this in an Iphone4 with ios 6.1.3 because in ios 7 the "glGenerateMipmap(GL_TEXTURE_2D);" returns a 1282 error (invalid operation).
last_tree.pvr.ccz (11.7 kB) sp_sergio, 2014-03-10 12:42