<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: PNG Alpha Transparency showing dark border around sprite</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/1269</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:36:17 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/1269" rel="self" type="application/rss+xml" />

		<item>
			<title>johannth on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-10115</link>
			<pubDate>Mon, 31 Aug 2009 14:00:22 +0000</pubDate>
			<dc:creator>johannth</dc:creator>
			<guid isPermaLink="false">10115@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I was wondering if there was any way to solve this dark-edge in simulator problem when using cocos 0.8? I tried messing with ccMacros and set GL_BLEND_SRC to GL_SRC_ALPHA but it had no effect. Are these default settings overridden somewhere in the code?
</p></description>
		</item>
		<item>
			<title>CJ on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7825</link>
			<pubDate>Thu, 13 Aug 2009 06:42:57 +0000</pubDate>
			<dc:creator>CJ</dc:creator>
			<guid isPermaLink="false">7825@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>libpng solves all problems from my pov. So I changed my TextureMgr to default to use libpng for handling .png files. One caveat is I also had to add new texture format support to Texture2D if you want to use png's w/o alpha channels (RGB888) or grayscale pngs. I'll be posting a patch shortly to the google issues list.
</p></description>
		</item>
		<item>
			<title>zombie on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7770</link>
			<pubDate>Wed, 12 Aug 2009 21:54:17 +0000</pubDate>
			<dc:creator>zombie</dc:creator>
			<guid isPermaLink="false">7770@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I use libpng for the simulator and the normal method for the device. When making screenshots it is better when everything looks right :) I made the mistake to release some with blending problems. Our graphics artist was not happy about that :)</p>
<p>- zombie
</p></description>
		</item>
		<item>
			<title>riq on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7722</link>
			<pubDate>Wed, 12 Aug 2009 12:47:02 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">7722@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>and look at this post too:<br />
<a href="http://www.cocos2d-iphone.org/forum/topic/1041" rel="nofollow">http://www.cocos2d-iphone.org/forum/topic/1041</a>
</p></description>
		</item>
		<item>
			<title>crmagicxxx on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7719</link>
			<pubDate>Wed, 12 Aug 2009 12:39:40 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">7719@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Try using cocos2d 0.8 and device instead of simulator. Before 0.8 I had same problems, solving was boring, but with 0.8 everything works ok on device. In simulator it still has problems, but who cares, simulator is just for preview... There are ways to set it right even in simulator but why bothering?</p>
<p>If you still want to solve it old way, look this 2 posts:<br />
<a href="http://www.cocos2d-iphone.org/forum/topic/587" rel="nofollow">http://www.cocos2d-iphone.org/forum/topic/587</a><br />
<a href="http://www.cocos2d-iphone.org/forum/topic/713" rel="nofollow">http://www.cocos2d-iphone.org/forum/topic/713</a>
</p></description>
		</item>
		<item>
			<title>noshbar on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7718</link>
			<pubDate>Wed, 12 Aug 2009 12:03:48 +0000</pubDate>
			<dc:creator>noshbar</dc:creator>
			<guid isPermaLink="false">7718@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Howdy, I don't know anything about this, but I'm suffering from the same problem, and am going to take my first look at it tonight.</p>
<p>Having found this:<br />
<a href="http://www.cocos2d-iphone.org/wiki/doku.php/faq#my_png_doesn_t_look_like_in_photoshop" rel="nofollow">http://www.cocos2d-iphone.org/wiki/doku.php/faq#my_png_doesn_t_look_like_in_photoshop</a><br />
... perhaps the blend function needs to be changed?
</p></description>
		</item>
		<item>
			<title>CJ on "PNG Alpha Transparency showing dark border around sprite"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1269#post-7704</link>
			<pubDate>Wed, 12 Aug 2009 07:34:25 +0000</pubDate>
			<dc:creator>CJ</dc:creator>
			<guid isPermaLink="false">7704@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I searched google already but the previous thread I found didn't really explain what was happening very well, so I'm going to ask...</p>
<p>Why is it when I have a sprite using a PNG 24-bit from photoshop that it renders with a dark edge in my game. I have the director set using [[Director sharedDirector] setPixelFormat:kRGBA8]; before I attach it to the window</p>
<p>And I tried this before/after the actual creation of my sprite:<br />
[Texture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888];<br />
...<br />
[Texture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_Default];</p>
<p>But no luck.</p>
<p>Please help :)
</p></description>
		</item>

	</channel>
</rss>

