.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #34  
Old January 9th, 2004, 09:43 PM

Strages Sanctus Strages Sanctus is offline
Sergeant
 
Join Date: Jan 2004
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Strages Sanctus is on a distinguished road
Default Re: Maps available

Lingo is Director's internal development language.

It runs on mac and windows, shockwave is the web product created from it. It also creates stand-alone executables for mac and windows.

It would be easy enough if there are only single white pixels (as being the only pure white in the image) defining each province ALONG WITH true red borders defining each province area. (the borders could be removed once the map data file was generated).

This would enable the code to find a single white pixel and then find the entire area around it that is within in the confines of a true red border (I have fill code similar to this).

It could then look at the color of the pixels in that area to define the territory or multiple-territory types (like mountain/forest or mountain/waste). It could then look at a set of teerain lists and generate a name for that province(your bas files is exactly the type of thing I am talking about.)

Even without the red borders it could expand out in its detection process only a certain range and generate its data that way. But then neighbour detection would be very haphazard since it would have no way of knowing its relationship to other provinces except for proximity to the other province indicating white pixels.

Edge detection for both the above process and the process of determing adjacent neighbours is much easier when you have a set of defined points from which to 'expand' from out to a definied color border(in this case the single pixels of true white and a border of true red.)

I think for the first run I would do this, and then see if it is possible to incoporate some kind of ability to automate blocked off borders (the double thick borders in current maps).

The automated process could of course all be done gui-less. The gui would come in for doing things manually.

It would be also be neat to consider it being able to look at other graphic data to do more complex automation of things (a graduated color overlay indicating neutral areas, racial make-up of neutral provinces, strength etc...) this would work really well with something like your randomizing routines.

Edit: it's and its (grammar is evil)

[ January 09, 2004, 19:48: Message edited by: Strages Sanctus ]
__________________
Regno Dominatio
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.