User Tools

Site Tools


arma3:terrain:darken-merge-picturemap-satellite-texture-tiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arma3:terrain:darken-merge-picturemap-satellite-texture-tiles [2017-02-28 08:07]
snakeman created darken-merge-picturemap-satellite-texture-tiles initial page.
arma3:terrain:darken-merge-picturemap-satellite-texture-tiles [2020-05-14 05:47] (current)
snakeman updated to v7.0.10-11
Line 1: Line 1:
 ====== Darken Merge Picturemap Satellite Texture Tiles ====== ====== Darken Merge Picturemap Satellite Texture Tiles ======
  
-**HOWTO darken, merge and create picturemap from global mapper exported satellite texture tiles with Imagemagick.**+**HOWTO darken, merge and create picturemap from global mapper exported satellite texture tiles with [[arma2:​texturing:​imagemagick|Imagemagick]].**
  
 In these examples we use global mapper exported 4 x 4 satellite texture tiles which is great number as it works on all satellite types from 20,480 all the way up to monster 102,400 resolution. In these examples we use global mapper exported 4 x 4 satellite texture tiles which is great number as it works on all satellite types from 20,480 all the way up to monster 102,400 resolution.
 +
 +**2020-05-14** updated to Version: ImageMagick 7.0.10-11 Q16 x64 2020-05-09.
  
  
 ====== Darken ====== ====== Darken ======
  
-First batch file is to darken the satellite texture tiles. The command is **-brightness-contrast -<​VALUE>​** where you can use value depending on your satellite texture type, for example some dark green european forests don't need much darkening while bright desert of Iraq require huge amount of it. In our example we use value of -30 which seems to work more or less ok (depending on your satellite image).+First batch file is to darken the satellite texture tiles. The command is **-brightness-contrast -<​VALUE>​** where you can use value depending on your satellite texture type, for example some dark green european forests don't need much darkening while bright desert of Iraq require huge amount of it. In our example we use value of -30 which seems to work more or less OK (depending on your satellite image)
 + 
 +Note that we convert global mapper exported 24bit PNG files here.
  
 **_run_imagemagick_global_mapper_darken_tiles_4x4.bat:​** **_run_imagemagick_global_mapper_darken_tiles_4x4.bat:​**
 <code dos> <code dos>
 @echo off @echo off
-convert sat_A1.bmp -brightness-contrast -30 Dsat_A1.bmp +set MAGICK_TEMPORARY_PATH=c:​\temp
-convert sat_A2.bmp -brightness-contrast -30 Dsat_A2.bmp +
-convert sat_A3.bmp -brightness-contrast -30 Dsat_A3.bmp +
-convert sat_A4.bmp -brightness-contrast -30 Dsat_A4.bmp+
  
-convert ​sat_B1.bmp -brightness-contrast -30 Dsat_B1.bmp +echo Dsat_A1 ... 
-convert ​sat_B2.bmp -brightness-contrast -30 Dsat_B2.bmp +magick ​convert ​sat_A1.png -brightness-contrast -30 Dsat_A1.bmp 
-convert ​sat_B3.bmp -brightness-contrast -30 Dsat_B3.bmp +echo Dsat_A2 ... 
-convert ​sat_B4.bmp -brightness-contrast -30 Dsat_B4.bmp+magick ​convert ​sat_A2.png -brightness-contrast -30 Dsat_A2.bmp 
 +echo Dsat_A3 ... 
 +magick ​convert ​sat_A3.png -brightness-contrast -30 Dsat_A3.bmp 
 +echo Dsat_A4 ... 
 +magick ​convert ​sat_A4.png -brightness-contrast -30 Dsat_A4.bmp
  
-convert ​sat_C1.bmp -brightness-contrast -30 Dsat_C1.bmp +echo Dsat_B1 ... 
-convert ​sat_C2.bmp -brightness-contrast -30 Dsat_C2.bmp +magick ​convert ​sat_B1.png -brightness-contrast -30 Dsat_B1.bmp 
-convert ​sat_C3.bmp -brightness-contrast -30 Dsat_C3.bmp +echo Dsat_B2 ... 
-convert ​sat_C4.bmp -brightness-contrast -30 Dsat_C4.bmp+magick ​convert ​sat_B2.png -brightness-contrast -30 Dsat_B2.bmp 
 +echo Dsat_B3 ... 
 +magick ​convert ​sat_B3.png -brightness-contrast -30 Dsat_B3.bmp 
 +echo Dsat_B4 ... 
 +magick ​convert ​sat_B4.png -brightness-contrast -30 Dsat_B4.bmp
  
-convert ​sat_D1.bmp -brightness-contrast -30 Dsat_D1.bmp +echo Dsat_C1 ... 
-convert sat_D2.bmp -brightness-contrast -30 Dsat_D2.bmp +magick ​convert ​sat_C1.png -brightness-contrast -30 Dsat_C1.bmp 
-convert sat_D3.bmp -brightness-contrast -30 Dsat_D3.bmp +echo Dsat_C2 ... 
-convert sat_D4.bmp -brightness-contrast -30 Dsat_D4.bmp+magick convert sat_C2.png -brightness-contrast -30 Dsat_C2.bmp 
 +echo Dsat_C3 ... 
 +magick convert sat_C3.png -brightness-contrast -30 Dsat_C3.bmp 
 +echo Dsat_C4 ... 
 +magick convert sat_C4.png -brightness-contrast -30 Dsat_C4.bmp 
 + 
 +echo Dsat_D1 ... 
 +magick convert sat_D1.png ​-brightness-contrast -30 Dsat_D1.bmp 
 +echo Dsat_D2 ... 
 +magick ​convert sat_D2.png -brightness-contrast -30 Dsat_D2.bmp 
 +echo Dsat_D3 ... 
 +magick ​convert sat_D3.png -brightness-contrast -30 Dsat_D3.bmp 
 +echo Dsat_D4 ... 
 +magick ​convert sat_D4.png -brightness-contrast -30 Dsat_D4.bmp 
 + 
 +echo All done!
 pause pause
 exit exit
Line 38: Line 62:
  
  
-====== ​ui_picturemap_ca.tga ======+====== ​picturemap_ca.tga ======
  
-Second bat is to create arma3 user interface **ui_picturemap_ca.tga** image which is shown when you load your terrain.+Second bat is to create arma3 user interface **picturemap_ca.tga** image which is shown when you load your terrain. This also creates "​screenshot.png"​ which is 1024x1024 resolution image almost ready to go for web use.
  
-**_run_imagemagick_create_ui_picturemap_ca_4x4.bat:**+**_run_imagemagick_create_picturemap_ca_4x4.bat:**
 <code dos> <code dos>
 @echo off @echo off
Line 51: Line 75:
  
 echo resizing Ax ... echo resizing Ax ...
-convert Dsat_A1.bmp -resize 512x512 temp_A1.bmp +magick ​convert Dsat_A1.bmp -resize 512x512 temp_A1.bmp 
-convert Dsat_A2.bmp -resize 512x512 temp_A2.bmp +magick ​convert Dsat_A2.bmp -resize 512x512 temp_A2.bmp 
-convert Dsat_A3.bmp -resize 512x512 temp_A3.bmp +magick ​convert Dsat_A3.bmp -resize 512x512 temp_A3.bmp 
-convert Dsat_A4.bmp -resize 512x512 temp_A4.bmp+magick ​convert Dsat_A4.bmp -resize 512x512 temp_A4.bmp
  
 echo resizing Bx ... echo resizing Bx ...
-convert Dsat_B1.bmp -resize 512x512 temp_B1.bmp +magick ​convert Dsat_B1.bmp -resize 512x512 temp_B1.bmp 
-convert Dsat_B2.bmp -resize 512x512 temp_B2.bmp +magick ​convert Dsat_B2.bmp -resize 512x512 temp_B2.bmp 
-convert Dsat_B3.bmp -resize 512x512 temp_B3.bmp +magick ​convert Dsat_B3.bmp -resize 512x512 temp_B3.bmp 
-convert Dsat_B4.bmp -resize 512x512 temp_B4.bmp+magick ​convert Dsat_B4.bmp -resize 512x512 temp_B4.bmp
  
 echo resizing Cx ... echo resizing Cx ...
-convert Dsat_C1.bmp -resize 512x512 temp_C1.bmp +magick ​convert Dsat_C1.bmp -resize 512x512 temp_C1.bmp 
-convert Dsat_C2.bmp -resize 512x512 temp_C2.bmp +magick ​convert Dsat_C2.bmp -resize 512x512 temp_C2.bmp 
-convert Dsat_C3.bmp -resize 512x512 temp_C3.bmp +magick ​convert Dsat_C3.bmp -resize 512x512 temp_C3.bmp 
-convert Dsat_C4.bmp -resize 512x512 temp_C4.bmp+magick ​convert Dsat_C4.bmp -resize 512x512 temp_C4.bmp
  
 echo resizing Dx ... echo resizing Dx ...
-convert Dsat_D1.bmp -resize 512x512 temp_D1.bmp +magick ​convert Dsat_D1.bmp -resize 512x512 temp_D1.bmp 
-convert Dsat_D2.bmp -resize 512x512 temp_D2.bmp +magick ​convert Dsat_D2.bmp -resize 512x512 temp_D2.bmp 
-convert Dsat_D3.bmp -resize 512x512 temp_D3.bmp +magick ​convert Dsat_D3.bmp -resize 512x512 temp_D3.bmp 
-convert Dsat_D4.bmp -resize 512x512 temp_D4.bmp+magick ​convert Dsat_D4.bmp -resize 512x512 temp_D4.bmp
  
 echo combine temp_Ax ... echo combine temp_Ax ...
-convert +append temp_A1.bmp temp_A2.bmp temp_A3.bmp temp_A4.bmp temp_Ax.bmp+magick ​convert +append temp_A1.bmp temp_A2.bmp temp_A3.bmp temp_A4.bmp temp_Ax.bmp
 echo combine temp_Bx ... echo combine temp_Bx ...
-convert +append temp_B1.bmp temp_B2.bmp temp_B3.bmp temp_B4.bmp temp_Bx.bmp+magick ​convert +append temp_B1.bmp temp_B2.bmp temp_B3.bmp temp_B4.bmp temp_Bx.bmp
 echo combine temp_Cx ... echo combine temp_Cx ...
-convert +append temp_C1.bmp temp_C2.bmp temp_C3.bmp temp_C4.bmp temp_Cx.bmp+magick ​convert +append temp_C1.bmp temp_C2.bmp temp_C3.bmp temp_C4.bmp temp_Cx.bmp
 echo combine temp_Dx ... echo combine temp_Dx ...
-convert +append temp_D1.bmp temp_D2.bmp temp_D3.bmp temp_D4.bmp temp_Dx.bmp+magick ​convert +append temp_D1.bmp temp_D2.bmp temp_D3.bmp temp_D4.bmp temp_Dx.bmp
  
 echo combine picturemap_ca.tga ... echo combine picturemap_ca.tga ...
-convert -append temp_Ax.bmp temp_Bx.bmp temp_Cx.bmp temp_Dx.bmp picturemap_ca.tga+magick ​convert -append temp_Ax.bmp temp_Bx.bmp temp_Cx.bmp temp_Dx.bmp picturemap_ca.tga 
 +echo creating screenshot ... 
 +magick convert picturemap_ca.tga -resize 1024x1024 screenshot.png
 echo deleting temp files ... echo deleting temp files ...
 if exist temp_*.bmp del temp_*.bmp if exist temp_*.bmp del temp_*.bmp
Line 111: Line 137:
 rem top left rem top left
 echo A1 + A2 ... echo A1 + A2 ...
-convert +append Dsat_A1.bmp Dsat_A2.bmp temp_up.bmp+magick ​convert +append Dsat_A1.bmp Dsat_A2.bmp temp_up.bmp
 echo B1 + B2 ... echo B1 + B2 ...
-convert +append Dsat_B1.bmp Dsat_B2.bmp temp_bottom.bmp+magick ​convert +append Dsat_B1.bmp Dsat_B2.bmp temp_bottom.bmp
 echo top_left ... echo top_left ...
-convert -append temp_up.bmp temp_bottom.bmp top_left.bmp+magick ​convert -append temp_up.bmp temp_bottom.bmp top_left.bmp
 echo cleaning temp tiles... echo cleaning temp tiles...
 del temp_up.bmp temp_bottom.bmp del temp_up.bmp temp_bottom.bmp
Line 122: Line 148:
 rem top right rem top right
 echo A3 + A4 ... echo A3 + A4 ...
-convert +append Dsat_A3.bmp Dsat_A4.bmp temp_up.bmp+magick ​convert +append Dsat_A3.bmp Dsat_A4.bmp temp_up.bmp
 echo B3 + B4 ... echo B3 + B4 ...
-convert +append Dsat_B3.bmp Dsat_B4.bmp temp_bottom.bmp+magick ​convert +append Dsat_B3.bmp Dsat_B4.bmp temp_bottom.bmp
 echo top_right ... echo top_right ...
-convert -append temp_up.bmp temp_bottom.bmp top_right.bmp+magick ​convert -append temp_up.bmp temp_bottom.bmp top_right.bmp
 echo cleaning temp tiles... echo cleaning temp tiles...
 del temp_up.bmp temp_bottom.bmp del temp_up.bmp temp_bottom.bmp
Line 133: Line 159:
 rem bottom left rem bottom left
 echo C1 + C2 ... echo C1 + C2 ...
-convert +append Dsat_C1.bmp Dsat_C2.bmp temp_up.bmp+magick ​convert +append Dsat_C1.bmp Dsat_C2.bmp temp_up.bmp
 echo D1 + D2 ... echo D1 + D2 ...
-convert +append Dsat_D1.bmp Dsat_D2.bmp temp_bottom.bmp+magick ​convert +append Dsat_D1.bmp Dsat_D2.bmp temp_bottom.bmp
 echo bottom_left ... echo bottom_left ...
-convert -append temp_up.bmp temp_bottom.bmp bottom_left.bmp+magick ​convert -append temp_up.bmp temp_bottom.bmp bottom_left.bmp
 echo cleaning temp tiles... echo cleaning temp tiles...
 del temp_up.bmp temp_bottom.bmp del temp_up.bmp temp_bottom.bmp
Line 144: Line 170:
 rem bottom right rem bottom right
 echo C3 + C4 ... echo C3 + C4 ...
-convert +append Dsat_C3.bmp Dsat_C4.bmp temp_up.bmp+magick ​convert +append Dsat_C3.bmp Dsat_C4.bmp temp_up.bmp
 echo D3 + D4 ... echo D3 + D4 ...
-convert +append Dsat_D3.bmp Dsat_D4.bmp temp_bottom.bmp+magick ​convert +append Dsat_D3.bmp Dsat_D4.bmp temp_bottom.bmp
 echo bottom_right ... echo bottom_right ...
-convert -append temp_up.bmp temp_bottom.bmp bottom_right.bmp+magick ​convert -append temp_up.bmp temp_bottom.bmp bottom_right.bmp
 echo cleaning temp tiles... echo cleaning temp tiles...
 del temp_up.bmp temp_bottom.bmp del temp_up.bmp temp_bottom.bmp
arma3/terrain/darken-merge-picturemap-satellite-texture-tiles.1488269242.txt.gz · Last modified: 2017-02-28 08:07 by snakeman