[Home] [Groups] - Message: [Prev in Group] [Next in Group]
6306: [MUD-Dev] Re: MAPPING: Creating a bitmaped graphic from map coordinates
[Full Header] [Plain Text]
From: J C Lawrence <claw@under.engr.sgi.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 23 Apr 1998 10:13:37 -0700
References: [1]
Organization: Kanga.Nu
On Wed, 22 Apr 1998 17:17:06 -0700
John Bertoglio<alexb@internetcds.com> wrote:
> Here's the problem:
> We have a mud world with main grid of 1200 by 800 cells. Each of
> those = cells is stored in a database along with x,y coordinate
> information, cell = color, terrain type, etc. I have written a
> simple mapping function which maps = local areas using HTML
> tables. These work pretty well but since the minimum = size on a 17
> inch monitor is about a 1/4 inch square, it is not possible to
> render large areas or even consider the whole map.
<nod>
> Here's what I need:
> I can write my data to any text configuration.
Of course you *can*. The question is whether you need to, and whether
there is a benefit to use either a text, binary, or other storage
format.
First thought: I'd suggest dynamically generating .GIF's of the map
(perhaps even a single large .GIF covering the entire world), and then
exporting from that a sub-.GIF to the client for the segment he's
interested in. The .GIF format is widely documetned, quite simple,
and has extensive libraries available for its manipulation. PNG is
another (quite likely better) format. JPEG would seem problemic.
--
J C Lawrence Internet: claw@null.net
(Contractor) Internet: coder@ibm.net
---------(*) Internet: claw@under.engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...
--
MUD-Dev: Advancing an unrealised future.