We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
TMX Tile Cracks in the Test App
TMX Tile Cracks in the Test App
Minggo Zhang wrote:
Here is what I’ve found:
When a TMXLayer is initially created, CCTMXLayer::setupTiles() is called and executes m_pobTextureAtlas->getTexture()->setAliasTexParameters();
However, when the GL Context is lost and is recreated it appears that the texture (referenced by m_pobTextureAtlas->getTexture() is not recreated with AliasTexParameters. The cracks between the tiles occur because the tiles are being drawn Antialiased instead of Aliased.
I have confirmed that if I manually call CCTMXLayer::getTextureAtlas()->getTexture()->setAliasTexParameters() after a GL context switch then cracks between TMX Tiles no longer appear on Android.
Status: | Closed | |
---|---|---|
Start date: | 2012-07-02 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | android | |
Target version: | cocos2d-2.0-x-2.0.2 |
http://www.cocos2d-x.org/boards/6/topics/12508