Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Color chart for map_T editing  (Read 335 times)

0 Members and 1 Guest are viewing this topic.

Chrisang

  • member
  • Offline Offline
  • Posts: 70
Color chart for map_T editing
« on: August 09, 2019, 02:00:27 PM »

Just a little trick I made a longtime ago.
I was not satisfied with it so I reworked it.

With the help of this color chart, it takes only 30 seconds and 4 clicks to convert a RGB work image containing dozens of layers into a flatten greyscale map_T
Otherwise, converting manually 28 arbitrary colors into the required proper levels of grey is time-consuming and it is the source of errors.


It’s a specific color chart ; 28 colors you can pick from and apply on a work colorscale map_T. One different color for each texture slot, instead of the hardly distinguishable 28 shades of grey.

Each color has the particulariy of having a blue level component that match one of the 31 levels of grey required by the map_T.

Thus, when the colorscale image is flattened and decomposed into separate RGB components, the image corresponding to the blue component is already in grey scale and can be saved as it stands as map_T.tga.
Don’t forget to check that the image is flattened and any compression disabled before saving.

Thereafter, all the new created images can be deleted.

The zip folder contains 2 files : one in .xcf (Gimp native format), for Gimp users and one in .bmp format, for the others.

D/L link : http://www.mediafire.com/file/hk3e01nremy8fkw/ColorChart.zip/file

Hope that can help some of map editors.

Cheers
Logged

CzechTexan

  • Modder
  • member
  • Offline Offline
  • Posts: 1214
  • Moravia
Re: Color chart for map_T editing
« Reply #1 on: August 10, 2019, 10:50:58 AM »

Thanks for this.  It could be very helpful for map-building.
Logged

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2423
  • On lifetime holidays
Re: Color chart for map_T editing
« Reply #2 on: August 10, 2019, 01:42:45 PM »

Excuse me, please, but
I do not understand how to use this chart.
Cannot a stepwise description be given, please?
Logged

Chrisang

  • member
  • Offline Offline
  • Posts: 70
Re: Color chart for map_T editing
« Reply #3 on: August 10, 2019, 06:52:17 PM »

Thanks for your replies

Uzin, I admit that my post was not so clear.

Let me first explain the purpose of this color chart.

This is how any map_T looks like :



I quickly realised that it was impossible to edit such an image.
Not just because the different shades of grey are barely perceptible while very close together but because of human eye specification.
Human eye is more sensitive to tint and saturation difference than to brightness difference.
In other words, you can say if something is red or green (except if you are color-blind), even if the brightness is exactly the same, whereas you can’t tell what’s a level of grey really is. 15, 38 or whatever you want. The only thing you can say is : which one is lighter and which one is darker.
So, while you’re building a map, it’s easier and more intuitive to work on that :




However, such an image must be converted into the proper level of grey according to the IL2 code.
If you use some arbitrary colors, changing the image from RGB mode into grey mode does not work.
You have to manually pick each color and change it to the right level of grey according to the code. 0 to 31.
So boooring !..
In addition, it’s the best way to waste your time on debugging a map, that is full of white areas at a place where some beautiful textures were expected.
That’s the reason why I’ve made this color chart. Just because I’m lazy and not efficient.

Every color has the particularity of having a component of blue that is the same level of grey from the corresponding slot.




For example, looking at the picture above, the amber color corresponding to slot Country2 from the load.ini, level 14 of grey on the map_T, as a component of blue equal to 14.
That means : If you decompose a colorscale map_T, painted with the colors of my chart, into 3 separate color components (R, G and B), you’ve got 3 images in level of grey, one corresponding to the red level, one to the green and one to the blue. The blue one matches exactly the level of grey  corresponding to the IL2 grey scale.

Here is your map_T. It’s that easy.

It's too late now.
I'll post the step by step procedure tomorrow.
Logged

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2423
  • On lifetime holidays
Re: Color chart for map_T editing
« Reply #4 on: August 11, 2019, 10:01:03 AM »

Looking forward!
Logged

agracier

  • Modder
  • member
  • Offline Offline
  • Posts: 2708
    • The Great War in a Different Light
Re: Color chart for map_T editing
« Reply #5 on: August 11, 2019, 10:35:19 AM »

How wonderfully useful. Many tnx ...

I usually make t-maps in layers, one for each gray value and then superimposed over the h-map (which later gets turned off of course). Still it is difficult to differentiate the gray values. This should be easier.
Logged

Chrisang

  • member
  • Offline Offline
  • Posts: 70
Re: Color chart for map_T editing
« Reply #6 on: August 11, 2019, 10:50:53 AM »

Here's is the step by step method for Gimp.
Sorry but I don't use any other soft. I guess you can obtain the same result, maybe by a different way, with photoshop or paintshop pro.

Let's start by the begining.
The very first basic map_T you've created look something like that :               pick water 31 from the chart and apply on the sea area, land 0 on land to get :


By the same way, do your task and start to paint the map like you want.
You can add as much layers as you want, as well as work layers that you would not to be visible on the final image, providing you follow the next steps.

Once you're satisfied with it or just for test, create the new greyscale map_T.tga, that way. It will take less than 1 minute :

1/ Make visible all the layers you want to be visible. Mask the others.

2/ Go to tab <Edit>, click on 'Copy Visible' :




3/ Paste as New Image :



With Gimp, all the layers are merged but image is not flattened since transparency still remains. You don't care. Needless at the moment.



4/ Under <Colors> tab, scroll down to <components> click on 'Decompose'> :




When prompted, select color model : RGB (if it's not by default) and uncheck all the other options :




Click 'OK'


5/ 3 new images have been created, Red, Green and Blue . all greyscale and flattened so needless to touch anything:
Go to the Blue image. You would found easily : It's the last and darkest one.

This is your final map_T

Export as 'map_T.tga' (without single quote of course, only map_T.tga)
When prompted, don't forget to uncheck 'RLE compression' otherwise the map won't load !





And that's all.
Quicker to do than explain  ;)



Logged

Chrisang

  • member
  • Offline Offline
  • Posts: 70
Re: Color chart for map_T editing
« Reply #7 on: August 11, 2019, 11:10:04 AM »

How wonderfully useful. Many tnx ...

I usually make t-maps in layers, one for each gray value and then superimposed over the h-map (which later gets turned off of course). Still it is difficult to differentiate the gray values. This should be easier.

Glad I was helpfull.  :)
Especially to you and all map experts. ;)

I use a map_h layer too but I use either select or threshold tool on it to delimit areas. Hard and time-consumming
I never thought to surimpose layers over the map_h layer.

Sounds very good.

Obviously a problem still left because that will change colors while merging the layers.

I'll check if there's way (with Gimp) to surimpose only R and G components and let B unchanged.
Logged

agracier

  • Modder
  • member
  • Offline Offline
  • Posts: 2708
    • The Great War in a Different Light
Re: Color chart for map_T editing
« Reply #8 on: August 11, 2019, 11:55:17 AM »

How wonderfully useful. Many tnx ...

I usually make t-maps in layers, one for each gray value and then superimposed over the h-map (which later gets turned off of course). Still it is difficult to differentiate the gray values. This should be easier.

Glad I was helpfull.  :)
Especially to you and all map experts. ;)

I use a map_h layer too but I use either select or threshold tool on it to delimit areas. Hard and time-consumming
I never thought to surimpose layers over the map_h layer.

Sounds very good.

Obviously a problem still left because that will change colors while merging the layers.

I'll check if there's way (with Gimp) to surimpose only R and G components and let B unchanged.


All you need to do is turn off the layers you do NOT wish to appear on the final map. For instance I use an h-map layer to paint in areas, especially mountains and hills.

But when flattening the map (in Paint Shop Pro 7 or GIMP) just turn off the map-h layer. You can turn off or on as many layers as you wish or change the order of importance.

I usually include a map-h layer in my master map-t layered psd file. You can move it up and down the layers, placing it under specific layer you wish to paint in. When turn on if will block the underlaying layers, when turned off, the underlaying layers appear.
Logged

Chrisang

  • member
  • Offline Offline
  • Posts: 70
Re: Color chart for map_T editing
« Reply #9 on: August 12, 2019, 07:15:29 AM »

Ok, I realize I've misunderstood your post.
Where you say 'superimpose' I believed you change the layer mode to 'overlay' or something like that.

That gave me an idea :
Finding a mask mode that delimit some areas of the map_h with different colors.

The best way I've found is to apply over the map_h a grey layer in 'multiply' mode.
The level of grey dépends on how many different areas you want.
RGB 4 reduces the map_h to 4 zones : low, medium, high and very high.
RGB 7 to 7 areas and so on ...

But in fact it's not very useful since the each pix has a level of grey to close to the next to be perceptible.

Ain't Worth the time to do it.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 25 queries.