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: Wed, 7 Oct 1998 23:26:42 &#45;0700 -->
<!--X-Message-Id: 002201bdf285$17b12760$2c87ebcd@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="msg00120.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00122.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00119.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00123.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00121">Author</A>
&nbsp;|&nbsp;<A HREF="#00121">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00121">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>: Wed, 7 Oct 1998 23:30:05 -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: Niklas Elmqvist &lt;d97elm#dtek,chalmers.se&gt; on Wednesday, October 07, 1998
at 10:58 PM
Subject: [MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP


&gt;On Wed, 7 Oct 1998, quzah [sotfhome] wrote:
&gt;
&gt;[snip]


First of all, thanks everyone for replying. Rather than reply to
every message, I'll try and keep it short (grin) and hopefully
limit it to one or two replies. Thanks again all.

&gt;
&gt;&gt; The first is this: I am developing a world generator of
&gt;&gt; sorts, that with a few parameters will generate the entire
&gt;&gt; mud world. It will take into account the following info:
&gt;&gt;    sizeX (width of world west to east)
&gt;&gt;    sizeY (length of world north to south)
&gt;&gt;    clustering (continents/small islands/large islands/etc)
&gt;&gt;    "hillyness" (flat/small hills/mountains/etc)
&gt;&gt;    mineral richness (frequency of mineral deposits)
&gt;&gt;    temperature (over all cold/mild/warm/hot/etc)
&gt;&gt;    on land water supplies (rivers/lakes/etc [amount of])
&gt;&gt;    wetness (over all very dry/dry/moderate/damp/very wet/etc)
&gt;
&gt;Neat. I am doing the same for a 3D terrain renderer.

I'm just doing a basic 2d map (overhead) of the world, where each
element of the 2d array is a kilometer^2. Then, if the kilometer
in question is actually encountered by a player, one will be
generated. (Think of each kilo as an "area" in diku). However,
rather than bother with rooms, I'm going to just create the kilo,
create the creatures that inhabit it, give them homes, add in any
items they require to live, toss in vegetation (based on the kilo
info stored in the 2d [temperature,eleveation,water supply,etc])
find out what direction the entering player is facing, where they
are entering from (coords) and generate them a "room description".

Basically, the terrain-bits stored in the 2d give the skeletal
of the kilo, and it is considered flat. Then, to give it shape,
I plan on adding its "land forms"; be they hills, tree clusters
or whatever. They'll all get a set of coords in the kilo, and
depending on your closeness to them and the direction you are
from them/and facing, it will determine your "room description".

&gt;&gt; Does anyone know a link or quick formula I could look at to do
&gt;&gt; something along these lines? I can just toss out random +/- to
&gt;&gt; a given coordinate, and check its neighbors to make sure there
&gt;&gt; is not too big a jump, but I think that would be inefficient
&gt;&gt; and or ineffective in the long run. Any suggestions?
&gt;
&gt;Well, other posters have already suggested the use of fractal terrain
&gt;generation, and I tend to agree.



I am unfamiliar with them, but I'll look into it. (Actually, I may
even have a link or two already.) Again, thanks all.




&gt;A good place to start out is with the following article, which explains
&gt;the technique in pretty good detail:
&gt;&lt;URL: <A  HREF="http://www.gameprogrammer.com/fractal/fractal.html">http://www.gameprogrammer.com/fractal/fractal.html</A>&gt;


I'll check it out in a bit.

&gt;&gt; (For rivers I plan on using heuristics for getting from point
&gt;&gt; A (river source) to point B (river mouth) but I haven't looked
&gt;&gt; at it too in depth. Finally I believe I have managed to locate
&gt;&gt; the actual formula for "A*" so I may see what I can do with it
&gt;&gt; at a later date.)
&gt;
&gt;I'd certainly be interested in seeing this if you have the possibility to
&gt;post it.


Here are a few on A* and the like:

&lt;URL: <A  HREF="http://www.gdmag.com/stout.htm">http://www.gdmag.com/stout.htm</A> &gt;
&lt;URL: <A  HREF="http://www-cs-students.stanford.edu/~amitp/gameprog.html#Paths">http://www-cs-students.stanford.edu/~amitp/gameprog.html#Paths</A> &gt;
&lt;URL: <A  HREF="http://www-cs-students.stanford.edu/~amitp/Articles/AStar3.txt">http://www-cs-students.stanford.edu/~amitp/Articles/AStar3.txt</A> &gt;

Actually I don't think I'm going to end up using it, because of
the fact that water flows down hill. (Yes, I'm aware of the one
instance, perhaps more, where it doesn't, but as a whole...). So,
not knowing enough about A* yet, (I haven't played with it yet) I
probably will opt just to do something like:

start(x,y)
find the valid moves from current local
flow in one dir at random
repeat

Again, I'm not sure, as I haven't gotten that far; must form the
land forms before I can add water. Mix dry ingredients, then add
liquids.

&gt;Hmmm.... Seems to me that if you want to encode *all* the information in
&gt;the map in a single picture, you'll get a very messy one. That is, it will
&gt;be very hard (just as hard as with your ASCII output) to get a feel for
&gt;what the map looks like. You can simply *not* encode all the data fields
&gt;in those 20 bits (some of which are heights, others which are resources,
&gt;and so on, I take it?) and make it useful for a human reader ("so, okay,
&gt;um, a lot of green mixed in with a little red should mean high altitude
&gt;and some, um, lessee, iron ore...").


The only thing I currently need the picture for is water and land.
The rest will be left off for now. I only need to see how high/low
terrain is. (So I can see if I like its grouping, or if it just looks
like a bunch of random crap ;) The image won't be used actually in
the game, just for some test runs when map generating.

&gt;As for graphics formats... The format that strikes me as the simplest is
&gt;plain BMP (the Windows incarnation, that is). However, other posters have
&gt;responded to this, so I will refrain from doing it as well.


I haven't done anything with graphics ever, so it'll all be new
to me. Again, thanks everyone for the help.

&gt;-- Niklas Elmqvist (d97elm#dtek,chalmers.se) ----------------------
&gt;  "Nanny Ogg looked under her bed in case there was a man there.
&gt;   Well, you never knew your luck."
&gt; -- Terry Pratchett, Lords and Ladies


-Q-



</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00123" HREF="msg00123.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>
<ul compact><li><em>From:</em> Marc Hernandez &lt;marc#jb,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00120.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00122.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00119.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00123.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00121"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00121"><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] Current Projects</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00193" HREF="msg00193.html">[MUD-Dev] Current Projects</A></strong>, 
David Bennett <a href="mailto:ddt#discworld,imaginary.com">ddt#discworld,imaginary.com</a>, Tue 13 Oct 1998, 23:22 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00125" HREF="msg00125.html">[MUD-Dev] Re: META: What are you looking for in this list?</A></strong>, 
Alex Stewart <a href="mailto:riche#crl,com">riche#crl,com</a>, Thu 08 Oct 1998, 10:11 GMT
<LI><strong><A NAME="00116" HREF="msg00116.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, 01:33 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00119" HREF="msg00119.html">[MUD-Dev] Re: Terrain/Landmass &amp; GIF/BMP</A></strong>, 
John Bertoglio <a href="mailto:alexb#internetcds,com">alexb#internetcds,com</a>, Thu 08 Oct 1998, 04:47 GMT
</LI>
<LI><strong><A NAME="00121" HREF="msg00121.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:26 GMT
<UL>
<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>
<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>
</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>