@hactar: ouch... could you re-send me the test case ? I can't find your email with the test case :( Thanks!
Correct Texture coordinates may fix a long lingering issue
(72 posts) (25 voices)-
Posted 1 year ago #
-
// ccConfig.h #define CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL 0 // <-- Set to 1 to enable CJ ideaAdded to develop branch:
http://github.com/cocos2d/cocos2d-iphone/commit/203d43a717ac6782a45e2353ef0c92ce4634b15aPosted 1 year ago # -
@riq
That's a good solution. This may work for some people but be not so great for others.
Zwoptex will eventually have some sprite manipulation tools to help with this as well.
-R
Posted 1 year ago # -
@riq: resent.
Posted 1 year ago # -
Bah. I couldn't figure out why my textures were blurry, and this turned out to be it :) I think you might want to mention this somewhere because I imagine I'm not the only one who ran into that problem :)
Posted 1 year ago # -
yes thanks a lot CJ - I've got an issue with CCBitMapAtlas and it is completly resolved !
and also thanks to @riq for the nice templates for auto-rotation too in 0.99.5. Perfect.Posted 1 year ago # -
Hi,
I created a command line tool called TexturePacker.
It is a full automated tool to create sprite sheets with automatic placement and creating the same output format as you already know: PNG + PLIST.The current 1.0.2 (beta) 's advanced features is --extrude which does exactly what CJ proposes: It creates a 1px border around a shape copying its border pixels!
There are several more cool features like optimizing Textures for RGBA4444, RGB444 and RGB565 which reduces file size.
It has also a feature to resize sprites on the fly for creating high and standard resolution output.
Another main advantage is that you can add it to make files or add it your build process for automated update if new assets are delivered to you.
Cheers
AndreasPosted 1 year ago # -
@thesk Thanks.
@everyone I've been testing this new TexturePacker tool for about a day now and it works quite well. Andreas has been EXTREMELY fast in responding to bug reports and getting me new builds. I like that the tool can be integrated as a build step in my xcode projects. Right now he's working on adding an option to specify the amount of extrusion you want (right now it's hard set to 1px).Posted 1 year ago # -
There's a typo in the URL you posted, I believe it should be:
http://code-and-web.de/texturepacker
Thanks for the great tool!
Posted 1 year ago # -
Thanks!
Posted 1 year ago # -
Thanks this helped me. However I'm having the same issue as 'marcotronic' originally had, (I'm going to paste his image which describes the exact problem I'm having)

So following suggestions from forum members I set (this seemed to work for marcotronic):
[CCDirector setDirectorType:CCDirectorProjection2D]and it fixed it for my iphone4, and when I ran it on my iPad (non native resolution)! However would there be any reason why my iphone 1st gen still has the artifacts? (I have the CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL set to 1, when I set it to 0 this goes away but i get the 'flicker')
Any insight would be greatly appreciated
Posted 1 year ago #
Reply
You must log in to post.