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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old August 26th, 2007, 12:42 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Idiot\'s Guide to Making Custom Maps?

It does not draw borders but it does detect red pixels in an effort to guess neighbors (or it did in dom2 and I am pretty sure it does in dom3).

I gave a lot of thought to this when I was working on my own custom map editor. If you draw an imaginary line between two points (provinces) and check each pixel's color along that line and set a flag when you hit a border (red) pixel, then skip ahead a few pixels (to clear a border that might be several pixels wide at that point) and if you reach the 2nd point without hitting another set of red border pixels, then you can say that it is likely for the 2 points to be neighbors. This is not 100% foolproof, but it can generate a fair guesstimate.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
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 06:01 AM.


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