• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Gormadoc

Darkest Hour Developer (Semi-Retired)
19 Badges
Sep 1, 2004
3.765
4
  • Hearts of Iron II: Beta
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Hearts of Iron II: Armageddon
  • 500k Club
  • Semper Fi
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis III Complete
  • Deus Vult
I was wondering why we still use Map projections in these Global scale HOI games.
I assume it has something to do with added programming complexity versus benefit from using a precise map.

But what are the actual issues that needs to be resolved before using a Globe map instead of a map projection.
Anyone with enough experience in this, that could educate me a bit?
 
  • 2Like
  • 1
  • 1
Reactions:

BeauNiddle

Lt. General
78 Badges
Oct 5, 2011
1.396
2.969
  • Stellaris: Galaxy Edition
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Tyranny: Gold Edition
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Victoria 2: Heart of Darkness
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III Complete
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • 500k Club
  • Shadowrun: Dragonfall
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Shadowrun Returns
  • Age of Wonders III
  • Tyranny - Bastards Wound
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV
  • Shadowrun: Hong Kong
  • BATTLETECH - Digital Deluxe Edition
  • Europa Universalis III Complete
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Victoria 2
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
The original xcom used a globe for a map so it's not that difficult to do.

The problem is 90% of everything you want to look at is angled away from you. On a normal map everything is directly facing you, on a globe only a minor circle in the middle could be considered facing you, everything else has depth perception issues (if not completely occluded). It makes scrolling around to check things at a glance much harder.

Planetary Annihilation was on globes. It didn't really catch on.
 
  • 4
  • 2
Reactions:

Synicus

Major
10 Badges
Jan 3, 2018
554
315
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
What does one do with the corners of the screen? Perhaps we need round monitors? ;)
Biggest issue a gfx engine that can better handle all the 3d units and weather and look great.
There are better ways to move most distortion to the pacific on a flat map but not with a seamless edge that is needed for smooth sailing,
Also if your talking about changing the game gfx so drastic, your looking at HoI V!
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
I assume it has something to do with added programming complexity versus benefit from using a precise map.
Yes, the simple answer is the dated Clausewitz engine that the game is based on is geared for 2D coordinates.

The problem is 90% of everything you want to look at is angled away from you.
The intent is not clear from the OP, but the game could also simulate a globe for the benefit of accurate distance and area calculations while still retaining a visual 2D map.
 
  • 1
Reactions:

safe-keeper

• ← 2mm hole in reality
54 Badges
Sep 6, 2012
8.588
14.373
livetkanfly.com
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Cities: Skylines - After Dark
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Art of War
  • Cities in Motion
  • For the Motherland
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Steel Division: Normand 44 Sign-up
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44 -  Back to Hell
  • Cities: Skylines - Parklife
  • Shadowrun: Dragonfall
  • Cities: Skylines Industries
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: No Step Back
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
What are the advantages of a globe, though? Both from an immersion point of view and in terms of practicality, I prefer being able to see as much as possible at the same time.

edit: what I'm talking about in terms of immersion is how World War II generals didn't look at a globe, they looked at paper maps of the theatres of operations.
 
Last edited:
  • 3
Reactions:

Simon_9732495

Lt. General
25 Badges
Feb 28, 2020
1.612
4.188
  • Crusader Kings II
  • Crusader Kings III
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • Cities: Skylines
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Prison Architect
  • Stellaris
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
To display the globe on a flat monitor screen you need to use a projection.

There are many:

The first one looks a bit like the Map in HOI4, so maybe that is used.

I think using another projection is not too hard. Which projection would you use and what would be the benefits of changing it?

Edit:
See also: https://en.wikipedia.org/wiki/Map_projection

Edit2:
Due to distortions inherent in any map of the world, the choice of projection becomes largely one of aesthetics.
From: https://en.wikipedia.org/wiki/Map_projection#Which_projection_is_best?
 
  • 2Like
Reactions:

BeauNiddle

Lt. General
78 Badges
Oct 5, 2011
1.396
2.969
  • Stellaris: Galaxy Edition
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Tyranny: Gold Edition
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Victoria 2: Heart of Darkness
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III Complete
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • 500k Club
  • Shadowrun: Dragonfall
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Shadowrun Returns
  • Age of Wonders III
  • Tyranny - Bastards Wound
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV
  • Shadowrun: Hong Kong
  • BATTLETECH - Digital Deluxe Edition
  • Europa Universalis III Complete
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Victoria 2
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
Yes, the simple answer is the dated Clausewitz engine that the game is based on is geared for 2D coordinates.


The intent is not clear from the OP, but the game could also simulate a globe for the benefit of accurate distance and area calculations while still retaining a visual 2D map.

Isn't the HOI4 map province based with distance based on node data? (i.e. not pixel distance)

If so then updating the distances to be globe based should be trivial shouldn't it? (if they're not already)
 
  • 2Like
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
Isn't the HOI4 map province based with distance based on node data? (i.e. not pixel distance)

If so then updating the distances to be globe based should be trivial shouldn't it? (if they're not already)
The provinces are a collection of pixels in the province map. Things like air plane ranges or distance between provinces are internally calculated in map pixels. There is no higher abstraction like a map projection or longitude and latitude.
The only game mechanic giving an impression of a globe is the shape of the day-night cycle. I'll see if I can find the formula again.
 
  • 2
Reactions:
M

Mr.Bajskorv

Guest
I think the main reason is because it's easier, and that Paradox and gamers is mostly used to a 2d map. Navigating around a spherical glode isn't hard, it's as easy to get adjusted to after 5 min of play.

A 2d map in games almost always tend to make the regions around the polar unintresteting, because of everyting is represented as being much father away then it really is.
A sphereical or ellisoid map is superior in almost every way.
 

Simon_9732495

Lt. General
25 Badges
Feb 28, 2020
1.612
4.188
  • Crusader Kings II
  • Crusader Kings III
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • Cities: Skylines
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Prison Architect
  • Stellaris
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
A sphereical or ellisoid map is superior in almost every way.
Why do you think that? I'm not sure about it...

If a globe is implemented ingame, it has to be projected somehow to the flat monitor.
If a 2d map is implemented ingame, the projection from the globe to 2D has to happen before.

You will have the problem of projection anyway.

If you design the map in a way that the representation on the monitor looks like a globe (like the XCOM globe), you'll have the problem that everything is dependent on the viewpoint.
If you scroll the world, length in pixel and area in pixel will change.
I'm not sure if that is optimal for grand strategy.
 
  • 1
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
The day-night cycle code translates the center pixel (x, y) of a province into a GMT offset and a latitude like this:
Code:
GMT offset = (x - GMT_OFFSET) / map_width

latitude = -cos(pi * (
    (NORTH_POLE_OFFSET - SOUTH_POLE_OFFSET) * y / map_height + SOUTH_POLE_OFFSET)
))

Which map projection uses a cosine for the latitude calculation?

Edit: applying the projection to a normal world map looks like this:
plot.png
 
Last edited:
  • 2
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
What does one do with the corners of the screen? Perhaps we need round monitors?
The problem is 90% of everything you want to look at is angled away from you. On a normal map everything is directly facing you, on a globe only a minor circle in the middle could be considered facing you, everything else has depth perception issues (if not completely occluded). It makes scrolling around to check things at a glance much harder.
I think you are both overestimating the typical zoom level. Yes, if you want to see all of Eurasia and Africa (or the whole world) at once and zoom out very far on a globe, you'll get a lot of distortion and empty space: https://earth.google.com/web/@23.43746536,60.13720398,-4679.1071407a,12518770.56237102d,35y,0h,0t,0r
But when zoomed out this far in the current game view, you can hardly do anything except assigning fleet areas. You'll see neither divisions, combats, nor victory points:
zoomed_out.png
This is how a more moderate zoom level would look like: https://earth.google.com/web/@48.02...5872.10029662d,35y,3.65534854h,6.20439171t,0r
moderate_zoom.png

At a level where divisions get shown for individual provinces, there is hardly any distortion left: https://earth.google.com/web/@55.11...574311a,927437.6724869d,35y,3.45907552h,0t,0r
zoomed_in.png
 
  • 3
  • 1
Reactions:

Praetori

High-Command Scapegoat
82 Badges
Aug 6, 2009
2.869
2.100
  • 500k Club
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: By Blood Alone
I was wondering why we still use Map projections in these Global scale HOI games.
I assume it has something to do with added programming complexity versus benefit from using a precise map.

But what are the actual issues that needs to be resolved before using a Globe map instead of a map projection.
Anyone with enough experience in this, that could educate me a bit?

The engine works with the base-maps pixels and populates a lot of things based upon it (even distances). Pixels are square and thus you'd get huge issues pretty quickly if mapped to a sphere (despite converting to a different projection).
Things like the geographies of provinces, states etc would probably be a lot harder to mod (or not harder depending on what replaces the pixel map but at least less accessible for people to get into).

That said. For future titles there's nothing preventing a globe but it IS much easier to work with flat geometries for a lot of different reasons.
Aesthetically I personally also think that the flat-map style works better in games pre-space-flight while the "globe" style of overview works better for modern or sci-fi titles.

There are benefits of doing vectorized geometries instead of how the engine currently does it but on the other hand you can do that no matter if your coordinates/projection is flat, spherical, donut-shaped or whatever (the latter will make your eyes bleed a little if projected in 2D though).
 

AFilthyCasual

Second Lieutenant
Feb 19, 2020
116
148
I would prefer a globe because it would allow for more realistic travel and control zones by ships and planes, and would also make everything correctly proportional so Europe isn't twice its actual size. However I don't think the Clausewitz engine can handle it, they would need a new engine.
 
  • 3
  • 2Like
  • 1
Reactions: