<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[OpenLayer] A few bugs</title>
		<link>http://www.allegro.cc/forums/view/585980</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 25 Jun 2006 14:17:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>First I would like to say that OpenLayer is the best library that I&#39;ve ever used.</p><p>But I&#39;ve found what I think is bugs (using the latest snapshot ofcourse).</p><p>1) &quot;Ellipse&quot; is not in &quot;ol::&quot; namespace, you have to use ol::Ellipse currently.</p><p>2) Ellipse: Impossible to set outline width higher than 1.0. Else the shape move <i>very fast</i> in diagonal and disapear (ex: <span class="source-code">ol::Ellipse <a href="http://www.allegro.cc/manual/ellipse" target="_blank"><span class="a">ellipse</span></a><span class="k2">(</span><span class="n">200</span>.<span class="n">0</span>,<span class="n">200</span>.<span class="n">0</span>,<span class="n">100</span>.<span class="n">0</span>,<span class="n">60</span>.<span class="n">0</span>,<span class="n">2</span>.<span class="n">0</span><span class="k2">)</span><span class="k2">;</span></span></p><p>3) TextRenderer: Print() with <b>CENTER</b> mode for <b>multi-lines</b> strings slows down the game by <b>75%</b> (!!). No effect on fps with a single line...</p><p>4) Anti-Aliasing: With my Gfx Card (GeForce Go 6200), I get strange results, commented on the screenshots:<br /><span class="remote-thumbnail"><span class="json">{"name":"aliasing7bs.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/3\/9312a958d1da87cab2f62114a2e293d6.png","w":664,"h":124,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/3\/9312a958d1da87cab2f62114a2e293d6"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/9/3/9312a958d1da87cab2f62114a2e293d6-240.jpg" alt="aliasing7bs.png" width="240" height="44" /></span></p><p>So antialiasing works for Bitmap(), but not for the Shape(). However if I force antialiasing with the card settings (instead of leaving the app control it), it works... So it&#39;s probably something missing in the OL code.</p><p>That&#39;s all for now (we really need an OL part in those forums <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />)</p><p>Thanks <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Epsi)</author>
		<pubDate>Thu, 22 Jun 2006 03:40:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
I&#39;m not sure why you are having these problems. Fladimir doesn&#39;t seem to be around at the moment either. Perhaps someone else can help?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 22 Jun 2006 14:58:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s probably because OL uses fsaa, which is a hardware routine (I don&#39;t think GL supports a software routine)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (biscuitz)</author>
		<pubDate>Thu, 22 Jun 2006 18:37:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>ummmm..  Ellipse <b>IS</b> in the ol namespace. <br />Also you must define an outlinewidth between 0.0 - 1.0 otherwise it&#39;s not going to work... it defaults to 1.0
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (juvinious)</author>
		<pubDate>Thu, 22 Jun 2006 19:00:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>character.cpp:257: error: `Ellipse&#39; undeclared (first use this function)<br />character.cpp:257: error: (Each undeclared identifier is reported only once for each function it appears in.)</p><p>ol::Ellipse fix the problem.<br />I have no problem with Rect or any other OL class. (&quot;using namespace ol&quot; ofc)</p><p>For rectangle or Poly you can use wider outline width than 1.0 (wich is a good thing). Why limit it with Ellipses ? (and it should not bug like that if 1.0 is the maximum)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Epsi)</author>
		<pubDate>Thu, 22 Jun 2006 21:37:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Me is working on something that runs just fine on my computer.<br />But on other computers it crashes.</p><p>Guilt has gotten this from debug.<br />We&#39;ve decided to blame OpenLayer for the crash.</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="k2">(</span>gdb<span class="k2">)</span> down</td></tr><tr><td class="number">2</td><td>Bottom <span class="k2">(</span>i.e., innermost<span class="k2">)</span> frame selected<span class="k2">;</span> you cannot go down.</td></tr><tr><td class="number">3</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">4</td><td><span class="p">#1  0x00ffffff in ?? ()</span></td></tr><tr><td class="number">5</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">6</td><td><span class="p">#2  0x00413ab7 in ol::Bitmap::SendToGPU() ()</span></td></tr><tr><td class="number">7</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">8</td><td><span class="p">#3  0x00415a88 in ol::Bitmap::Load(char const*, int) ()</span></td></tr><tr><td class="number">9</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">10</td><td><span class="p">#4  0x004058ec in Zoe::Bitmap::Load(std::string const&amp;) (this=0x2c7fad8,</span></td></tr><tr><td class="number">11</td><td>    filename<span class="k3">=</span>@<span class="n">0x22fba0</span><span class="k2">)</span> at src<span class="k3">/</span>Zoe_Bitmap.cpp:32</td></tr><tr><td class="number">12</td><td><span class="n">32</span>              <span class="k1">if</span><span class="k2">(</span><span class="k3">!</span>m_bitmap-&gt;Load<span class="k2">(</span>filename.c_str<span class="k2">(</span><span class="k2">)</span><span class="k2">)</span><span class="k2">)</span></td></tr><tr><td class="number">13</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">14</td><td><span class="p">#5  0x00405783 in Zoe::Bitmap::Bitmap(std::string const&amp;) (this=0x2c7fad8,</span></td></tr><tr><td class="number">15</td><td>    filename<span class="k3">=</span>@<span class="n">0x22fba0</span><span class="k2">)</span> at src<span class="k3">/</span>Zoe_Bitmap.cpp:16</td></tr><tr><td class="number">16</td><td><span class="n">16</span>              Load<span class="k2">(</span>filename<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">17</td><td><span class="p">#6  0x004080ce in Zoe::LoadZad(std::string const&amp;, Zoe::Animation*) (</span></td></tr><tr><td class="number">18</td><td>    filename<span class="k3">=</span>@<span class="n">0x22fda0</span>, inAnimation<span class="k3">=</span><span class="n">0x3ddea8</span><span class="k2">)</span> at src<span class="k3">/</span>Zoe_Zad.cpp:46</td></tr><tr><td class="number">19</td><td><span class="n">46</span>                      animation-&gt;AddFrame<span class="k2">(</span><span class="k1">new</span> Bitmap<span class="k2">(</span>path<span class="k2">)</span>, frameTime<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">20</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">21</td><td><span class="p">#7  0x00406856 in Zoe::Animation::Load(std::string const&amp;) (this=0x3ddea8</span></td></tr><tr><td class="number">22</td><td>    filename<span class="k3">=</span>@<span class="n">0x22fda0</span><span class="k2">)</span> at src<span class="k3">/</span>Zoe_Animation.cpp:44</td></tr><tr><td class="number">23</td><td><span class="n">44</span>                      <span class="k1">bool</span> success<span class="k3">=</span>LoadZad<span class="k2">(</span>filename, <span class="k1">this</span><span class="k2">)</span><span class="k3">!</span><span class="k3">=</span>NULL<span class="k2">;</span></td></tr><tr><td class="number">24</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">25</td><td><span class="p">#8  0x0040670d in Zoe::Animation::Animation(std::string const&amp;) (</span></td></tr><tr><td class="number">26</td><td>    <span class="k1">this</span><span class="k3">=</span><span class="n">0x3ddea8</span>, filename<span class="k3">=</span>@<span class="n">0x22fda0</span><span class="k2">)</span> at src<span class="k3">/</span>Zoe_Animation.cpp:32</td></tr><tr><td class="number">27</td><td><span class="n">32</span>              Load<span class="k2">(</span>filename<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">28</td><td><span class="k2">(</span>gdb<span class="k2">)</span> up</td></tr><tr><td class="number">29</td><td><span class="p">#9  0x0040348d in PlayerCharacter::PlayerCharacter() (this=0x2c7f518)</span></td></tr><tr><td class="number">30</td><td>    at src<span class="k3">/</span>PlayerCharacter.cpp:13</td></tr><tr><td class="number">31</td><td><span class="n">13</span>              m_animation<span class="k3">=</span><span class="k1">new</span> Animation<span class="k2">(</span><span class="s">"Animations/gtamanWalk.zad"</span><span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trezker)</author>
		<pubDate>Thu, 22 Jun 2006 22:25:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>trezker: you know you can type &#39;bt&#39; right?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marcello)</author>
		<pubDate>Fri, 23 Jun 2006 02:54:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No, what is that?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trezker)</author>
		<pubDate>Sat, 24 Jun 2006 20:45:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Backtrace, it prints out the whole stack from the crash/break-point.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marcello)</author>
		<pubDate>Sat, 24 Jun 2006 22:38:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, that&#39;s what guilt gave me, what about it?<br />I thought you were trying to point me to some a.cc feature.</p><p>And I can&#39;t possbly do a backtrace from the crash point since it doesn&#39;t crash on my computer.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trezker)</author>
		<pubDate>Sun, 25 Jun 2006 14:17:33 +0000</pubDate>
	</item>
</rss>
