1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Rooms, 3D arrays, etc. -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by in5.ibm.net id 865374629.35456&#45;1 Tue Jun  3 21:50:29 1997 CUT -->
<!--X-Message-Id: 199706032148.OAA07647#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9705311659.83c1@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Rooms, 3D arrays, etc.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.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="msg01115.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01117.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01005.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01146.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01116">Author</A>
&nbsp;|&nbsp;<A HREF="#01116">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01116">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Rooms, 3D arrays, etc.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#NULL,NET">mud-dev#NULL,NET</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Rooms, 3D arrays, etc.</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Tue, 03 Jun 97 14:43:31 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#NULL,NET">claw#NULL,NET</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In &lt;<A HREF="msg01005.html">9705311659.83c1#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;, on 06/01/97 
   at 10:05 AM, cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray) said:

&gt;[Chris L:]

&gt;:&gt;What I haven't quite figured out is how to be able to repeatably
&gt;:&gt;generate the height for any given co-ordinates within the world.
&gt;:
&gt;:If you use fixed seeds which _are_ stored in the DB, then shouldn't
&gt;:the algorithm repeat when you interpolate between your fixed and known
&gt;:seeds?

&gt;If interpolation here means to follow the fractal rules in order to
&gt;generate down to the level of detail needed, then yes, it *should* be
&gt;possible. I think perhaps my problem (it was a while ago that I last
&gt;played with this) may have been simple grunge programming problems.

Correct.

&gt;It occurs to me now that the *order* in which points are computed is
&gt;very important. The goal is to minimize the number of seeds that must
&gt;be stored, but still be able to compute down to some point without
&gt;having to compute hundreds of other points on the way. The problem is
&gt;the random number generator requiring that each generated number be
&gt;used in exactly the same way in order to reproduce the terrain
&gt;correctly.

Not only that, but you will get into side effect problems where
generating the sequence to derive from A from B results in a certain
value at B, but conversely generating the sequence from C to get B
gets a different value.  This can get *really* hairy to track down and
provably ensure will not happen.

&gt;To clarify a bit, I don't think you can do this by using *just* the
&gt;co-ordinates as the seed, else you will get patterns in your terrain.
&gt;Hmm, is that what Miro's code example is doing - working hard to
&gt;remove any patterns that would show up, so that just the coordinates
&gt;can be used?

I haven't looked at his code in enough detail to say, tho I suspect
so.  Miro?  

&gt;A conceptual problem I have is that if each level of the hierarchy
&gt;is, say, 16 x 16, then you only have 8 bits as your seed. That would
&gt;seem to restrict you to 256 possible outcomes, which is not random
&gt;enough. Hmm (thinking on the fly here), possibly the top level could
&gt;have fully stored seeds (that's only 256 of them), and all other
&gt;levels could use all bits at their level and all higher levels. That
&gt;gives 16 bits as the seed for each square in the second hierarchy
&gt;level. Oh yes, and you can merge in the stored seed, too - that ought
&gt;to be satisfactory.

Bingo.  For each coordinate, however far down the tree it is, take the
entire set of key values from that location on up to the rood node and
from that assemble one very large and detailed key value (ie longer
bit streams).  Look at it this way:

  At the highest level the height variation is minimal.  When you are
dealing with (say) 512x512 kilometer squares, the average height
difference of any sqare as compared to another other adjacent square
is likely to be minimal and easily quantifiable in a small ranged
value.

  Conversely when you get down much smaller, say down to meters, the
averge height variation can be *huge*.  cf The top and bottom of the
Grand Canyon.  

-- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...


</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="01146" HREF="msg01146.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>
<ul compact><li><em>From:</em> silovic#srce,hr (Miroslav Silovic)</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01005" HREF="msg01005.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01115.html">Re: [MUD-Dev]  Taming free PK</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01117.html">Re: [MUD-Dev]  Levels and Goals [was Alright..IF your gonan do</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01005.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01146.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01116"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01116"><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="00878" HREF="msg00878.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 28 May 1997, 12:13 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00921" HREF="msg00921.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 29 May 1997, 13:03 GMT
<UL>
<LI><strong><A NAME="00924" HREF="msg00924.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Thu 29 May 1997, 16:22 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01005" HREF="msg01005.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 01 Jun 1997, 00:17 GMT
<UL>
<LI><strong><A NAME="01116" HREF="msg01116.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 04 Jun 1997, 04:50 GMT
<UL>
<LI><strong><A NAME="01146" HREF="msg01146.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Wed 04 Jun 1997, 15:59 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="01073" HREF="msg01073.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 03 Jun 1997, 08:14 GMT
</LI>
<LI><strong><A NAME="01166" HREF="msg01166.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 05 Jun 1997, 09:11 GMT
<UL>
<LI><strong><A NAME="01195" HREF="msg01195.html">Re: [MUD-Dev] Threaded rand()</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</a>, Thu 05 Jun 1997, 22:36 GMT
</LI>
</UL>
</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>