Many thanks, Wade.  Or is it G.?  Anyway, your maze program is an 
excellent place for me to start.  Thanks for sharing it.  
Coincidentally, I did concerns about memory, so I'll definitely look 
into the <use/> element.  

Just out of curiosity, how complex is the perl script that generates 
the maze?  Similar to your maze, I need to generate the layout of 
the tiles in a logical pattern.  If I want believable (as opposed to 
accurate) representations of landmasses and geography, I can't just 
randomly pick a tile for each square.  I know only a little bit 
about a little bit about perl.  Is your script something you think a 
perl newbie could dissect, or did you write it in the grand 
tradition of perl obfuscation?

-Matt D.

--- In [email protected], "G. Wade Johnson" 
<[EMAIL PROTECTED]> wrote:
>
> Although it was for a very different purpose, I have some examples 
of game
> boards in SVG built with tiles in my Maze Maker project
> (http://www.anomaly.org/wade/projects/mazemaker/index.html).
> 
> My project is based on a Perl script that generates the mazes, 
which are
> interactive through JavaScript. I have a list of improvements I 
plan to make
> once I have a bit more time.
> 
> Generating a maze and viewing the source will show how to use the 
<use/>
> element and "tiles" without using a huge amount of memory.
> 
> Hope you find it useful.
> 
> G. Wade
> 
> On Thu, 20 Oct 2005 18:37:15 -0000
> "world_shaper" <[EMAIL PROTECTED]> wrote:
> 
> > Hey Everyone.
> > 
> > OK.  First off, I am BRAND NEW to SVG development, so I have a 
lot of
> > questions and no experience.  Heck, three days ago I didn't even 
know
> > what SVG was.  The more I read about it, though, the more I like 
it. 
> > I could easily ask a hundred questions here, but I will limit it 
to
> > one very broad question I have.  
> > 
> > OK, first some background.  I am looking to write a client-side 
only
> > web app to generate random maps for gaming.  I have a few key 
features
> > that I want to try to stick to:
> > 
> > 1) I want the app to be non-compiled 
> > 2) I want the app to be as open-source as possible.
> > 3) I want the app to be as platform-independant as possible.
> > 
> > I think that javascript combined with SVG's rendering 
capabilities is
> > perfect for the job(native zooming, scaling, and panning are 
just a
> > few features that come to mind).  I'm not sure if it is possible 
to do
> > what I have in mind, however.  Here is what I was thinking:
> > 
> > Similar to traditional compiled game engines, I want to take 
small
> > individual graphic "tiles" and randomly combine them into a large
> > mosaic that creates the map.  Because .jpgs and .bmps have 
serious
> > limitations when it comes to level-of-detail and zooming, I 
thought
> > that SVGs would be a better choice.
> > 
> > Because I don't want to load anywhere from 200 to 2000 
individual SVG
> > images at one time, I want to create some sort of quasi LOD 
system. 
> > To do so, I figure that I need to be able to combine the 
individual
> > small tiles and create single composite SVG images for different
> > levels of detail.  Basically, at different levels of zoom, I 
want the
> > code to determine which size composite SVG image to render; 
e.g., at
> > the most zoomed, it renders individual tiles, at the next 
threshold
> > level zooming out, it combines 4 tiles into one SVG image, at 
the next
> > threshold level zooming out, it combines 16 tiles into one SVG 
image,
> > etc., etc.
> > 
> > So with all that said, here is what I am wondering:
> > 
> > Is it possible to programatically generate these composite SVG 
images
> > when the map is first generated, then load and unload these 
images in
> > the manner I described?  If so, where can I get some information 
on
> > how to accomplish this.  I have experience coding, so I am not 
asking
> > for someone else to do the work, but I need some resources to 
point me
> > in the right direction.
> > 
> > Anyone have any ideas?
> > 
> > -Matt D.
> > 
> > 
> > 
> > 
> > 
> > 
> > -----
> > To unsubscribe send a message to: svg-developers-
[EMAIL PROTECTED]
> > -or-
> > visit http://groups.yahoo.com/group/svg-developers and 
click "edit my
> > membership"---- 
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> 
> 
> -- 
> The user's going to pick dancing pigs over security every time.
>                                                    -- Bruce 
Schneier
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to