Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "move_textures" added

http://developer.wz2100.net/raw-attachment/ticket/4769/move_textures

AWK script that allows moving a rectangular area for a given texture page by 
correcting the coordinates for each PIE files using it

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "jammer_model_alternative.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/jammer_model_alternative.png

view of alternative Jammer colouring in design screen

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "jammer_model_new.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/jammer_model_new.png

view of Jammer in design screen after applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "gimp_sample_colourise.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/gimp_sample_colourise.png

repainting the Jammer with GIMPs "Sample Colourise" tool

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "jammer_model_old.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/jammer_model_old.png

view of Jammer in design screen before applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "jammer_vision_blur_new.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/jammer_vision_blur_new.png

jammer vision blur after applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "jammer_vision_blur_old.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/jammer_vision_blur_old.png

jammer vision blur before applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_5000_new.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_5000_new.png

CB and Jammer towers and tanks next to each other at distance 5000 after 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_2500_new.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_2500_new.png

CB and Jammer towers and tanks next to each other at distance 2500 after 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_500_new.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_500_new.png

CB and Jammer towers and tanks next to each other at distance 500 after 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_5000_old.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_5000_old.png

CB and Jammer towers and tanks next to each other at distance 5000 before 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_500_old.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_500_old.png

CB and Jammer towers and tanks next to each other at distance 500 before 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


Re: [Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
Reporter:  Forgon|  Owner:
Type:  patch (an actual patch, not   | Status:  new
  a request for one) |  Milestone:  unspecified
Priority:  normal|Version:  git/master
   Component:  other |   Keywords:
  Resolution:|   Blocking:
  Blocked By:|
Operating System:  All/Non-Specific  |
-+-
Changes (by Forgon):

Attachment "cb_and_jammer_distance_2500_old.png" added

http://developer.wz2100.net/raw-attachment/ticket/4769/cb_and_jammer_distance_2500_old.png

CB and Jammer towers and tanks next to each other at distance 2500 before 
applying this patch series

--
Ticket URL: 
Warzone 2100 Trac 
The Warzone 2100 Project
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project


[Warzone2100-project] [Warzone 2100 Trac] #4769: repaint Jammer to same colour as Radar Detector and adjust the blurring effect it causes within its range

2018-04-09 Thread Warzone 2100 Trac
#4769: repaint Jammer to same colour as Radar Detector and adjust the blurring
effect it causes within its range
-+-
 Reporter:  Forgon   | Owner:
 Type:  patch (an actual patch, not a|Status:  new
  request for one)   | Milestone:
 Priority:  normal   |  unspecified
Component:  other|   Version:
 Keywords:   |  git/master
 Blocking:   |Blocked By:
 |  Operating System:  All
 |  /Non-Specific
-+-
 The Jammer was hard to tell apart from the Counter Battery (see attached
 screenshots [raw-attachment:cb_and_jammer_distance_5000_old.png], [raw-
 attachment:cb_and_jammer_distance_2500_old.png], [raw-
 attachment:cb_and_jammer_distance_500_old.png]).

 Its blurring effect also obscured unit outlines too much, making it
 difficult to distinguish units from a distance (see attached screenshot
 [raw-attachment:jammer_vision_blur_old.png]).

 Therefore, I have repainted the Jammer to the same colour as the Radar
 Detector (compare [raw-attachment:jammer_model_old.png] to [raw-
 attachment:jammer_model_new.png]).
 This makes it much easier to tell CB and Jammer apart (see attached
 screenshots [raw-attachment:cb_and_jammer_distance_5000_new.png], [raw-
 attachment:cb_and_jammer_distance_2500_new.png], [raw-
 attachment:cb_and_jammer_distance_500_new.png]).

 The blurring effect is now far less intense, but more frequent (see
 attached screenshot [raw-attachment:jammer_vision_blur_new.png]).

 === Documentation for PIE format ===

 I have made a few changes to the file './doc/PIE.md' to better explain the
 different coordinate notations used by PIE2 and PIE3. However, two
 questions remain:

 * Why do helicopter models use some negative coordinates? Are their PIE3
 UV values not supposed to range from 0 to 1?
 * What is the purpose of texture flag 4200? It is used in a few PIE2 and
 PIE3 models.

 === Repositioning textures in texture page ===

 The textures used by the Jammer were shared by CB, Commander, Heavy Rocket
 Bastion and Missile Fortress. Therefore, I had to copy them to a new
 location in the texture page './data/base/texpages/page-17-droid-
 weapons.png'.

 A lack of space required shifting textures on that page and recalculating
 coordinates. For that purpose, I wrote an AWK script that allows moving a
 rectangular area for a given texture page by correcting the coordinates
 for each PIE files using it (see attached script [raw-
 attachment:'move_textures']). It is far from perfect, and must fail if
 only a part of one texture is chosen.

 I carefully tested each texture I moved. Besides using my script, I found
 it useful to temporarily repaint textures in pure red, blue and green
 (whose hexadecimal values are #f00, !#00f, !#0f0). This makes it easy to
 remember where to look for unintended changes. Some files with repainted
 textures are attached.

 
 After repositioning an emplacement foundations texture in GIMP, I executed

 {{{
 ./move_textures 716 480 120 24 684 1000 page-17-droid-weapons.png
 }}}

 
 A texture used by Flashlight and EMP Missile Launcher overlapped with the
 Bunker Buster texture.
 To correct this, I ran

 {{{
 for f in data/base/components/weapons/{gnmr,cy_}las.pie
 do
 printf '%s\n' ',s/219/218/g' w | ed -s $f
 done
 }}}

 I also removed a few unused pixels beneath the texture.
 To ensure they were really not needed, I checked the result of
 `./move_textures 796 480 76 4 0 0 page-17-droid-weapons.png`.

 Finally, I moved the texture in GIMP and shifted all required PIE
 coordinates by executing:

 {{{
 ./move_textures 796 428 76 52 796 388 page-17-droid-weapons.png
 }}}

 
 A texture showing a red dot was unused. I moved it in GIMP and verified
 that nothing required it by checking the result of

 {{{
 ./move_textures 792 504 56 56 368 304 page-17-droid-weapons.png
 }}}

 
 After repositioning a texture used for the left upper arm of heavy cyborgs
 in GIMP, I executed
 {{{
 ./move_textures 488 392 28 52 432 304 page-17-droid-weapons.png
 }}}

 
 Finally there was enough free space on the texture page to copy the
 textures needed by the Jammer model. I copied them in GIMP and then
 executed:

 * for the mast:

 {{{
 git checkout $(./move_textures 892 196 52 200 820 440 page-17-droid-
 weapons.png | grep -vFx ./data/base/components/weapons/gnmecm1.pie)
 }}}

 * for the dishes:

 {{{
 git checkout $(./move_textures 864 912 64 64 460 392 page-17-droid-
 weapons.png | grep -vFx ./data/base/components/weapons/gnmecm1.pie)
 }}}

 data/base/components/weapons/gnmecm2.pie

 === Repaint