msg00162.html
1999Q4/msg00162.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-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves) -->
<!--X-From-R13: X Q Znjerapr <pynjNpc.arg> -->
<!--X-Date: Tue, 09 Nov 1999 18:38:08 -0800 -->
<!--X-Message-Id: E11lNe6-0000w3-00@under.eng.cp.net -->
<!--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-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:claw@cp.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>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00161.html">Previous</a>
| <a href="msg00163.html">Next</a>
]
Thread:
[ <a href="msg00140.html">Previous</a>
| <a href="msg00168.html">Next</a>
]
Index:
[ <A HREF="author.html#00162">Author</A>
| <A HREF="#00162">Date</A>
| <A HREF="thread.html#00162">Thread</A>
]
<!--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>: J C Lawrence <<A HREF="mailto:claw#cp,net">claw#cp,net</A>></LI>
<LI><em>Date</em>: Tue, 09 Nov 1999 18:38:01 -0800</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>
On Sat, 06 Nov 1999 03:11:32 +0100
olag <Ola> wrote:
> Christopher Allen wrote:
>> A faster alternative is to do a Hilbert search to find those
>> objects that are within 100x100 points around the player. This
>> delivers a list of potential visible objects in a rectangle
>> around the player. This typically is a relatively small list, say
>> of a dozen objects.
> How fast do you move? If you just move a few points per look, then
> you would benefit from a windowing approach (slide a window over
> the landscape as the player move and add/remove objects that cross
> the window border). The bad news is of course that you now have to
> update the (cached) state within your window when something inside
> dies etc.
This gets pathalogical when object density rises, especially when
objects are more dense than your search array's granularity. Now
cosider the following scenario, taken from the Neighborhood thread:
<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>
<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>
Quoting from the former:
--<cut>--
- Shoehorn and the magic hat -
Shoehorn and a dozen other characters are in a room. Shoehorn takes
off his magic hat and puts out a rabbit. Then he pulls out another
rabbit. And another. Dozens and dozens of rabbits.
We start with one neighborhood, [Shoehorn, 1, 2, 3, .. 12]. If we
limit the maximum number of object in a set to 13, then adding a
rabbit will require us to split this neighborhood into two (or more)
sets. Eight characters are standing near Shoehorn (hm, some bad
graphics might be useful here, oh well) and the other four, plus 7
and 8, are near a corner.
After trick #1:
#1[Shoehorn, 1, 2, 3, 4, 5, 6, 7, 8, rabbit1] - #2[7, 8, 9, 10, 11, 12]
Only the folks in Shoehorn's group see the next three tricks...
After trick #4:
#1[Shoehorn, 1-8, rabbit1-rabbit4] - #2[7-12]
Things start to get a little crazy, rabbits are hopping
everywhere...
After trick #5:
#1[Shoehorn, 1, 2, 3, 4, rabbit2, rabbit3, rabbit5] -
#2[4, 5, 6, 7, rabbit1, rabbit3] -
#3[7, 8, 9, 10, 11, rabbit4] -
#4[11, 12]
Character 7 starts attacking rabbit1. Everyone in set #3 can see
the attack clearly. The folks in set #3 can see that 7 is attacking
_something_. Otherwise the room is too crowded for everyone to see
everything that is going on.
Well, I've spent too much time on this message. Some extensions
might deal with differently sized objects, or a clever method for
splitting up the neightborhoods.
--<cut>--
<<Yes, I'm still trying to figure out how to effectively use the
neighborhood concept>>
--
J C Lawrence Internet: claw#kanga,nu
----------(*) Internet: coder#kanga,nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...
_______________________________________________
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="00207" HREF="msg00207.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>
<ul compact><li><em>From:</em> Ola Fosheim Grøstad <olag@ifi.uio.no></li></ul>
<li><strong><A NAME="00168" HREF="msg00168.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>
<ul compact><li><em>From:</em> Miroslav Silovic <silovic@zesoi.fer.hr></li></ul>
</UL></LI></UL>
<!--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" <ChristopherA@Skotos.net></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 <olag@ifi.uio.no></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" <ChristopherA@skotos.net></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 <olag@ifi.uio.no></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00161.html">Re: [MUD-Dev] weather</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00163.html">Re: [MUD-Dev] players who "take away from the game"</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00140.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00168.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00162"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00162"><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] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00122" HREF="msg00122.html">Re: [MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev] Physics"]</A></strong>,
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Thu 04 Nov 1999, 23:48 GMT
</LI>
</ul>
<LI><strong><A NAME="00123" HREF="msg00123.html">[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 05 Nov 1999, 02:36 GMT
<UL>
<LI><strong><A NAME="00124" HREF="msg00124.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>,
Christopher Allen <a href="mailto:ChristopherA@skotos.net">ChristopherA@skotos.net</a>, Fri 05 Nov 1999, 03:16 GMT
<UL>
<LI><strong><A NAME="00140" HREF="msg00140.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>, Mon 08 Nov 1999, 19:03 GMT
<UL>
<LI><strong><A NAME="00162" HREF="msg00162.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>,
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Wed 10 Nov 1999, 02:38 GMT
<UL>
<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
</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>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</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
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>