<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[OL] GeForce FX 5600XT</title>
		<link>http://www.allegro.cc/forums/view/587762</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 02 Oct 2006 18:13:43 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That sort of thing did not happen on my Radeon 9550. It does on this particular gfx card tough. Any ideas why and how can I fix it (tough I probably can&#39;t and I&#39;ll have to harass Flad to take a look at it)? I know it&#39;s been asked dozens of times, but I don&#39;t recall it ever being fixed.</p><p>And yes, I&#39;m using the latest snapshot.</p><p><span class="remote-thumbnail"><span class="json">{"name":"590216","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/1\/310539626e66f098e8e384e3dc626376.jpg","w":791,"h":589,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/1\/310539626e66f098e8e384e3dc626376"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/3/1/310539626e66f098e8e384e3dc626376-240.jpg" alt="590216" width="240" height="178" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Wed, 27 Sep 2006 20:26:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Are you using blending? Does this occur if using an ADDITIVE_BLEND mode?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 27 Sep 2006 20:41:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, I&#39;m using blending, but not on this screenshot (shadows are disabled, so no blending is actually done). It occurs anyway tough, shadows on or off.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Wed, 27 Sep 2006 20:42:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
If you look at those lines with a paint program you will see that they are not perfectly black, but instead about half brightness. That suggests that it&#39;s a blending issue with the two triangles. Can you turn on additive blending for those floor tiles and check if that helps?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 27 Sep 2006 21:01:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You could try turning off the anti-aliasing.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Wed, 27 Sep 2006 21:11:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try calling &#39;glDisable(GL_POLYGON_SMOOTH)&#39;.<br />It does this sort of thing on my card too and is of no use for rectangles anyway.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mr. Big)</author>
		<pubDate>Wed, 27 Sep 2006 21:14:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah, it fixed it, but with the shadows and lights on, everything else looks rather BAD. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /> I didn&#39;t have any problems on my Radeon 9550 tough, is there any way to fix it without rewriting the code? I don&#39;t want to spend another week trying to figure out a good blender combination <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>EDIT: I&#39;ll try.</p><p>EDIT2: Ah, thanks a lot, glDisable(GL_POLYGON_SMOOTH) fixed everything. Thanks again.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Wed, 27 Sep 2006 21:19:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Would glDisable(GL_POLYGON_SMOOTH) have any negative effects (apart from removing anti-aliasing on untextured polygons when you might want it?)</p><p>I.e. should this be added to the OpenLayer setup code? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 27 Sep 2006 21:39:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, it makes the polygon edges not to appear anti-aliased.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Wed, 27 Sep 2006 21:44:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
What I am concerned with is that this problem will affect all OpenLayer programs that use blitting operations on a GeForce FX 5600XT.</p><p>So, would it be better to disable the smoothing to avoid the problem on this card?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 27 Sep 2006 21:51:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think turning it off by default would be ok, as long as it&#39;s clearly stated somewhere (for those of us who are not so proficient at OpenGL) that you can use something like that to smooth the polygons. After all, I didn&#39;t even know such an option existed before today <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>It would also benefit people with gfx cards like mine, because I don&#39;t think many people using OpenLayer turn that particular option off.</p><p>OTOH, my Snake clone runs perfectly fine on this video card, tough it might be becase I use one large bitmap for the background and additive blending (which fixes the problem as well) for the snake and bonuses.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Wed, 27 Sep 2006 22:52:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
glDisable(GL_POLYGON_SMOOTH) fixed everything. Thanks again.
</p></div></div><p>
Polygon smoothing is disabled by default. You had to explicitly turn it on... so just don&#39;t do that <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Polygon smoothing is just the wrong option for antialiasing. It just doesn&#39;t work. It&#39;s great if what you want is smoothing though, but you do need to keep in mind that your edges will &quot;bleed&quot; into adjacent polygons when you do that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 28 Sep 2006 09:13:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I had this problem too with a GeForce Go 6200.</p><p>With the polygon smoothing off you jts have to keep in mind that your Shapes will be aliased (eg. Circles).<br />That&#39;s why I only use Bitmaps in my game an no shapes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Epsi)</author>
		<pubDate>Thu, 28 Sep 2006 10:09:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
With the polygon smoothing off you jts have to keep in mind that your Shapes will be aliased (eg. Circles).
</p></div></div><p>
Or you can turn on multisampling, which does actually work for edge anti-aliasing.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 28 Sep 2006 11:00:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code snippet"><div class="inner"><pre>SetupProgram<span class="k2">(</span>MOUSE <span class="k3">|</span> KEYBOARD <span class="k3">|</span> TIMER<span class="k2">)</span><span class="k2">;</span>
<span class="k1">else</span> <span class="k2">{</span> SetupProgram<span class="k2">(</span>MOUSE <span class="k3">|</span> KEYBOARD<span class="k2">)</span><span class="k2">;</span> <span class="k2">}</span>
SetupScreen<span class="k2">(</span>sW, sH, sF, <a href="http://www.allegro.cc/manual/desktop_color_depth" target="_blank"><span class="a">desktop_color_depth</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>

<a href="http://www.delorie.com/djgpp/doc/libc/libc_739.html" target="_blank">srand</a><span class="k2">(</span><a href="http://www.delorie.com/djgpp/doc/libc/libc_821.html" target="_blank">time</a><span class="k2">(</span><span class="n">0</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>

Game <span class="k3">=</span> <span class="k1">true</span><span class="k2">;</span>
</pre></div></div><p>
I don&#39;t see how any of these lines &quot;explicitly turn on&quot; GL_POLYGON_SMOOTH. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Thu, 28 Sep 2006 11:47:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You don&#39;t see it because OL enable it by default (it&#39;s the antialiasing function).</p><p>The polygon smoothing line is located in Settings.cpp of the OL lib.<br />Just comment it and you will be fine.</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">void</span> Settings::
SetAntialiasing<span class="k2">(</span> <span class="k1">bool</span> turnedOn <span class="k2">)</span> <span class="k2">{</span>
   useAntiAlias <span class="k3">=</span> turnedOn<span class="k2">;</span>
   <span class="k1">if</span><span class="k2">(</span> useAntiAlias <span class="k2">)</span> <span class="k2">{</span>
      glEnable<span class="k2">(</span> GL_LINE_SMOOTH <span class="k2">)</span><span class="k2">;</span>
      glEnable<span class="k2">(</span> GL_POINT_SMOOTH <span class="k2">)</span><span class="k2">;</span>
      <span class="c">// comment this because of a GeForce bug</span>
      <span class="c">//glEnable( GL_POLYGON_SMOOTH );</span>
   <span class="k2">}</span>
   <span class="k1">else</span> <span class="k2">{</span>
      glDisable<span class="k2">(</span> GL_LINE_SMOOTH <span class="k2">)</span><span class="k2">;</span>
      glDisable<span class="k2">(</span> GL_POINT_SMOOTH <span class="k2">)</span><span class="k2">;</span>
      glDisable<span class="k2">(</span> GL_POLYGON_SMOOTH <span class="k2">)</span><span class="k2">;</span>
   <span class="k2">}</span>
<span class="k2">}</span>
</pre></div></div><p>

Rebuild the lib afterwards.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Epsi)</author>
		<pubDate>Thu, 28 Sep 2006 12:49:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
// comment this because of a GeForce bug
</p></div></div><p>
I take offense. This is not a GeForce bug. GeForce is 100% OpenGL compliant here.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 28 Sep 2006 12:54:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Bob, how come this effect is not visible on other GeForce cards?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 28 Sep 2006 13:20:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You don&#39;t see it because OL enable it by default (it&#39;s the antialiasing function).
</p></div></div><p>
I was referring to this:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Polygon smoothing is disabled by default. You had to explicitly turn it on... so just don&#39;t do that <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div></div><p>
<img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Thu, 28 Sep 2006 13:25:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I was referring to this
</p></div></div><p>

Yes and I was explaining why you have not activated it yourself, it&#39;s just that OL does it for you behind the scene <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Bob, no offense. Maybe it&#39;s the way it&#39;s supposed to look with that OpenGL feature, but from an end user point of view it just looks wrong.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Epsi)</author>
		<pubDate>Thu, 28 Sep 2006 14:41:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Maybe it&#39;s the way it&#39;s supposed to look with that OpenGL feature, but from an end user point of view it just looks wrong.
</p></div></div><p>
That was his point.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Thu, 28 Sep 2006 14:52:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Bob, how come this effect is not visible on other GeForce cards?
</p></div></div><p>
It is. Really, try it. Polygon smoothing + blending / alpha testing = teh loss.</p><p>Polygon smoothing basically draws lines with attenuated alpha around the edges of the polygon, on the <b>outside</b> of it. That looks great if you never use blending, have one polygon by itself over some background, or are drawing only lines. </p><p>Otherwise, you see a &quot;seam&quot; between polygons, which is really one polygon bleeding and overlapping onto the next. That&#39;s because connected smoothed polygons don&#39;t tightly fit (by design); they overlap.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 28 Sep 2006 20:14:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
I see. Thanks for explaining it clearly. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HappyMonster @Home)</author>
		<pubDate>Fri, 29 Sep 2006 03:43:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was also seeing this issue, on a GeForce 7900GT, and commenting out glEnable(GL_POLYGON_SMOOTH) worked.  That line should be removed from OpenLayer entirely, otherwise OL games are going to look horrible on a lot cards.  Besides, on other cards I don&#39;t see any real difference after removing that line.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kdevil)</author>
		<pubDate>Fri, 29 Sep 2006 05:43:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I guess you&#39;re right. After all the polygon smoothing isn&#39;t that important at all.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Fri, 29 Sep 2006 14:34:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Um, this might thicken the plot or I might be talking rubbish but...</p><p>When I was getting GuiChan to work with OpenLayer and I used the precompiled MSVC8 binary from Neil Walkers site there was no problem (except for clipping not working - unrelated).  However when I recompiled the latest OpenLayer snapshot for MSVC8 and used it I did get the lines talked about here (clipping worked fine BTW).  Unfortunately since then I decided to not use GuiChan amd formatted my machine taking with it the compiled OpenLayer snapshot so I can&#39;t verify this properly.  This is on the same computer too.  </p><p>Again, possibly rubbish but...  <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matt Weir)</author>
		<pubDate>Fri, 29 Sep 2006 16:07:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why are you using polygons instead of quads for tiles?  Quads seem like the natural choice here.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matt Smith)</author>
		<pubDate>Mon, 02 Oct 2006 16:40:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Quads are polygons, at least in this case.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Mon, 02 Oct 2006 17:04:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am using quads.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Mon, 02 Oct 2006 18:13:43 +0000</pubDate>
	</item>
</rss>
