# Borders like Paradox Grand-Strategy Game

**URL:** <https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968>\
**Category:** International\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 5, 2023, 8:00am UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968 "2023-02-05T08:00:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WolfDeaS081](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WolfDeaS081](https://forums.unrealengine.com/u/WolfDeaS081)\
**Post date:** [February 5, 2023, 8:00am UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968/1 "2023-02-05T08:00:40Z")

</div>

I’m doing grand strategy like Hearts of Iron 4, Europa Universalis 4. Specifically now I have a question on how to make the boundaries between provinces like in those games.

Initially I wanted to calculate each pixel in the texture, if the previous calculation and this pixel is different then you need to create a border. However, I used a map size of 1024x1024. Which requires 1048576 calculations. I have even 10K calculations in a few minutes, but a million. Whereas Paradox games use a map size of 5632x2048 (This is Europa Universalis 4). Which amounts to 11,534,336 pixels, and accordingly the calculations. This could take days. Nevertheless, it takes a few minutes to load paradox games on HDD. So I just can’t seem to figure out how to do it. The boundary itself I was planning on doing with a spline, the points would be put where the boundary changes its direction.

I think there must be an easier way to create these boundaries, maybe someone has an idea? Specifically on this topic I could not find on the Internet. Either had to dig very deep.

When playing Europa Universalis 4, I found the moment where the boundaries were incorrectly generated (usually they are bilateral, an example, too throw below). Also I will throw below a map that contains information about the provinces. However the site doesn’t allow for uploading heavy images, so I cut it down to size so you can compare this map to the actual map. In addition to all of this I have added a province map I made for my game. I use this as material for the plane, which has a collision but is hidden. It is sized so that 1 pixel equals 1 unit in the engine.

Thanks in advance for your help! 😉

 ![left](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/2/112dc514f09849e0b8d35c7a0b892412effbc10f.jpeg)

 ![right](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/1/8f1f7098a5c8c9a46942d81b226456abc7fecd7c.jpeg)

This is the point where the boundaries were not generated correctly. Maybe it can help you in some way.

[provinces\_namibia.bmp](https://forums.unrealengine.com/uploads/short-url/bhBBzlnjMNwPczRtGy0jHhN9eTp.bmp) (183.4 KB)

This is a province map area that has had problems generating provinces. I also think it might be of some help to you. It is made in BMP format.

![exampleofcorrectprovs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75aea544aa06d3daa3b18d1ec9bdc4b8624e3c98.png)

This is an example of what boundaries should look like.

 ![Gamemap_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/5/3c500165e2ef5c4ad8504e4cc6239fde8a5a7699.png)

This is my province map. Maybe it can be of some use to you.

If there are any questions. For maybe I have not fully clarified some points. I will be happy to answer those questions. 😀

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [February 5, 2023, 8:39am UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968/2 "2023-02-05T08:39:26Z")

</div>

I work as a [Senior Technical Artist](https://eliaswick.com) for Paradox interactive on HOI and some secret stuff… Due to agreement I don’t think I am allowed to help you. I can give you some pointers however.

The Clausewitz Engine version for HOI is very old, and I think the borders are setup through C++ and shaders, if I am not fully mistaken. If you own one of the games, I suggest looking in the GFX/FX… _I’ve already said enough_ 😉

---

<div class="post-metadata">

**Author:** ![WolfDeaS081](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WolfDeaS081](https://forums.unrealengine.com/u/WolfDeaS081)\
**Post date:** [February 5, 2023, 6:48pm UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968/3 "2023-02-05T18:48:56Z")

</div>

Apparently it’s going to be a tough road. After all, who says it will be easy?

Thank you so much for your help. 😉

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [February 6, 2023, 9:24am UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968/4 "2023-02-06T09:24:08Z")

</div>

No worries! I wish you the best of luck! 🙂

---

<div class="post-metadata">

**Author:** ![S.A.R.G.E](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@S.A.R.G.E](https://forums.unrealengine.com/u/S.A.R.G.E)\
**Post date:** [November 10, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/borders-like-paradox-grand-strategy-game/763968/5 "2024-11-10T21:11:52Z")

</div>

Any luck in this endeavor?
