1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Rooms, 3D arrays, etc. -->
<!--X-From-R13: fvybivpNfepr.ue ([vebfyni Evybivp) -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by in2.ibm.net id 864897746.161962&#45;1 Thu May 29 09:22:26 1997 CUT -->
<!--X-Message-Id: 199705290922.LAA27374#regoc,srce.hr -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9705290233.82wp@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:silovic#srce,hr">
</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="msg00923.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00925.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00921.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01005.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00924">Author</A>
&nbsp;|&nbsp;<A HREF="#00924">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00924">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:silovic#srce,hr">silovic#srce,hr</A> (Miroslav Silovic)</LI>
<LI><em>Date</em>: Thu, 29 May 1997 11:22:16 +0200 (MET DST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; [Miro:]
&gt; 
&gt; :Use pseudorandom function. Here's one I use to generate procedural
&gt; :textures in my renderer:
&gt; 
&gt; [code omitted]
&gt; 
&gt; Call me dumb, but I'm not understanding your solution. I see what the
&gt; code does, but I don't see how it fits in. Where do the parameters to
&gt; 'irand' come from, i.e. what are they, and how do they relate to the
&gt; x,y coordinates and the stored random seeds used to tweak the landscape?
&gt; 

Uuuh, sorry. I forgot that my code is obvious... to me. :)
Here's an example call:

int i[2];

i[0] = x;
i[1] = y;
terrain.elevation = (int)(150*irand(2, i));


(of course, the last is not quite honest, since you need to substitute that
line with fractal noise generator. Look into my renderer at
<A  HREF="ftp://maja.zesio.fer.hr/pub/tools/graphics/sart">ftp://maja.zesio.fer.hr/pub/tools/graphics/sart</A>)

Another notice, irand works with n-dimensional noise fields. The first
parameter is the number of dimensions (you want 2), and the other is
pointer to the vector of integer coordinates. Hope this helps. :)

	Miro


</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="00921" HREF="msg00921.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="msg00923.html">Re: [MUD-Dev]  Goal orienetd NPCs</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00925.html">Re: [MUD-Dev]  Virtual rooms (was: RP thesis...)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00921.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01005.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00924"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00924"><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] Resets, repops and quests</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00965" HREF="msg00965.html">Re: [MUD-Dev] Resets, repops and quests</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sat 31 May 1997, 04:33 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="01061" HREF="msg01061.html">Re: [MUD-Dev]	Resets, repops and quests</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, 02:12 GMT
</LI>
</ul>
</LI>
<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>
</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>