msg00140.html

1999Q4/msg00140.html · 8.4 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: Mon, 08 Nov 1999 11:03:40 &#45;0800 -->
<!--X-Message-Id: 38238E54.1D3E61D7@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-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="msg00141.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00139.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00124.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00162.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00140">Author</A>
&nbsp;|&nbsp;<A HREF="#00140">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00140">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>: Sat, 06 Nov 1999 03:11:32 +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>
Christopher Allen wrote:
&gt; A faster alternative is to do a Hilbert search to find those objects that
&gt; are within 100x100 points around the player. This delivers a list of
&gt; potential visible objects in a rectangle around the player. This typically
&gt; 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.

You can speed up the testing of surounding areas by having two bitmaps for
the landscape, one vertically oriented and and one horisontally oriented. 1
means something is present in the cell, and 0 means empty. Moving one cell
north east with a 128x128 window on a 64 bit processor would then involve a
cheap initial test of six 64-bit words. You could do millions of these per
second.
--  
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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00162" HREF="msg00162.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw@cp.net&gt;</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" &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>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00141.html">RE: [MUD-Dev] players who "take away from the game"</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00139.html">Re: [MUD-Dev] players who "take away from the game"</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00124.html">Re: [MUD-Dev] Spatial datastructures and their application (Was Re: Hilbert Curves)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00162.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#00140"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00140"><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>[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>
<LI><strong><A NAME="00120" HREF="msg00120.html">[MUD-Dev] Re: Hilbert Curves [was: "Re: [DGD] Rooms with Views" and "Re: [Mud-Dev]Physics"]</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag@ifi.uio.no">olag@ifi.uio.no</a>, Thu 04 Nov 1999, 23:03 GMT
<UL>
<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>
<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
</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
<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>
</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