2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: RE: [MUD&#45;Dev] The Endeavour Map and MUD Applications -->
<!--X-From-R13: "Xbua Pregbtyvb" <woNchyfrcbyy.pbz> -->
<!--X-Date: Wed, 16 Feb 2000 21:42:24 &#45;0800 -->
<!--X-Message-Id: NDBBJHDDILCFMCFAFDINAEHIDPAA.jb#pulsepoll,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 38AAD042.6FDD453D#sparta,mainstream.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, RE: [MUD-Dev] The Endeavour Map and MUD Applications</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jb#pulsepoll,com">
</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="msg00374.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00377.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00375.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00386.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00376">Author</A>
&nbsp;|&nbsp;<A HREF="#00376">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00376">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>RE: [MUD-Dev] The Endeavour Map and MUD Applications</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>: RE: [MUD-Dev] The Endeavour Map and MUD Applications</LI>
<LI><em>From</em>: "John Bertoglio" &lt;<A HREF="mailto:jb#pulsepoll,com">jb#pulsepoll,com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 16 Feb 2000 15:42:12 -0800</LI>
<LI><em>Importance</em>: Normal</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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; Michael Hohensee
&gt; Sent: Wednesday, February 16, 2000 8:29 AM

&gt;
&gt; For those of you who haven't yet heard, the Space Shuttle Endeavour has
&gt; been engaged in making an extremely high resolution map of the Earth
&gt; from orbit. (see <A  HREF="http://www.spacer.com/shuttle">http://www.spacer.com/shuttle</A> )  These maps are more
&gt; uniformly accurate than any made before, as can be seen here:
&gt; <A  HREF="http://www.dfd.dlr.de/srtm/html/newtoday_en.htm">http://www.dfd.dlr.de/srtm/html/newtoday_en.htm</A>
&gt;

[long intro to explain the background of the mapping issue]

I have been meaning to share this idea with the group and this post reminded
me of it. I wanted produce a graphic map from a world database by assigning
a color value to each pixel based on the corresponding value stored in the
table. I wanted to produce terrain, elevation, river and city map graphics.

Sometime ago, I asked the list about graphic file formats which could be
written in an ASCII (as opposed to binary) format so I could accomplish the
same goal. I got a lot of help with the best alternative turning out to be
the PPM format (for which I again thank the list). This format is very
simple as it defines each pixel as an RGP triplet with a header that
determines the overall size. The problem is the graphic editor I am most
familiar with (PhotoShop) does not directly support the format so I tabled
the idea. Recently, I purchased a copy of PaintShopPro which does support
PPM files so the idea resurfaced.

Since I completely rewrote my HTML-based Mud to take advantage of the new
technology we are using at work, I started with a clean slate. It became
quickly clear that I was taking the wrong approach. The world was built
using HTML tools to craft the terrain, cell by cell and region by region.
The graphic map would be generated by looking at the data entered in this
manner.

It became obvious that there was a much better way to do this. I reversed my
original idea. The key was to build the graphic map of the world using the
PaintShop tools and its ability manage layered graphics. By using a defined
16 color pallet, the elevation or terrain or anything else could be coded by
using the different colors. First you create the water by using a single
blue color on a file of, say, 1200x800 pixels. This creates an instant water
world with about a million locations. Then you draw the land masses with the
color which represents sea level. You now have your base graphic. This is
cloned and applied on top of the base. You then take the new level and edit
the elevation levels.

You save the file as a PPM file. A program that parses each pixel of the
graphic creates the initial world, exits from one location to another and
defines the elevation.

You clone the base graphic again and define a new color palette which
represents the dominant terrain of each region in the world. Now, you put
this new layer over the original two. You fade the terrain graphic in the
background and use it to provide a guideline for the terrain types. For
example, you would not specify a high mountain range as being primarily
swamps or farmland. Again, you save the file as a PPM and parse it into the
system, this time updating each cell with the terrain information.

You want to define major river systems, take the elevation map as a
background (so you can put the rivers in logical places) and draw the rivers
on the new layer. Parse and each cell with a major river has that added to
its characteristics. The program creates gateways which link the river
locations so if a player is navigating rivers, those options can be shown as
they sail.

The same can be done with cities, towns, villages (use dots of different
color), roads and major terrain features like ore deposits, oasis, etc.

The cool thing about this method is that it can work both ways. You can take
the data in the world database and modify or create new graphical maps of
the world. Let's say you allow the world to "discover" the mineral wealth of
each region based on the first time a player prospects in the area. You
could build a mineral overlay for the world map marching cell by cell and
creating new graphic. Each cell is checked to see if it has a minerals above
a certain criteria and what mineral has the highest density. Put the mineral
layer on top of either the blank world or the elevation map and you have an
instant map of mineral wealth in your world. Save it a JPEG or GIF (despite
legal problems, still the best web format for line art) and you have a nice
web-viewable map. Cut up parts of it and you have a mineral map for a
region. Offset the pixel locations randomly in two dimensions and put a 5 to
7 pixel square or circle on the map and you have a map with the approximate
locations of minerals for the adventurous.

If you want to "salt" areas whose random resource generation makes them
uninteresting, simply define a new pallet with slightly different colors
(say, one rgb value) and start clicking dots. Reprocess the graphic and now
the world has additional resources. Run the mineral map program again and
now the new resources are included.

This is kind of the ultimate GUI editor. Draw a picture, get data.
Thought someone would be interested.

John A. Bertoglio
_____

PulsePoll.com &lt;<A  HREF="http://www.pulsepoll.com/">http://www.pulsepoll.com/</A>&gt;
| 503.781.3563
| jb#pulsepoll,com &lt;<A  HREF="mailto:jb#pulsepoll,com">mailto:jb#pulsepoll,com</A>&gt;




&gt; MUD-Dev maillist  -  MUD-Dev#kanga,nu
&gt; <A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>




_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</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="00386" HREF="msg00386.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>
<ul compact><li><em>From:</em> "Justin Rogers" &lt;justin#mlstoday,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00370" HREF="msg00370.html">[MUD-Dev] The Endeavour Map and MUD Applications</A></STRONG>
<UL><LI><EM>From:</EM> Michael Hohensee &lt;michael#sparta,mainstream.net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00374.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00377.html">Re: [MUD-Dev] code base inquiry</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00375.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00386.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00376"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00376"><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="00370" HREF="msg00370.html">[MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Wed 16 Feb 2000, 18:04 GMT
<UL>
<LI><strong><A NAME="00373" HREF="msg00373.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Ted Milker <a href="mailto:tmilker#radiks,net">tmilker#radiks,net</a>, Wed 16 Feb 2000, 20:13 GMT
<UL>
<LI><strong><A NAME="00374" HREF="msg00374.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
David Bennett <a href="mailto:ddt#discworld,imaginary.com">ddt#discworld,imaginary.com</a>, Wed 16 Feb 2000, 22:01 GMT
<UL>
<LI><strong><A NAME="00375" HREF="msg00375.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Ted Milker <a href="mailto:tmilker#radiks,net">tmilker#radiks,net</a>, Thu 17 Feb 2000, 05:42 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00376" HREF="msg00376.html">RE: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
John Bertoglio <a href="mailto:jb#pulsepoll,com">jb#pulsepoll,com</a>, Thu 17 Feb 2000, 05:42 GMT
<UL>
<LI><strong><A NAME="00386" HREF="msg00386.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Justin Rogers <a href="mailto:justin#mlstoday,com">justin#mlstoday,com</a>, Thu 17 Feb 2000, 18:40 GMT
<UL>
<LI><strong><A NAME="00394" HREF="msg00394.html">Re: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Eli Stevens (Grey) <a href="mailto:ens017#mizzou,edu">ens017#mizzou,edu</a>, Thu 17 Feb 2000, 20:47 GMT
</LI>
<LI><strong><A NAME="00406" HREF="msg00406.html">RE: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
John Bertoglio <a href="mailto:jb#pulsepoll,com">jb#pulsepoll,com</a>, Fri 18 Feb 2000, 04:59 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00383" HREF="msg00383.html">RE: [MUD-Dev] The Endeavour Map and MUD Applications</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 17 Feb 2000, 18:40 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>