msg00207.html

1999Q4/msg00207.html · 10.9 KB

From the archive 1999Q4.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Spatial datastructures and their application (Was Re: Hilbert Curves) -->
<!--X-From-R13: Ayn Tbfurvz =?vfb&#45;8859&#45;1?C?Ue=T8fgnq?= <byntNvsv.hvb.ab> -->
<!--X-Date: Thu, 11 Nov 1999 10:43:06 &#45;0800 -->
<!--X-Message-Id: 382A4E2C.8FF4A064@ifi.uio.no -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: NDBBIGFBGLEIKKPEAHIBMEDODNAA.ChristopherA@Skotos.net -->
<!--X-Reference: 38223F27.2C1C0DE6@ifi.uio.no -->
<!--X-Reference: 004e01bf273c$10e18780$03000004@asmrb.org -->
<!--X-Reference: 38238E54.1D3E61D7@ifi.uio.no -->
<!--X-Reference: E11lNe6&#45;0000w3&#45;00@under.eng.cp.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Spatial datastructures and their application (Wa</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:olag@ifi.uio.no">
</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="msg00202.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00209.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00240.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00107.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00207">Author</A>
&nbsp;|&nbsp;<A HREF="#00207">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00207">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</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>: Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</LI>
<LI><em>From</em>: Ola Fosheim Grøstad &lt;<A HREF="mailto:olag#ifi,uio.no">olag#ifi,uio.no</A>&gt;</LI>
<LI><em>Date</em>: Thu, 11 Nov 1999 06:03:40 +0100</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>
J C Lawrence wrote:
&gt; &gt; How fast do you move? If you just move a few points per look, then
&gt; &gt; you would benefit from a windowing approach (slide a window over
&gt; &gt; the landscape as the player move and add/remove objects that cross
&gt; &gt; the window border). The bad news is of course that you now have to
&gt; &gt; update the (cached) state within your window when something inside
&gt; &gt; dies etc.
&gt; 
&gt; This gets pathalogical when object density rises, especially when
&gt; objects are more dense than your search array's granularity.  Now
&gt; cosider the following scenario, taken from the Neighborhood thread:
&gt;
&gt;   <A  HREF="http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01271.html">http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01271.html</A>
&gt;   <A  HREF="http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01515.html">http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01515.html</A>

I read/write mail offline. :/

I am not sure if I understand what the problem is. First of all, the premise
was that the average case was 12 objects in a 100x100 area. There certainly
are no optimal solutions for higher dimensions in the general case (assuming
all scenes, dynamics and operations are likely/desirable) as the computers
we use are rather "one dimensional" (like a Turing-machine)?

I didn't state what kind of primary datastructure to be used (only the
auxiliary one used for testing), but I accept the assumption you make about
using a grid (2d array). Let's then assume that you have a uniform 2D grid
of linked lists. Assume a granularity of one meter. I assume that you don't
intend to model things that it doesn't make sense to model explicitly, such
a swarm of mosquitoes. What would cause problems?  Big objects cause
problems, because the will cover multiple cells, and thus degrade
performance. (There are several ways to improve this, such as using multiple
grids with different resolutions, dirty hacks and such, but performance is
hard to assert without a data set)

&gt;   Things start to get a little crazy, rabbits are hopping
&gt;   everywhere...

This is not a problem anyway. A rabbit covers max 4 cells so the move() will
be almost constant and small. Large moving objects with lots of holes in
them are troublesome... (so don't allow them, or use another data structure
for them)

To make it fast even when there are lots of windows ("views") watching an
area makes  for some extra work though.


Anyway, for a MUD design, you are better off by thinking about what is
really essential. What does really make an impact on the user experience as
seen on the possibly very much delayed rendering on the user client. Which
is why I for now have abandoned this as well as physical interaction among
objects. It doesn't make as much sense when you get the response five second
late.

&gt; &lt;&lt;Yes, I'm still trying to figure out how to effectively use the
&gt; neighborhood concept&gt;&gt;

It is possibly better, but doesn't answer Allen's problem as described?

Anyway, I prefer to think more abstract and conceptually now than I used to
a couple of years ago. That is in the terms that match the resulting
experience rather than exact placements. For my own project I am still on
the thought stage, and have doubts to whether it will fly or be usable and
how to exactly do the implementation...

--  
Ola Fosheim Groestad,Norway      <A  HREF="http://www.notam.uio.no/~olagr/">http://www.notam.uio.no/~olagr/</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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00118" HREF="msg00118.html">Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</A></STRONG>
<UL><LI><EM>From:</EM> "Christopher Allen" &lt;ChristopherA@Skotos.net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00123" HREF="msg00123.html">[MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
<UL><LI><EM>From:</EM> Ola Fosheim Grøstad &lt;olag@ifi.uio.no&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00124" HREF="msg00124.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
<UL><LI><EM>From:</EM> "Christopher Allen" &lt;ChristopherA@skotos.net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00140" HREF="msg00140.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
<UL><LI><EM>From:</EM> Ola Fosheim Grøstad &lt;olag@ifi.uio.no&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00162" HREF="msg00162.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence &lt;claw@cp.net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00202.html">Re: [MUD-Dev] players who "take away from the game"</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00209.html">Re: [MUD-Dev] players who "take away from the game"</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00240.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re:  Hilbert Curves)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00107.html">Re: [MUD-Dev] Physics</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00207"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00207"><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>Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00168" HREF="msg00168.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>, 
Miroslav Silovic <a href="mailto:silovic@zesoi.fer.hr">silovic@zesoi.fer.hr</a>, Wed 10 Nov 1999, 18:17 GMT
<UL>
<LI><strong><A NAME="00212" HREF="msg00212.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re:Hilbert Curves)</A></strong>, 
Brandon J. Rickman <a href="mailto:ashes@pc4.zennet.com">ashes@pc4.zennet.com</a>, Thu 11 Nov 1999, 19:50 GMT
<UL>
<LI><strong><A NAME="00234" HREF="msg00234.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re:  Hilbert Curves)</A></strong>, 
Miroslav Silovic <a href="mailto:silovic@zesoi.fer.hr">silovic@zesoi.fer.hr</a>, Fri 12 Nov 1999, 18:23 GMT
<LI><strong><A NAME="00240" HREF="msg00240.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re:  Hilbert Curves)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag@ifi.uio.no">olag@ifi.uio.no</a>, Fri 12 Nov 1999, 23:52 GMT
</LI>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00207" HREF="msg00207.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag@ifi.uio.no">olag@ifi.uio.no</a>, Thu 11 Nov 1999, 18:43 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00107" HREF="msg00107.html">Re: [MUD-Dev] Physics</A></strong>, 
Laurel Fan <a href="mailto:lf25+@andrew.cmu.edu">lf25+@andrew.cmu.edu</a>, Wed 03 Nov 1999, 02:38 GMT
<UL>
<LI><strong><A NAME="00109" HREF="msg00109.html">Re: [MUD-Dev] Physics</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm@dtek.chalmers.se">d97elm@dtek.chalmers.se</a>, Wed 03 Nov 1999, 17:48 GMT
</LI>
<LI><strong><A NAME="00111" HREF="msg00111.html">Re: [MUD-Dev] Physics</A></strong>, 
Mik Clarke <a href="mailto:mikclrk@attglobal.net">mikclrk@attglobal.net</a>, Wed 03 Nov 1999, 21:12 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00108" HREF="msg00108.html">RE: [MUD-Dev] Physics</A></strong>, 
Sellers, Michael <a href="mailto:MSellers@maxis.com">MSellers@maxis.com</a>, Wed 03 Nov 1999, 17:48 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>

Site Stats

Snippets: 1791
Codebases: 571