Jump to content

Red Sea map


Nescio
 Share

Recommended Posts

The Red Sea random map is quite nice (thank you, @elexis).

Spoiler

screenshot0001.thumb.png.7d19f61b268de20a3ad21776f3246cd4.png

Minor issues:

  • Suez canal didn't exist
  • Qatar is a peninsula, not an island
  • There is no large bodies of water on the Eritrean-Ethiopian border

However, in Antiquity the name “Red Sea” was applied to all waters surrounding the Arabian peninsula (i.e. Gulf of Suez, Gulf of Aqaba, Red Sea, Bab-el-Mandeb, Gulf of Aden, Arabian Sea, Gulf of Oman, Strait of Hormuz, Persian Gulf), which allowed people to sail from Egypt to Mesopotamia and Iraq. Therefore it would be nice if the heightmap could be extended to the east:

563644759_Screenshotfrom2019-05-1212-56-55.thumb.png.2379ecc1cfdf56a7f2d7aa897a8fe915.png

Unfortunately, the narrowness of the straits prevents 0 A.D. ships from passing.)

Link to comment
Share on other sites

8 minutes ago, Nescio said:

The Red Sea random map is quite nice (thank you,

Credit goes to _kali.

13 minutes ago, Nescio said:

it would be nice if the heightmap could be extended to the east

It's easily possible to move the heightmap:

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_C1_grey_geo.tif
 * lat=22; lon=41; width=30;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
 * convert red_sea.tif -resize 512 -contrast-stretch 0 red_sea.png

Problem is that it heavily influences balancing, all players are supposed to have roughly equal chances to victory at gamestart, but often the game has already decided after pressing the Start button.

16 minutes ago, Nescio said:
  • Qatar is a peninsula, not an island 
  • There is no large bodies of water on the Eritrean-Ethiopian border 

Pyrogenesis only has support for one level water plane, but in the desert some areas are dry despite being below water level (for the same reason, the Nile on Lower Nubia has few water).

18 minutes ago, Nescio said:

Suez canal didn't exist 

(Same with the Nile dams on Lower Nubia)

One can add some code to modify the terrain artificially afterwards. (Fixing it in atlas means the fixes are lost if one recenters the map)

  • Like 1
Link to comment
Share on other sites

42 minutes ago, elexis said:

It's easily possible to move the heightmap:


 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_C1_grey_geo.tif
 * lat=22; lon=41; width=30;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
 * convert red_sea.tif -resize 512 -contrast-stretch 0 red_sea.png

Thanks! I've never made heightmaps before.

I don't quite understand the coordinates, though. 41, 22 is in Macedonia.

Edited by Nescio
Link to comment
Share on other sites

That code is posted in the mapscript.

According to https://tools.wmflabs.org/geohack/geohack.php?pagename=Red_Sea&params=22_N_38_E_region:EG_type:adm1st_scale:100000000 which is linked from https://en.wikipedia.org/wiki/Red_Sea I didn't confuse latitude / longitude.

Chosing a different heightmap is an iterative process, one has to gradually change decimal places until one get's the optimum.

Link to comment
Share on other sites

26 minutes ago, (-_-) said:

lat 22, lon 41 should be somewhere in west Saudi Arabia. Maybe you swapped lat and lon?

Oops, you're right: 22, 41 is in Arabia, 41, 22 in Macedonia. And I've also found the source image area: https://visibleearth.nasa.gov/grid.php

Now, suppose I would want to make a heightmap along the 0° meridian (e.g. France), how to combine two images?

Edited by Nescio
lat, lon
Link to comment
Share on other sites

Anyway, moving the centre slightly to 24, 46 produced the map I wanted:

gdal_translate -projwin 30 40 62 8 gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
convert red_sea.tif -resize 512 contrast-stretch 0 red_sea.png

red_sea.png.714e844397d2758788032fd10c49ac25.png

image.thumb.png.1675d77941088b8b732f4fee1c29127e.png

Edited by Nescio
lat, lon
  • Like 2
Link to comment
Share on other sites

(I always find these maps odd due to the scale.)

12 minutes ago, Nescio said:

Now, suppose I would want to make a heightmap along the 0° meridian (e.g. France), how to combine two images?

Lon 0 Should be included in the C1 image. But if you want a nicer heightmap, you would need to include B1 too probably.

After the same old commands for both images done seperately you can combine the two using `convert +append 1.png 2.png out.png` + for horizontal side-by-side. - for vertical.

Link to comment
Share on other sites

1 minute ago, (-_-) said:

I always find these maps odd due to the scale.

On the one hand one can change the mapscale, on the other hand maps that don't use heightmaps also use custom scales, on the foot there are some heightmap maps that use more proportionate scales (ratumacos).

21 minutes ago, Nescio said:

how to combine two images?

Mediterranean:

Quote

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * gdal_merge.py -o world.tif gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * lat=46; lon=14; width=58;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) world.tif mediterranean.tif
 * convert mediterranean.tif -resize 512 -contrast-stretch 0 mediterranean.png

There are more examples, Hellas picks a random subset that meets some requirements (between 20% and 30% water), or Jebel Barkal which loads an Atlas map (you can load the image in atlas and save as a PMP file and load that in the random map, but that means one can't recenter it afterwards), Lower Nubia combines a heightmap and a composites to get a more precise shape of the nile, Elephantine uses OpenStreetMap data (since the blue marble data is very blurry when zooming in to that level). The comments are all in the headers of the JS files.

Link to comment
Share on other sites

21 minutes ago, elexis said:

but that means one can't recenter it afterwards

Why not? You can shift and rotate the Atlas heightmap anyway you want. f(x, y) => (x + transformation, y + transformation)

Link to comment
Share on other sites

50 minutes ago, elexis said:
Quote

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * gdal_merge.py -o world.tif gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * lat=46; lon=14; width=58;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) world.tif mediterranean.tif
 * convert mediterranean.tif -resize 512 -contrast-stretch 0 mediterranean.png

Thanks again! Interestingly, the eight tiles are together 116 MB in size, merging them creates a file of 933 MB.

58 minutes ago, (-_-) said:

(I always find these maps odd due to the scale.)

True, but it can also be used for smaller areas, of course, e.g. Sicily [12 40 16 36]:

Spoiler

sicily.png.adc4eacf317673fe63a01095709d6d27.png

screenshot0004.png

Or the Strait of Messina [15.4 38.4 15.8 38.0]:

Spoiler

messina.png.69fb06f16921290c758900ab8909fe81.png

screenshot0005.thumb.png.83b8d6fe1e7356af3450625fb9fca3cf.png

Edited by Nescio
Zancle
  • Like 2
Link to comment
Share on other sites

Visible Earth heightmap is not that large. And 0AD would need only C1. I wonder if a single copy can be kept and a library built around it would be a good idea.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...