<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Creating a HUD</title>
		<link>http://www.allegro.cc/forums/view/600217</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 27 May 2009 02:40:12 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m trying to create a hand-drawn HUD using photoshop.  I don&#39;t expect it to be the best thing ever, just an improvement from the current rectfill routines I&#39;m using.  </p><p>The first problem I&#39;m running into is avoiding the pink-halo due to anti-aliasing.  I can do the easy way of taking out the anti-aliasing (floodfill magic pink with anti-aliasing turned off with a high enough tolerance), but I wanted to see what I would have to do to keep the smooth edges.  Would I have to use OpenLayer or some other kind of library?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Mon, 11 May 2009 11:03:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Isn&#39;t there an addon library for Allegro that allows you to load PNG&#39;s? alpng?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Vanneto)</author>
		<pubDate>Mon, 11 May 2009 12:35:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811059#target">Vanneto</a> said:</div><div class="quote"><p>Isn&#39;t there an addon library for Allegro that allows you to load PNG&#39;s? alpng?</p></div></div><p>

There are two addon libraries for PNG, <a>alpng</a>  or <a href="http://tjaden.strangesoft.net/loadpng/">loadpng</a>.  alpng is a standalone library, while loadpng requires libpng.  However, loadpng is faster, and uspports more pNG features, so is probably the better choice.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Mon, 11 May 2009 13:04:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ah yes, loadpng is the name of the library. I used that for some time, but it gets slow if you draw a lot of PNG graphics onto the screen. Shouldn&#39;t happen if you only draw some sprites this way.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Vanneto)</author>
		<pubDate>Mon, 11 May 2009 18:46:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro&#39;s built-in blending functions do have an alpha mode, so all you need to do is get your HUD images loaded with alpha channels that have the anti-aliased edges.</p><p>The trick is getting the alpha channel loaded up. There&#39;s commands you can use at design time to handle loading alpha channels manually, including drawing directly to them, or, while using the Grabber, you can grab your default graphics from files then grab alpha channels from other files. I&#39;ve never actually done any of this before so I can&#39;t instruct you how, I just know the options to do so are there.</p><p>PNG files are obviously simpler for doing 32-bit graphics, since every other format Allegro can handle by default can&#39;t go above 24-bit.</p><p>Alpha channel blending is not very fast though using straight Allegro, so yeah, if you want to keep the edges nice and smooth with zero aliasing you&#39;re better off going with hardware acceleration through OpenLayer, OpenGL, or whatever else you feel most comfortable with to keep that framerate nice and high. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kris Asick)</author>
		<pubDate>Mon, 11 May 2009 19:38:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811099#target">Kris Asick</a> said:</div><div class="quote"><p>The trick is getting the alpha channel loaded up. There&#39;s commands you can use at design time to handle loading alpha channels manually, including drawing directly to them, or, while using the Grabber, you can grab your default graphics from files then grab alpha channels from other files. I&#39;ve never actually done any of this before so I can&#39;t instruct you how, I just know the options to do so are there.</p></div></div><p>

Or you can do what I just did to create a PAM file with alpha channel data for testing, and write a routine to insert the alpha data into the main data stream.  Though, I imagine that would be much harder to do with a PNG file than with a PAM file. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Mon, 11 May 2009 20:01:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You don&#39;t have to use any fancy libraries if you don&#39;t want to. Allegro can load TGA files natively and they also include alpha channel support.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (amber)</author>
		<pubDate>Mon, 11 May 2009 22:33:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It sounds like the &quot;alpha channel&quot; is native to the file type.  Is there anything I need to do on the photoshop side to have the alpha channel or do I simply make it a TGA or PNG file?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Mon, 11 May 2009 22:47:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811132#target">Onewing</a> said:</div><div class="quote"><p>Is there anything I need to do on the photoshop side to have the alpha channel or do I simply make it a TGA or PNG file?</p></div></div><p>

I have absolutely no idea how to do it with Photoshop (I&#39;m sure there is a way though), but here&#39;s how to do it in Allegro faily easily (untested):</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">void</span> add_alpha<span class="k2">(</span><a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bmp, <span class="k1">int</span> alpha<span class="k2">)</span> <span class="k2">{</span>
    
    <span class="k1">int</span> x, y, colour<span class="k2">;</span>
    
    <span class="k1">for</span> <span class="k2">(</span>y <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span> y <span class="k3">&lt;</span> bmp-&gt;h<span class="k2">;</span> y<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span> <span class="k2">{</span>
        
        <span class="k1">for</span> <span class="k2">(</span>x <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span> x <span class="k3">&lt;</span> bmp-&gt;w<span class="k2">;</span> x<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span> <span class="k2">{</span>
            
            colour <span class="k3">=</span> <a href="http://www.allegro.cc/manual/getpixel" target="_blank"><span class="a">getpixel</span></a><span class="k2">(</span>bmp, x, y<span class="k2">)</span><span class="k2">;</span>
            <a href="http://www.allegro.cc/manual/putpixel" target="_blank"><span class="a">putpixel</span></a><span class="k2">(</span>bmp, x, y, <a href="http://www.allegro.cc/manual/makeacol" target="_blank"><span class="a">makeacol</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/getr" target="_blank"><span class="a">getr</span></a><span class="k2">(</span>colour<span class="k2">)</span>, <a href="http://www.allegro.cc/manual/getg" target="_blank"><span class="a">getg</span></a><span class="k2">(</span>colour<span class="k2">)</span>, <a href="http://www.allegro.cc/manual/getb" target="_blank"><span class="a">getb</span></a><span class="k2">(</span>colour<span class="k2">)</span>, alpha<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
            
        <span class="k2">}</span>
        
    <span class="k2">}</span>
    
<span class="k2">}</span>
</pre></div></div><p>

You can then save the BITMAP as a .tga, and it will preserve the alpha channel.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Mon, 11 May 2009 23:02:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Code:
</p><div class="source-code snippet"><div class="inner"><pre>        <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_NONE<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bTest <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="s">"./data/images/test.tga"</span>, NULL<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_TOTAL<span class="k2">)</span><span class="k2">;</span>
  
  <a href="http://www.allegro.cc/manual/drawing_mode" target="_blank"><span class="a">drawing_mode</span></a><span class="k2">(</span>DRAW_MODE_TRANS, NULL, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/set_alpha_blender" target="_blank"><span class="a">set_alpha_blender</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  
  <a href="http://www.allegro.cc/manual/blit" target="_blank"><span class="a">blit</span></a><span class="k2">(</span>bTest, buffer, <span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,bTest-&gt;w, bTest-&gt;h<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/solid_mode" target="_blank"><span class="a">solid_mode</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>

  <a href="http://www.allegro.cc/manual/draw_sprite" target="_blank"><span class="a">draw_sprite</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, buffer, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

<a href="http://www.allegro.cc/forums/thread/405374">Code Source</a></p><p>output:<br /><span class="remote-thumbnail"><span class="json">{"name":"598475","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/c\/fc2acb4ae0d667f6b287398cc614fc3d.png","w":645,"h":512,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/c\/fc2acb4ae0d667f6b287398cc614fc3d"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/f/c/fc2acb4ae0d667f6b287398cc614fc3d-240.jpg" alt="598475" width="240" height="190" /></span></p><p>I did something wrong somewhere...  Original image attached.</p><p><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 12 May 2009 04:22:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just tried it in Photoshop 7...  It didn&#39;t work for me either... It seems that photoshop isn&#39;t saving the alpha channel no matter what I do... I&#39;ve done it before, but can&#39;t remember how...</p><p>I think you&#39;ll have to save the alpha channel separately and use some other program or utility to combine them... <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ron Novy)</author>
		<pubDate>Tue, 12 May 2009 04:46:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811198#target">Onewing</a> said:</div><div class="quote"><div class="source-code snippet"><div class="inner"><pre>  <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_NONE<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bTest <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="s">"./data/images/test.tga"</span>, NULL<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_TOTAL<span class="k2">)</span><span class="k2">;</span>
  
  <a href="http://www.allegro.cc/manual/drawing_mode" target="_blank"><span class="a">drawing_mode</span></a><span class="k2">(</span>DRAW_MODE_TRANS, NULL, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/set_alpha_blender" target="_blank"><span class="a">set_alpha_blender</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  
  <a href="http://www.allegro.cc/manual/blit" target="_blank"><span class="a">blit</span></a><span class="k2">(</span>bTest, buffer, <span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,bTest-&gt;w, bTest-&gt;h<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/solid_mode" target="_blank"><span class="a">solid_mode</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>

  <a href="http://www.allegro.cc/manual/draw_sprite" target="_blank"><span class="a">draw_sprite</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, buffer, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div></div></div><p>
Yeah, that&#39;s wrong. A blit is a blit is a blit, no matter the drawing mode. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Correct<span class="ref"><sup>[<a href="#">1</a>]</sup></span> code:
</p><div class="source-code snippet"><div class="inner"><pre>  <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_NONE<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bTest <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="s">"./data/images/test.tga"</span>, NULL<span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/set_color_conversion" target="_blank"><span class="a">set_color_conversion</span></a><span class="k2">(</span>COLORCONV_TOTAL<span class="k2">)</span><span class="k2">;</span>
  
  <a href="http://www.allegro.cc/manual/set_alpha_blender" target="_blank"><span class="a">set_alpha_blender</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  
  <a href="http://www.allegro.cc/manual/draw_trans_sprite" target="_blank"><span class="a">draw_trans_sprite</span></a><span class="k2">(</span>buffer, bTest, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>

  <a href="http://www.allegro.cc/manual/blit" target="_blank"><span class="a">blit</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, buffer, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, buffer-&gt;w, buffer-&gt;h<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p><div class="ref-block"><h2>References</h2><ol><li>Ok, it&#39;s untested, but it <i>should</i> work unless I&#39;ve made a stupid mistake somewhere.</li></ol></div></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Tue, 12 May 2009 04:56:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Your problem is twofold:</p><p>1) Your image has a 100% alpha value, so there will be no transparency.</p><p>2) blit is not affected by the drawing mode, for that, you need <span class="source-code"><a href="http://www.allegro.cc/manual/draw_trans_sprite" target="_blank"><span class="a">draw_trans_sprite</span></a><span class="k2">(</span><span class="k2">)</span></span></p><p>edit: beaten <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><p>edit 2:  I used the code snippet I posted above to set it to 50% transparency, and this is the result:</p><p><span class="remote-thumbnail"><span class="json">{"name":"598476","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/c\/1c2f26ecbc5fa2ac96488bbd7cb42c0c.png","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/c\/1c2f26ecbc5fa2ac96488bbd7cb42c0c"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/1/c/1c2f26ecbc5fa2ac96488bbd7cb42c0c-240.jpg" alt="598476" width="240" height="180" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 12 May 2009 05:00:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811208#target">gnolam</a> said:</div><div class="quote"><p>A blit is a blit is a blit, no matter the drawing mode.</p></div></div><p>
Same result with draw_trans_sprite.  I used blit because of the &quot;code source&quot; link.  I was using draw_trans_sprite at first.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811211#target">LennyLen</a> said:</div><div class="quote"><p>Your image has a 100% alpha value, so there will be no transparency.</p></div></div><p>
Any idea how to fix that?  You mentioned you don&#39;t know how to in photoshop, so if someone knows how to in photoshop, feel free to chime in.  <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 12 May 2009 07:38:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811218#target">Onewing</a> said:</div><div class="quote"><p>I used blit because of the &quot;code source&quot; link.</p></div></div><p>

It was pointed out later in that thread that it wouldn&#39;t work with blit. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>Any idea how to fix that?</p></div></div><p>

I&#39;ve attached a command line program that will take an Allegro supported bitmap file, add an alpha channel and save it as a 32bit TGA.  Use it like this: <tt>set_alpha ship.bmp ship.tga 128</tt>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 12 May 2009 08:17:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>First of all, the photoshop image needs to use transparent pixels instead of magic pink. Transparent pixels in photoshop translate to an alpha value of 0 in allegro. The smooth edges come from semi-transparent pixels, with alpha values somewhere between 0 and full. You get these automatically if you draw everything much larger than you need (say 4x the intended size) and then resize using a smooth scaling algorithm. You also need to save to TGA or PNG using 32-bit color: all other color depths have either one-bit alpha, or no alpha at all.<br />In allegro, use what gnolam posted. It should work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Tue, 12 May 2009 11:54:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m using photoshop elements 3.0, which apparently doesn&#39;t allow me to look at channels.  Apparently, I can make an adjustment layer, but I think that&#39;s just saying black = don&#39;t draw, white = do.  It gets rid of the pink due to blending edges (I can also just use transparent pixels), but I don&#39;t think it necessarily makes smooth edges.</p><p>That is, I got the above method to work once.  When I tried it again on a part of the actual HUD I was creating it didn&#39;t work.  Now, I can&#39;t get it to work at all.  <img src="http://www.allegro.cc/forums/smileys/angry.gif" alt="&gt;:(" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 12 May 2009 12:00:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>IIRC, here&#39;s how you do it:<br />- Create a new image. You now have one layer called &quot;background&quot;, filled with a solid color.<br />- Add a new layer. This should be completely transparent. Call it, say, &quot;content&quot;.<br />- Delete the &quot;background&quot; layer.<br />You should now have an image with one layer, completely transparent.<br />If that doesn&#39;t work: Download Paint.NET or The GIMP; both are free and can produce PNG images like the one you need. In Paint.NET, draw the image as you need it, then use the wand to delete the background pixels (leaving a transparent area). Then resize to the final size, using &quot;best quality&quot;, to achieve that smooth anti-aliased effect.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Tue, 12 May 2009 12:58:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><b>BUMP for edit below...</b><br />==============================</p><p>I finally figured out what I had to do in photoshop elements.  Like I said above, I did it right once and then the same method wasn&#39;t working.  Turns out I forgot one step that was more important than I realized.</p><p>Process for Photoshop Elements<br />1) Create image over transparent pixels<br />2) Control-click thumbnail image in layer to get non-transparent pixels<br />3) Go to Select -&gt; Save Selection (<b>this is a key step that I was missing</b>)<br />4) Go to Layer -&gt; New Adjustment Layer -&gt; Brightness / Contrast (click ok and don&#39;t make any changes)<br />5) Save file as TGA<br />6) No more pink halo!</p><p>So now I can finally start working on the HUD graphics.  Here&#39;s one thing I&#39;ve created thus far:</p><p><span class="remote-thumbnail"><span class="json">{"name":"598485","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/e\/5e3f2bf760897be49c4ad1bfa7eb95b8.png","w":645,"h":512,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/e\/5e3f2bf760897be49c4ad1bfa7eb95b8"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/e/5e3f2bf760897be49c4ad1bfa7eb95b8-240.jpg" alt="598485" width="240" height="190" /></span> </p><p>Compared to some screenshots from <a href="http://www.allegro.cc/forums/thread/598937/797715#target">earlier versions</a>:</p><p><b>&lt;edit&gt;</b><br /><span class="remote-thumbnail"><span class="json">{"name":"598526","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/e\/be1f4f8ddd463f5818bc4c77a7a4e610.png","w":265,"h":225,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/e\/be1f4f8ddd463f5818bc4c77a7a4e610"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/b/e/be1f4f8ddd463f5818bc4c77a7a4e610-240.jpg" alt="598526" width="240" height="203" /></span><br />Thoughts on this design?  The circular buttons will have icons in them that represent a menu choice (save/load, party info, news, etc.).  The brighter button would be what it looks like when the mouse is over it.  The leg sticking out below the bottom circle will extend to a different part of the HUD.  I hoping to be able to extend/shrink it at this point by the user.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Sun, 17 May 2009 12:28:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It works. Has a very olden look to it. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Allowing the user to scale it will introduce aliasing issues and you&#39;ll almost certainly have to make your own anti-aliasing function to handle it. You&#39;d want to draw the resized menu to a bitmap, along with its resized alpha channel, and then blend that onto the screen with an alpha blender.</p><p>But... that&#39;s a lot of effort for something that would take a minute to do with hardware acceleration, so at this point, I would recommend instead of trying to solve all these problems with non-accelerated solutions you think about switching to AllegroGL or OpenLayer for your graphics I/O.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kris Asick)</author>
		<pubDate>Wed, 20 May 2009 23:29:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/812770#target">Kris Asick</a> said:</div><div class="quote"><p>Allowing the user to scale it will introduce aliasing issues</p></div></div><p>

The user can scale it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Fri, 22 May 2009 01:56:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/812929#target">Neil Black</a> said:</div><div class="quote"><p>The user can scale it?</p></div></div><p>

Probably with mouse/keyboard handles.  It&#39;s a good idea.</p><p>@<b>Onewing</b>: that screenshot looks cool.  If you still need extra alpha-transparency formats, you could also try some of these:</p><p>Windows: Jasc&#39;s PaintShop Pro, Paint.NET, Gimp<br />Linux/Mac: Gimp, &#39;convert&#39; (an alias to ImageMagick)</p><p>From those screenshots, though, it looks quite polished so far.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (OnlineCop)</author>
		<pubDate>Fri, 22 May 2009 11:32:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>The user can scale it?</p></div></div><p>
I&#39;m not sure I understand this either.  Can someone provide an example?</p><p>Alright, I&#39;m working on the icons, which are proving to be a challenge.  Opinions on the following styles?</p><p><b>Style 1: Original</b><br /><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/e/d/ed4fb6a52fcfddb43dc9644293bad0b4.png" alt="598595" width="206" height="192" /></p><p><b>Style 2: Neon Icon</b><br /><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/d/8/d87b6b12d393ad72aacc7b87216d3c36.png" alt="598594" width="210" height="200" /></p><p><b>Style 3: Earthen Style</b><br /><span class="remote-thumbnail"><span class="json">{"name":"598593","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/7\/076fa0e002f8d43fdfe6679d30133a7e.png","w":244,"h":211,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/7\/076fa0e002f8d43fdfe6679d30133a7e"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/0/7/076fa0e002f8d43fdfe6679d30133a7e-240.jpg" alt="598593" width="240" height="207" /></span></p><p>What the icons mean from left to right:  Save/Load, News, Party screen, Empire screen, Enemy screen
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 26 May 2009 04:43:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>One thing I don&#39;t like is how the HUD is all nice and smooth, while the rest of the graphics are all jagged and pixelly. This is very clashy in my eye.</p><p>Re the above styles, the second one is the most clear one, the shading of the icons makes them pop out and they are distinct and colourful. The first one has a confusing Enemies icon. The third one has a confusing save icon, and the colours are so muted as to be not very distinct. I&#39;d prefer the second style to have the first style&#39;s News icon, though.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Tue, 26 May 2009 04:56:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/813488#target">SiegeLord</a> said:</div><div class="quote"><p>One thing I don&#39;t like is how the HUD is all nice and smooth, while the rest of the graphics are all jagged and pixelly. This is very clashy in my eye.</p></div></div><p>
By &quot;the rest of the graphics,&quot; you mean the actual game world and stuff, yes?  I&#39;m not terribly concerned with this, because the game world has some graphical updates to come.  Not to mention, some of the game world graphics could be wildly different (say if I were to draw a map on paper and then scan it).  I do understand what you are saying though.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> the second one is the most clear one, the shading of the icons makes them pop out and they are distinct and colourful.</p></div></div><p>
My only concern is they pop out too much and contrast with the rest of the HUD.  I&#39;ve started to like the 3rd style (although, I spent the most time on the second style).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 26 May 2009 09:41:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/813483#target">Onewing</a> said:</div><div class="quote"><p>Opinions on the following styles?</p></div></div><p>

The colours of the third style suit the rest of the HUD more than the other two.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 26 May 2009 09:42:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I agree with Siegelord (the second set with the first set&#39;s news icon being the best).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mokkan)</author>
		<pubDate>Tue, 26 May 2009 09:43:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Here&#39;s an idea, what about leaving it all earthen (without the color differences) and when the user scrolls over a button, they get the neon accented icon:</p><p><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/9/a/9a77d14b3f7f56d77b26dc9f598c534f.png" alt="598596" width="206" height="200" /></p><p>Here, the mouse would be over the &quot;Party screen&quot; button.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Tue, 26 May 2009 09:52:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think that sounds like a great idea. Are you going to add some tooltips/hover text, too?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mokkan)</author>
		<pubDate>Tue, 26 May 2009 10:04:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/813505#target">Onewing</a> said:</div><div class="quote"><p>
Here&#39;s an idea, what about leaving it all earthen (without the color differences) and when the user scrolls over a button, they get the neon accented icon:
</p></div></div><p>
That&#39;s definitely a good idea. Probably gives the thing a more professional look &amp; feel, too.<br />The &quot;news&quot; one looks better in the first than in the second, but for the rest, I prefer the second.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Tue, 26 May 2009 16:32:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>...what Tobias said. <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>But, I would change the colour of the news icon to be either a bright purple or blue. Using the orange colour from the first image wouldn&#39;t make it stand out well from the enemy or empire icons.</p><p>Also, when you said:</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/600217/811461#target">Onewing</a> said:</div><div class="quote"><p>I hoping to be able to extend/shrink it at this point by the user.</p></div></div><p>

I thought you were talking about scaling to bigger or smaller sizes, but my response in that regard seemed to confuse everyone. I finally realized that what you meant was SLIDING the panel up or down to reveal more or less icons/data. That&#39;s easy enough to do without hardware acceleration. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kris Asick)</author>
		<pubDate>Wed, 27 May 2009 02:40:12 +0000</pubDate>
	</item>
</rss>
