No video

Map Names and Literacy - Unreal Engine Grand Strategy

Haven't had allot of time to work on this project but still managed to implement a couple of features. Most importantly being map country names which were surprisingly difficult to do.
I did this by creating a convex hull from bordering provinces of a country and then finding the two furthest provinces and the average province vector location. Creating a spline with these points and placing text on the longest continues part of the spline. (E.g making sure the spline doesn't go into another country) using trace steps to get the province underneath the spline in intervals. I then added a bunch of wacky borders to test the system and it works pretty well.
I also added a literacy map mode to debug the current pops.

Пікірлер: 14

  • @samiiiyusufff
    @samiiiyusufff3 ай бұрын

    I look forward to playing this game instead of playing hoi4,eu4 and vic2 all day

  • @noobymooby-ty8gh
    @noobymooby-ty8gh2 ай бұрын

    Globe map? I love this.

  • @GSInteractive
    @GSInteractive3 ай бұрын

    Great progress! Really impressive that you figured out how to do the naming. Text along a spline? Curious on how you made the spline calculations. Also are you coloring the map using shaders?

  • @stupidonesgames5923

    @stupidonesgames5923

    2 ай бұрын

    The spine calculations were surprisingly hard to do because of the way I did the provinces I only have one point in each province rather than points for every border like in an SVG type map. Which github.com/primislas/eu4-svg-map/blob/master/docs/pages/name-placement.md wrote about. It contains some useful stuff that's still relevant to my method. I wrote about it in description but what I did was get all provinces in ID arrays to find continuous landmasses owned by countries (which will be used for supplies/trade latter on and ones which less than ten provinces dont get a name on the map). Then I only get provinces bordering the sea or other countries, which essentially creates a convex hull of provinces, which is a lot shorter than the full province list. I then find the two furthest points using a reasonably inefficient O(n^2) double loop algorithm, but that doesn't matter cause the number of provinces has been reduced. These are the two furthest spline points. Then I get the average province location which is the middle spline point. I then step through the spline 16 times and read the appropriate pixel on the map below it to find the longest segment of the spline not over another country and write text to it appropriately. This method looks really quite good and works with heaps of random borders I tested (it kind of struggled with a Croatia-like shape but it sill looked better than paradoxes oddly). I did use unreal's materials (idk if u count that as shaders) to render the maps color where I essentially used a 3D LUT. So unreal has these things called render targets which u can write to, but they also have canvas render targets which u can write to individual pixels in a manner where u can have a huge one and it not be to bad on GPU memory. So I use a 4096*4096 canvas texture which I write to be a 256*256*256 LUT. I then use the province map to create the UVs to read the correct pixel. I was going to use a hlsl shader to do it but it's a huge pain to setup inside unreal and less optimised cause unreal does alot of back end things. idk how this can be adapted to godot but I wish you best of luck (:

  • @ShouldUseGoodLanguage
    @ShouldUseGoodLanguage3 ай бұрын

    other company cry.you will win all kind of this game

  • @Granochereal

    @Granochereal

    3 ай бұрын

    Alot of grand strategy game studios have loyal fan bases that dickride them till the end like paradox. It deserves the attention but probably won't get that much unfortunately

  • @rbarrososj
    @rbarrososj3 ай бұрын

    I'm seeing your videos and let me congratulate you on your work. I'm following with great attention

  • @flamer6449
    @flamer64493 ай бұрын

    This is looking cool!Will you publish it?

  • @PlatinumGaming67
    @PlatinumGaming673 ай бұрын

    If this is published, I'll 100% get it :)

  • @GreatVoid127
    @GreatVoid1273 ай бұрын

    this game is very good what will it be called?

  • @stupidonesgames5923

    @stupidonesgames5923

    3 ай бұрын

    The working title is Blood And Iron

  • @GreatVoid127

    @GreatVoid127

    3 ай бұрын

    @@stupidonesgames5923ok thanks i will buy it!

  • @MartNM

    @MartNM

    3 ай бұрын

    ​@@stupidonesgames5923 does he know?? 😭😭

  • @21weather

    @21weather

    2 ай бұрын

    When will it come out? If so, will it be free?​@@stupidonesgames5923