msg00118.html

1998Q4/msg00118.html · 7.2 KB

From the archive 1998Q4.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Terrain/Landmass &#38; GIF/BMP -->
<!--X-From-R13: Brgev Hvexxhyn <civexxhyNvxv.sv> -->
<!--X-Date: Wed, 7 Oct 1998 20:40:34 &#45;0700 -->
<!--X-Message-Id: 13852.13278.651539.523479#arioch,tky.hut.fi -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 000301bdf23c$52abeb00$3487ebcd@k6 -->
<!--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:pvirkkul#iki,fi">
</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="msg00117.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00119.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00117.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00120.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00118">Author</A>
&nbsp;|&nbsp;<A HREF="#00118">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00118">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>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</LI>
<LI><em>From</em>: Petri Virkkula &lt;<A HREF="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</A>&gt;</LI>
<LI><em>Date</em>: Thu, 8 Oct 1998 06:39:10 +0300 (EEST)</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>
&gt;&gt;&gt;&gt;&gt; "quzah" == quzah [sotfhome] &lt;quzah&gt; writes:

quzah&gt; After finally generating a world mass, I need a way to "see"
quzah&gt; what it looks like. Even on a very small world (500x1000) in
quzah&gt; ASCII form, it will be very very hard to get an over all look
quzah&gt; at the world. I was thinking that if there is a simple way to
quzah&gt; output to a GIF or BMP, then I'd be able to just open up the
quzah&gt; picture in a paint program and "see" what the world looks
quzah&gt; like. Does anyone know of any good links that explain how to
quzah&gt; output either "x number of bits" or "x number of bytes" to a
quzah&gt; GIF or BMP? (PCX would even work). Currently, each piece of
quzah&gt; info on the land mass takes up 20 bits, so I can either drop
quzah&gt; it down to 16 bits, or bump it up to 32 bits for the use of
quzah&gt; GIF/BMP (Yeah, I know GIF is 8bits, I THINK I can lower it
quzah&gt; enough to be able to use a GIF format).

	How about utilizing NetPBM and using its fileformats.

	With this command line:

cat MAP | maptoraw | rawtoppm 482 481 | ppmtogif &gt; batmap.gif

	you get a picture like this:

&lt;URL:<A  HREF="http://www.bat.org/Batmud/batmap.html">http://www.bat.org/Batmud/batmap.html</A>&gt;


	rawtoppm and ppmtogif are part of NetPBM and maptoraw is a
	simple C-program like:

--- cut here ---
#include &lt;stdio.h&gt;


main()
{
  char c;
  long col;

  while (!feof(stdin)) {
    c=getchar();
    switch (c) {
      case '?' : col = 0xff00a0;break;
      case '!' : col = 0xffffff;break;
[cut]
      case 'r' : col = 0xa0a0ff;break;
      case 'R' : col = 0x5050ff;break;
      default  : col = 0xddd384;break;
      }
    printf("%c%c%c",(col &amp; 0xff0000) &gt;&gt; 16,(col &amp; 0x00ff00) &gt;&gt; 8,col &amp; 0x0000ff)
;
  }
}
--- cut here ---


	Petri


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00113" HREF="msg00113.html">[MUD-Dev] Terrain/Landmass &amp; GIF/BMP</A></STRONG>
<UL><LI><EM>From:</EM> "quzah [sotfhome]" &lt;quzah#softhome,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00117.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00119.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00117.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00120.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00118"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00118"><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><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>
<LI><strong><A NAME="00117" HREF="msg00117.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Thu 08 Oct 1998, 03:18 GMT
</LI>
<LI><strong><A NAME="00118" HREF="msg00118.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Petri Virkkula <a href="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</a>, Thu 08 Oct 1998, 03:40 GMT
</LI>
<LI><strong><A NAME="00120" HREF="msg00120.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Thu 08 Oct 1998, 05:38 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00097" HREF="msg00097.html">[MUD-Dev] Spoofing (Psychopaths)</A></strong>, 
Richard Bartle <a href="mailto:76703.3042#compuserve,com">76703.3042#compuserve,com</a>, Tue 06 Oct 1998, 09:59 GMT
<UL>
<LI><strong><A NAME="00100" HREF="msg00100.html">[MUD-Dev] Re: Spoofing (Psychopaths)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Tue 06 Oct 1998, 14:52 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00092" HREF="msg00092.html">[MUD-Dev] Re: Spoofing (Psychopaths)</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Mon 05 Oct 1998, 20:46 GMT
</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>

Site Stats

Snippets: 1791
Codebases: 571