1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Nested coorindate space model -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Wed, 3 Jun 1998 11:49:15 &#45;0700 -->
<!--X-Message-Id: 199806031847.LAA01035#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 35702ED0.2A713FE6#sparta,mainstream.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Nested coorindate space model</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00868.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00870.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00855.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00893.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00869">Author</A>
&nbsp;|&nbsp;<A HREF="#00869">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00869">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Nested coorindate space model</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>: [MUD-Dev] Re: Nested coorindate space model </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 03 Jun 1998 11:47:07 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#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, 30 May 1998 12:07:44 -0400 
Michael Hohensee&lt;michael#sparta,mainstream.net&gt; wrote:

&gt; Ling wrote:

&gt;&gt; I think so too, scaling would be horrid.  A builder wanting to
&gt;&gt; mimick Alice in Wonderland's scaling feats could stick in code for
&gt;&gt; that kinda thing...  Then again, given that there is an interface
&gt;&gt; between domains that converts objects, it oughta be pretty
&gt;&gt; transparent to the players.  Bubba lobbing a stick into the TARDIS
&gt;&gt; should still see a stick entering the TARDIS, not a tree.
&gt;&gt; Conversely, Boffo inside the TARDIS shouldn't see a twig coming in
&gt;&gt; turning into a stick.
&gt;&gt; 

&gt; This wouldn't actually happen, if the stick's dimensions are left
&gt; alone.  All we need to define a domain like the TARDIS is to give it
&gt; a "scale" value of less than 1.

&gt; It isn't the stick's responsibility to worry about whether it is
&gt; inside a TARDIS or not, that's the TARDIS's job.  So we leave the
&gt; dimensions of the stick unchanged.  Say the TARDIS is 5 units long
&gt; on the outside, and 20 units long on the inside.  It would have a
&gt; scale value of .25.  Now take a stick, and place it within the
&gt; TARDIS.  Now, if you look at the stick from the outside of the
&gt; TARDIS, it will still look like it is the same length as it is on
&gt; the outside. (see the attached image to see what I mean).

This is dependant on another assumption: the mapping of the
translation layers between domains, and breaks at the translation
layer when the a' and b' lengths are zero.  You need to take account
of the translation layers between coordinate systems.

Consider a domain X which contains a nested domain Y.  Y has external
dimensions of 1x1x1 in X's coordinate system, but has internal
dimensions of 100x100x100 in Y's internal coordinate system.  All 6
external faces of the cube formed by Y translate to surfaces in X.

Now take your stick of length 1.  It starts in X's coordinate system
and moves in Y's.  In Y's coordinate system it too has a length of 1,
however, as it crosses the border into Y, it instantly apparently
shrinks to a viewer in X due to the fact that its length now subtends
a tiny fraction of the visual angle that it did immediately prior to
crossing the border.


  +--------------------------------------------+
  |              \                             |
  |               \                            |
  |                X domain         Y domain   |
  |                                /           |
  |                               /            |
  |    ...........+-----------------+          |
  |    ^          |     ^           |          |
  |    |          |     |           |          |
  |    |          |     |           |          |
  |    | 1 unit   |     | 100 units |          |
  |    |          |     |           |          |
  |    |          |     |           |          |
  |    |          |     |           |          |
  |    V          |     V           |          |
  |    ...........+-----------------+          |
  |                                            |
  |                                            |
  +--------------------------------------------+

The other approach is to define constant sized translation
interfaces, the base concept being that a translation interface must
occupy the same dimensional units in both coordinate systems.  This
seems much closer to the TARDIS model, and also explains and allows
many of the cute multi-blob domain mappings.

  +--------------------------------------------+
  |              \             External        |
  |               \            interfaces of   |
  |                X domain         Y domain   |
  |                                /           |
  |                               /            |
  |    ...........+-----------------+          |
  |    ^          |  \              |          |
  |    |          |   A interface   |          |
  |    |          |                 |          |
  |    | 1 unit   |-B interface     |          |
  |    |          |                 |          |
  |    |          |     D interface-|          |
  |    |          |                 |          |
  |    |          |   C interface   |          |
  |    V          |  /              |          |
  |    ...........+-----------------+          |
  |               .                 .          |
  |               .                 .          |
  |               .      1 unit     .          |
  |               .&lt;---------------&gt;.          |
  |                                            |
  +--------------------------------------------+


  +-----------------------------===------------+
  |   \                         . .            |
  |    \                        . .            |
  |     Y domain                . .            |
  |                             . .            |
  |                              \             |
  #.....                           A interface |
  #     -B interface                of length  |
  #.....   of length 1              1 in Y     |
  |        in Y domain              domain     |
  |                                            |
  #.....                                       |
  #     -D interface of length 1 in Y domain   |
  #.....                                       |
  |           C interface                      |
  |         /  of length 1 unit in Y domain    |
  |        . .                                 |
  |        . .                                 |
  |        . .                                 |
  +--------===---------------------------------+

Further this allows the TARDIS-like mechanics of being in X, moving
south thru the B interface into Y, turning around 180 degrees and
exiting Y thru the D interface to find yourself facing in the same
dirction as when you started, and having traveled to the opposite side 
of Y.

&gt; If we're doing this in an object oriented language, like C++, (as I
&gt; am), it isn't hard to get the location of one end of the object, and
&gt; that of the other.  From there, we can do a simple calculation of
&gt; the distance between each end and the observer location.  We simply
&gt; get the distance in absolute coordinates, and divide it by the scale
&gt; of the domain the objects are contained in.  If the lines cross into
&gt; other domains, we first find the distance from the edge of that
&gt; domain to the observer, and then ask the intervening domain to tell
&gt; us how far it is to the object.  If still another domain intervenes,
&gt; it repeats this and asks that domain to find the distance to the
&gt; object.  Eventually, everything returns and sums up the real
&gt; distance (i.e. how far the observer would have to walk to get to the
&gt; object) is discovered.  Then all we have to find is the angle
&gt; between the two lines, but that isn't particularly hard, either.
&gt; Now we plug it all into the equation, and bang, we see how big the
&gt; object appears to be.  No sudden shrinking or anything.

Except for the case when an object lies just other side of a
translation layer.

-- 
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...


</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="00893" HREF="msg00893.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>
<ul compact><li><em>From:</em> Michael Hohensee &lt;michael#sparta,mainstream.net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00854" HREF="msg00854.html">[MUD-Dev] Re: Nested coorindate space model</A></STRONG>
<UL><LI><EM>From:</EM> Michael Hohensee &lt;michael#sparta,mainstream.net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00868.html">[MUD-Dev] Re: Nested coorindate space model</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00870.html">[MUD-Dev] Re: CGDC, a summary</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00855.html">[MUD-Dev] Re: Nested coorindate space model</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00893.html">[MUD-Dev] Re: Nested coorindate space model</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00869"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00869"><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: Nested coorindate space model</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00839" HREF="msg00839.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 27 May 1998, 03:09 GMT
<UL>
<LI><strong><A NAME="00853" HREF="msg00853.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Sat 30 May 1998, 15:39 GMT
<UL>
<LI><strong><A NAME="00854" HREF="msg00854.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Sat 30 May 1998, 20:07 GMT
<UL>
<LI><strong><A NAME="00855" HREF="msg00855.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Sun 31 May 1998, 13:32 GMT
</LI>
<LI><strong><A NAME="00869" HREF="msg00869.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 03 Jun 1998, 18:49 GMT
<UL>
<LI><strong><A NAME="00893" HREF="msg00893.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Sat 06 Jun 1998, 02:41 GMT
<UL>
<LI><strong><A NAME="01061" HREF="msg01061.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 16 Jun 1998, 02:04 GMT
<UL>
<LI><strong><A NAME="01063" HREF="msg01063.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Tue 16 Jun 1998, 02:33 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00868" HREF="msg00868.html">[MUD-Dev] Re: Nested coorindate space model</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 03 Jun 1998, 18:09 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</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>