<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>faster method of multiply-blender</title>
		<link>http://www.allegro.cc/forums/view/587260</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 28 Aug 2006 01:13:22 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>I want to have lights in my game. I use a lightmaps<br />and a &quot;ambientmap&quot;.<br />I draw the DoubleBuffer with</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/set_multiply_blender" target="_blank"><span class="a">set_multiply_blender</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,<span class="n">255</span><span class="k2">)</span><span class="k2">;</span>
draw_trans_spirte<span class="k2">(</span>LightMap, DB, <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/draw_trans_sprite" target="_blank"><span class="a">draw_trans_sprite</span></a><span class="k2">(</span>AmbientMap, DB, <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/draw_sprite" target="_blank"><span class="a">draw_sprite</span></a><span class="k2">(</span>DB, AmbientMap, <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_add_blender" target="_blank"><span class="a">set_add_blender</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span>,<span class="n">255</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>DB, LightMap, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

In 800x600 32Bit windowed I get a framerate of 10 fps.<br />This is to slow for a game. Is there a faster way?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krendor)</author>
		<pubDate>Sun, 27 Aug 2006 19:40:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are those bitmaps memory bitmaps or perhaps video bitmaps?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Sun, 27 Aug 2006 19:47:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The Bitmaps are Memory-Bitmaps.<br />But I can test the video-card for<br />support.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krendor)</author>
		<pubDate>Sun, 27 Aug 2006 21:53:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>could you use a smaller ambient map around each light?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matt Smith)</author>
		<pubDate>Sun, 27 Aug 2006 22:28:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes I could.<br />But the Ambient-Map will be stretched over the screen.<br />This needs more time and the resolution is bad.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krendor)</author>
		<pubDate>Mon, 28 Aug 2006 00:17:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>To be more precise, what you call &quot;ambient map&quot; is probably a flare, emissive map or both combined. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
In 800x600 32Bit windowed I get a framerate of 10 fps.<br />This is to slow for a game. Is there a faster way?
</p></div></div><p>
Use Direct3D, OpenGL or OpenLayer, which allows you to use hardware acceleration for such things. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krzysztof Kluczek)</author>
		<pubDate>Mon, 28 Aug 2006 01:01:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oh, Sorry. I forgott to explain.<br />My Ambient Map is a BITMAP with the Ambient Color.<br />And the Light Map is a BITMAP with the Flares (etc.).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krendor)</author>
		<pubDate>Mon, 28 Aug 2006 01:13:22 +0000</pubDate>
	</item>
</rss>
