1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Terrain/Landmass &#38; GIF/BMP -->
<!--X-From-R13: "dhmnu Mfbgsubzr]" <dhmnuNfbsgubzr.arg> -->
<!--X-Date: Thu, 22 Oct 1998 01:19:07 &#45;0700 -->
<!--X-Message-Id: 002401bdfd94$e40100a0$3687ebcd@k6 -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:quzah#softhome,net">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00341.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00343.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00127.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00574.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00342">Author</A>
&nbsp;|&nbsp;<A HREF="#00342">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00342">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</LI>
<LI><em>From</em>: "quzah [sotfhome]" &lt;<A HREF="mailto:quzah#softhome,net">quzah#softhome,net</A>&gt;</LI>
<LI><em>Date</em>: Thu, 22 Oct 1998 01:20:54 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
From: Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt; on Thursday, October 08,
1998 at 6:14 PM
Subject: Re: [MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP


&gt;Haven't looked into fractal terrain generation or display, eh. OK, that
&gt;gives me an opportunity to fill your mailbox! Here is the complete source
&gt;for a fractal terrain generator/displayer for my AmigaMUD system. The
&gt;source will look at bit unusual, but its close enough to things like C
&gt;and Pascal that it should be readable.
&gt;


[example snipped]

Well, this is just a general reply/comment for anyone who replied
to me earlier; and since this was the last message on the topic,
this is what I'm replying to.

Anyway, I settled on targa (.tga) for my graphic file of choice.
I chose it because it had the best docs (read: simple for me simple
brain) of what I looked at. I first looked at png, pcx, bmp, gif,
tiff, and tga. (Thanks for the link to wotsit, btw.) My implementation
is very ugly, and reading the .tga craps out after the 18th byte,
though I am not sure why. (Every byte past the 18th reads 10000000
no matter what your actual data should be. Period. No matter what
.tga file, from the 18th bit onward reads exactally the same.)

I cheated in making my .tga writer. I opened up photoshop, wrote a
1000x1000 pixel .tga @ 16 bpp, all one color, then read the file one
bit at a time (outputting to a screen) and compared it with the .txt
file I had to see if the bits lined up like they should.

.TGA has a very ugly way to store 2-byte pieces of info. First, you
take and reverse the entire thing left-to-right (bit by bit), then
take the first eight bits, and swap them with the second eight bits
and that's how it stores it to file. (Or something like that -- anway
it works now.)

So, my .tga writer just writes the 18 bits in fixed-mode (ie: Yes,
this is going to be 1000x1000@16bpp and if you don't like it, rewrite
the header. ;). Then I just write an array 1000x1000 of color (16 bits)
to disk and call it good.

It's ugly, but I'm not making a graphical game, all I need to do is
make it readable in photoshop so I can see what the dirt looks like.

And hey, photoshop likes it, so that's good enough for me.

At any rate, now I'm trying to get the land to look good, and not just
be 32 different colors of green blocks ;)
-Q-

(god I must have been tired last night, I sent this the first
 time only to chris; not mud-dev --sigh)



</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00341.html">[MUD-Dev] Re: Bruce Sterling on Virtual Community goals</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00343.html">[MUD-Dev] Re: evil - good realism</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00127.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00574.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00342"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00342"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00123" HREF="msg00123.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Marc Hernandez <a href="mailto:marc#jb,com">marc#jb,com</a>, Thu 08 Oct 1998, 07:47 GMT
</LI>
</ul>
<LI><strong><A NAME="00122" HREF="msg00122.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Thu 08 Oct 1998, 06:33 GMT
</LI>
<LI><strong><A NAME="00126" HREF="msg00126.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 08 Oct 1998, 14:08 GMT
</LI>
<LI><strong><A NAME="00127" HREF="msg00127.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Thu 08 Oct 1998, 23:03 GMT
</LI>
<LI><strong><A NAME="00342" HREF="msg00342.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Thu 22 Oct 1998, 08:19 GMT
</LI>
<LI><strong><A NAME="00574" HREF="msg00574.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Dominic J. Eidson <a href="mailto:sauron#morannon,kdi.com">sauron#morannon,kdi.com</a>, Thu 29 Oct 1998, 00:00 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00113" HREF="msg00113.html">[MUD-Dev] Terrain/Landmass &amp; GIF/BMP</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Wed 07 Oct 1998, 21:45 GMT
<UL>
<LI><strong><A NAME="00114" HREF="msg00114.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Wed 07 Oct 1998, 22:04 GMT
</LI>
<LI><strong><A NAME="00115" HREF="msg00115.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Wed 07 Oct 1998, 22:26 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>