Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization IV > Civ4-General > The spherical map problem
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
22.Sep: BLUE IS OCEAN, GREEN IS GRASS
22.Sep: SMAC-LIKE UN COUNCIL CONFIRMED
21.Sep: GERMAN `ANONYMOUS` LAUNCHES

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
diablovision is offline diablovision
Chieftain
Los Angeles, CA
Apr 2004
time: 05:18
  Old Post 15-03-2005 01:30
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
The spherical map problem Support Apolyton, pre-order Civilization IV

This has been discussed in several threads and I know that many people have various opinions.

I'd like to weigh in with my current thinking on the possibility of a 3d spherical map. Many of us have thought about it, and there are certainly some problems.

I think the principal problem is Tiling, and that nearly all problems descend directly from this. Either hexes or squares or anything else, it is geometrically impossible to tile a globe and make each tile the same size and shape. This has been known to geometry for thousands of years: there are only five: and none of them have enough tiles to make an interesting game of Civilization.

There are ways to tile the globe with distorted hexagons, squares, trapezoids, etc, but all such methods fail either in area representation (tiles are not exactly the same area across the globe, punishing some civ's based only on geographic location), or in distance calculations (i.e. shortest path isn't an arc as expected, but depends on geographic position).

I have been doing some serious thinking the past few days on this problem, and I think I am becoming more in favor of the idea of a tile-less map.

This boils down to the question: what are tiles good for, anyway? And here I think, are the principal points of tiles:

1. Breaks movement into increments, which matches well with the turn-based nature.
2. Break landscape into increments and classes such as mountain, water, hill, grassland, etc.
3. Break improvements into increments.
4. Simplify road / railroad connection network.

All of these, in turn, simplify the game engine and related calculations, as well as make it easier for humans to reason about the landscape, improvements, etc.

But the more I think about it, the more I really want a spherical map. I have tried hard to resolve the geometric difficulties of tiling such a map and have not found a satisfactory solution.

So I spent some time considering the possibility of a tileless map, and here are some problems and possible directions for their resolution:

1. On a tileless map, units can have non-integer locations, which eventually leads to the problem of collision detection (i.e. armies from two nations clashing). This problem has been solved in games like Warcraft for some time: each unit can have a bounding cylinder centered at their current location with some small radius. Other units cannot occupy the same space. That leads to the subproblem:

1a. If all units have bounding cylinders, then friendly units can get jammed up. Two possible solutions are allowing pass-through for friendly units or to allow multiple friendly units (either of the same type, or mixed types) to coexist in the same cylinder. By "getting close enough" to the bounding cyclinder, the unit could join it. Units in a bounding cylinder together would act as a group, or could be split upon movement.

2. Distance calculations. With no integer coordinates, units might move a non-integer distance; this extra complication can be annoying, as it might not be clear when a unit has "just a little" extra movement left for this turn. One possible solution to this problem is to change how unit movement is controlled. For example, when a unit is selected, pressing G would pop up on the map a display of the radius left for that unit to move within the current turn. Clicking on a spot within the circle will move the unit to that point while retaining the left-over movement credit. Clicking on a point outside the circle will cause the unit to take the shortest path to the outside of the circle in that direction and end its turn there. Making a "go-to" point will route the unit to its destination over multiple turns.

3. City radius. Without too much problem, I think that city radius and cultural calculations can be handled as curves around the points where the city is founded. A built-in minimum distance restriction would disallow building cities too close together. Cultural borders could be handled either with a finite-element circle around the city center (and handling overlap) or with a continuous function (curve). Cultural borders would then be curved and blobular, rather than square.

4. Improvements. Terrain improvements could be handled similarly to city radii, where an improvement will affect a radius around the point where it was built. A minimum spacing requirement would disallow overloading hills or mountains with mines. The center of the improvement would determine the terrain "type" for the bonus calculation. The computer may also be able to help by displaying on the map these best candidate locations for the improvement you are wanting to build within a certain distance.

5. Roads. Roads would be built between two points of interest, rather than on a tile. Two points of interest could be two cities, a city and a resource, etc. For Y-type connections between 3 or more cities, a finite number of connection points along one of the roads could allow offshoots to go to other cities, so that there isn't the NxN road connection problem. The interface would help you considerably by helping you build a plan of your road system to minimize distances; after all, this is a computer game, so the computer should help you design the most efficient routes.

6. Combat. Getting close enough (within the bounding cylinder of an opposing unit or group) would initiate combat. The losing unit or group would be destroyed and removed from the map.

7. Supply lines and trade routes. This is independent of the discussion of tileless maps, but it could still be supported with tileless maps; my idea being that the territory traversed by your army when it is outside your borders is your supply line and it must connect you back to one of your cities, or you lose health or fighting power, etc. The supply lines and trade routes would be visible on the map and could be broken by enemy forces rampaging through. To prevent accidentally cutting your allies' trade routes, normal movement would not break supply lines or trade routes but a "rampage" or "pillage" movement would. Also, that "conquered" territory that you passed through with your army on your way to wherever you are going would net you a small fraction of the gold and resources that it would had that territory been within your actual borders. Also, some special units such as marines or explorers would not require supply lines.

What do you guys think about this?

[edit: corrected spelling errors and improved explanation of supply lines and trade routes]

Last edited by diablovision on 15-03-2005 at 21:10

Optimizer is offline Optimizer
Prince
Stockholm
Feb 2001
time: 06:18
  Old Post 15-03-2005 02:33
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Good thoughts.

Max Sinister is offline Max Sinister
Warlord

Nov 2003
time: 05:18
  Old Post 15-03-2005 18:30 Visit Max Sinister's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Remove this text

I agree. The only thing I'm wondering about: How does the computer calculate the shortest (i.e. most efficient) paths? Even with a tile-based system, that's not too easy (I once tried to program that myself, and my algorithm still has flakes). How would that work with your system?

diablovision is offline diablovision
Chieftain
Los Angeles, CA
Apr 2004
time: 05:18
  Old Post 15-03-2005 21:01
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

Sinister,

The computer calculates the shortest path by considering each tile on the map to be a node (point) with connections to each of its eight neighbors. By considering the terrain type, roads, and whether the tile is in your land or not, it computes a "score" for each of the connections to its neighbors, where the lowest score is better (railroad on your territory to railroad on your territory = 0).

It then applies Dijkstra's shortest path algorithm.

Here is more info:
http://www-b2.is.tokushima-u.ac.jp/.../Dijkstra.shtml

On a tileless spherical map, ignoring terrain, the shortest distance between two points is always an arc. With terrain, this can be handled by starting with an arc and then "bending" it around obstacles until a shorter path is found. Another approach, if terrain on the surface of the globe is represented as polygons, could be based on the idea of tracing the outline of these polygons to determine the best way through / around them.

That's only what I came up with off the top of my head, but I think there wouldn't be much problem in coming up with the shortest path calculation.

realpolitic is offline realpolitic
Prince
Rogue States of America
Mar 2002
time: 21:18
  Old Post 16-03-2005 01:03 Visit realpolitic's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Help yourself to an AD-FREE life

While a spherical map would be nice, it seems these solutions would make civ less playable, and civ is a GAME, so the first order of business is keeping it fun.

Darkstar is offline Darkstar
Prince
Huntsville, AL, USA
May 1999
time: 23:18
  Old Post 16-03-2005 11:18
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase Your PM Length

I like it. I've been saying we should be on a round world since posting about Civ2 wishlist.

If you can play on a spherical world in Populous 3, why not elsewhere?

Sandman is offline Sandman
Prince
Sinister Penguin
Aug 2001
time: 05:18
  Old Post 16-03-2005 23:15
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Full PM-box? Change here!

You can tile a sphere with hexagons if you throw in the odd pentagon. Alternatively, you could use a province based-system like EU.

Chimura is offline Chimura
Settler

Aug 2003
time: 23:18
  Old Post 16-03-2005 23:29
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Avatar Enlargement: We've got the solution

your ideas have some good points, but civ is a tile based game. the best way to get a spherical map is to base the sphere around the tile, not the other way around. I've got a proto-type sphereical map generator that i've made in visual basic (no terrain generation, no unit/bonuses, basicly just a blank map, and i haven't figured out how to scroll around the equator or in any direction) when i last worked on it, i was trying to get a map size in the thousands to be created under 60 seconds,

Edit: i was looking at an an old version, last one i make can make a 50 tile radius planet in 9.750 seconds. time to make the blank map is roughly radius squared... i'll plot some results and see what i can come up with.

If anyone is interested, i can post a compiled exe of it and write some descriptions/limitations of what it can do.

Last edited by Chimura on 17-03-2005 at 00:17

General Ludd is offline General Ludd
Emperor
Minion of the Dominion
Aug 2001
time: 05:18
  Old Post 16-03-2005 23:42
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by realpolitic
While a spherical map would be nice, it seems these solutions would make civ less playable, and civ is a GAME, so the first order of business is keeping it fun.


In order to keep something fun, it would have to be fun in the first place.


Civ hasn't been fun since 1999.

Tomasz is offline Tomasz
Chieftain

Jan 2005
time: 05:18
  Old Post 17-03-2005 01:53
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

I really like your ideas Diablovision, for they would increase the reality and originality of every single game. The different situations and replayablity would be infinite.

I would also suggest that a grouping of an army should be done like in CTP 2, and if a battle is fought with numerous units on each side, the area on which they fight should take the entire screen together with all the roads, imrovemwnts, little villages randomly placed, etc, and the untis themselves changed into rectangles to reacreate a true battle plan. And then you should be able to fight the battle.

You can always replace the rectangles to whatever ud like

Also it would be neat if a battle took place on a larger than one area terrain ( ie: more manouvrability and possibilities ) especially later in the game when using modern units.


I posted some other thoughts in the political parties thread too

Tomasz

petermarkab is offline petermarkab
Chieftain

Nov 2002
time: 05:18
  Old Post 17-03-2005 04:50
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Yeah, you can tile a sphere using the buckyball, or football format.
see http://en.wikipedia.org/wiki/Buckminsterfullerene

diablovision is offline diablovision
Chieftain
Los Angeles, CA
Apr 2004
time: 05:18
  Old Post 17-03-2005 08:52
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization 2

Buckyballs contain some pentagons and some hexagons. It was proven by the ancient Greeks using simple geometric principles long ago that there are only 5 platonic solids. Solids of this nature meet the requirements that: 1.) all vertices lie on the surface of a sphere, 2.) all faces are the same size and shape 3.) and all faces are regular polygons.

So, unless you are happy with 20 tiles on the whole map, a platonic solid will not do....

Sandman is offline Sandman
Prince
Sinister Penguin
Aug 2001
time: 05:18
  Old Post 17-03-2005 12:29
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton buy from Amazon

Looks fine to me...

General Ludd is offline General Ludd
Emperor
Minion of the Dominion
Aug 2001
time: 05:18
  Old Post 17-03-2005 19:37
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Put an end to popups!

What's this fascination with tiles, anyways? They are an antiquated way of doing things.

petermarkab is offline petermarkab
Chieftain

Nov 2002
time: 05:18
  Old Post 18-03-2005 04:46
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Hey sandman, you are on the money!

I imagine they've already settled on a particular tile-notile system, judging by those hazily remembered screenshots.

Styria is offline Styria
Settler
Upstate New York
Oct 2001
time: 00:18
  Old Post 24-03-2005 09:33
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton buy from Amazon

I think it would be very easy to take an icosahedron (20 sides) or an irregular polyhedron with several or many more (but the faces are still congruent), and to divide the faces up into hexes. Then all you need to do is resolve the points and vertices. It would still appear spherical enough. You could also define the faces as arctic, temperate, and tropical as a factor in determining their terrain.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:18.
Apolyton Time is 00:18.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0462 seconds (91.79% PHP - 8.21% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net