<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Voxels</title>
		<link>http://www.allegro.cc/forums/view/234078</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 21 Jan 2003 16:43:48 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried to make a voxelcode, to make voxelunits like the one in RedAlert 2. But somehow, i failed. Does anybody have a sourcecode i can take a look at? Or any idea how to code it.</p><p>I did make pictures be placed over each other, with sprite_rotate or something, but it didnt draw right, and it didnt rotate...</p><p>Just need an example for ONE 10x10x6 voxel tank. Rest can i do myself.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (empty)</author>
		<pubDate>Wed, 15 Jan 2003 13:28:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have NO idea how to do that - just want to compliment you on your ambition <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Was it Tiberian Sun that used voxels?.. Damn game - waited feverishly for it, bought it, threw it in the trash.. don&#039;t know what was wrong with it - it just sucked.. don&#039;t bee Too earger in copying it <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Torbjörn Josefsson)</author>
		<pubDate>Wed, 15 Jan 2003 15:05:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It is possible to make a &quot;voxel&quot; in PSP. Thats how i tested my theory in first place:<br />make a tanks layer for layer, from bottom to top. Remember to draw differtent lights, or the &quot;voxel&quot; will look flat, and that empty places must be transparent. Then you take the bottom layer, rotate as much as the tanks should be rotated. Then you scale the picture lower to get the illusion of that it stands &quot;3d&quot;, like a isometric view. Then you do the same with the next layer, but this time you place it one pixel over the last picture. Something like that, but how are i going to make allegro do that itself? (im still newbie)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (empty)</author>
		<pubDate>Wed, 15 Jan 2003 17:32:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Outcast, Delta force 2, Tiberian sun.<br />That&#039;s the ones I know about, and I don&#039;t think any one of them got really big on the market.</p><p>I had a voxeleditor once, I think it was made in qb. But I never got to coding anything.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trezker)</author>
		<pubDate>Wed, 15 Jan 2003 17:37:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, you could start by making a &quot;voxel&quot; heightmapper. It should give you a few ideas on how to proceed - and it&#039;s a good programming exercise, it looks good and it can easily be coded in an afternoon <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />. There&#039;s a great tutorial on Flipcode on 4 DOF (degrees of freedom) landscape engines <a href="http://www.flipcode.com/voxtut/">here</a>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 15 Jan 2003 18:34:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I haven&#039;t done voxels, but here is an idea: </p><p>Each voxel is a 3d pixel, right ? therefore, the X, Y, Z coordinates of each voxel should be stored somewhere in a struct.</p><p>When it is time to display the 3d model, the following transformations should be taken place:</p><p>1) transform the original coordinates to the game coordinates</p><p>2) rotate the new coordinates according to camera</p><p>3) sort the coordinates according to Z; remove invisible voxels</p><p>4) draw each voxel; a voxel should be drawn as a small cube rotated and scaled according to the object&#039;s position in the gameworld.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DumTiriDum)</author>
		<pubDate>Thu, 16 Jan 2003 15:58:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>4) a voxel is just a square. If you have the x and y screen coordinates and the distance from the camera, just draw a square centered in (x, y), and size inverse proportional to z. However, if you want voxels for making a 2D game, like Tiberian Sun, then all voxels have the same size, so z is only usefull for sorting.</p><div class="quote_container"><div class="title">Trezker said:</div><div class="quote"><p>
Outcast, Delta force 2, Tiberian sun.<br />That&#039;s the ones I know about, and I don&#039;t think any one of them got really big on the market.
</p></div></div><p>
What about Comanche? It was a great game. Not much time ago they released Comanche 4.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Oscar Giner)</author>
		<pubDate>Thu, 16 Jan 2003 16:28:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>But Commanche 4, and possibly 3, are not voxel heightmap based like the older ones because its a bad selection of technology for the current range of 3d accelerators.</p><p>Anyway, you don&#039;t need a tutorial to figure out voxel heightmaps. They are a trivial extension of floor mappers, themselves a trivial specialisation of polygon fillers or sprite stretchers. Indeed something like a SNES would have the computing power to do voxel heightmaps if only Nintendo didn&#039;t always specialise their chips quite so much.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Thu, 16 Jan 2003 16:35:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I did it!!!!<br />Download:<br /><a href="http://www.home.no/empty/ex_voxel.zip">http://www.home.no/empty/ex_voxel.zip</a><br />ops.. i meant            /empty/EX_VOXEL.ZIP</p><p>see what i meant with voxel units...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (empty)</author>
		<pubDate>Mon, 20 Jan 2003 13:06:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried running it but I got a black screen with some garbage graphics on the top and bottom. I&#039;m running Windows XP. Is this the famous &quot;black screen of death&quot; that I hear about with earlier versions of Allegro 4? I&#039;ll try compiling if it doesn&#039;t work on my other PC.</p><p>Mike_Vox
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mike Vox)</author>
		<pubDate>Tue, 21 Jan 2003 01:37:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>before download any file in this forum(from newbie),<a href="http://allegro.cc/forums/view_thread.php?_id=234944">read my Lesson</a> first!:(
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johnny13)</author>
		<pubDate>Tue, 21 Jan 2003 03:49:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Downloaded it.  Works nicely for me on Windows XP.  Strange thing is I&#039;ve been using voxel map of this sort for ages and I never thought of using rotate_sprite.:-[
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LEDominant)</author>
		<pubDate>Tue, 21 Jan 2003 04:23:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried it on my other PC that has XP also and it works fine, so I suspect it may be a problem in my setup on this one computer. Maybe I need to update the Allegro DLL <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" />.</p><p>I messed with the code today to see if I can get it to rotate around the x-axis, also. I was trying to figure out a way it can be rotated in any direction the same way the freeware unit editors do for Tiberium Sun.</p><p>I&#039;ve had some success using stretch-blit to flatten each layer as it turns around the x-axis. But that only gets you so far around the rotation. At a certain point you need to stop the flattening algorithm, and switch to another algorithm that shifts the layers in the y direction. In theory, you&#039;d have to alternate between those two methods as it rotates around the x-axis.</p><p>Mike_Vox
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mike Vox)</author>
		<pubDate>Tue, 21 Jan 2003 11:15:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It should work to rotate it against or away from the screen if you shrinked the slices before placed them on screen...</p><p>    II<br />    V<br />[Image]<br />    A<br />    II</p><p>...i think... <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (empty)</author>
		<pubDate>Tue, 21 Jan 2003 16:43:48 +0000</pubDate>
	</item>
</rss>

