• August 16, 2018, 02:38:25 PM
• Welcome, Guest

Pages: [1]   Go Down

### AuthorTopic: Microdem vs map_H.tga scaling in Il-2 ,  (Read 643 times)

0 Members and 1 Guest are viewing this topic.

#### Uzin

• Modder
• member
• Offline
• Posts: 2234
• On lifetime holidays
##### Microdem vs map_H.tga scaling in Il-2 ,
« on: February 05, 2018, 01:26:04 PM »

As we know, highest height in map_H.tga has RGB=255, which correspoins to 4032 meters above sea.
But it reminds me that the scale is not strictly linear - proportional. Does any good soul can explain the matter nearer, please,
I have a problem with correctly locating lakes on Transcaucasian map, which are: lake Sevan and lake Cildir - at 1900 m, lake Van -at 1640 m, lake Urmia - at 1330 m. But ascribing the RGB value to these laKes as  calculated from linear scale, lead to too low terrain.
EDIT:
I tried this method:

Logged

#### Chrival

• member
• Offline
• Posts: 52
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #1 on: February 07, 2018, 03:22:51 AM »

Hi.

I've made a spreadsheet a few years ago you can use to compute altitude for a given RGB value or RGB corresponding to an altitude.

http://www.mediafire.com/file/x1wdbdw8eg9y9fg/altitude_scale.xlsx

Cheers

EDIT : free of virus, there's no macro on it.
Logged

#### Uzin

• Modder
• member
• Offline
• Posts: 2234
• On lifetime holidays
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #2 on: February 07, 2018, 06:47:26 AM »

Hi.

I've made a spreadsheet a few years ago you can use to compute altitude for a given RGB value or RGB corresponding to an altitude.

http://www.mediafire.com/file/x1wdbdw8eg9y9fg/altitude_scale.xlsx

Cheers

EDIT : free of virus, there's no macro on it.
Thank you very much, it is what needed!
Just would you be so  kind and give an info about the source of data, please?
Your data look like this?
EDIT:
Where can be found formula for calculations?
Wjhat is this formula based on, please?

Logged

#### Chrival

• member
• Offline
• Posts: 52
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #3 on: February 07, 2018, 07:05:44 PM »

The source is very simple : I made a dedicated and basic map with gradually 255 levels of grey and read the corresponding attitude on unlocked FMB.
Then the  factor is easy to compute ("n" column on my spread sheet).
Logged

#### Uzin

• Modder
• member
• Offline
• Posts: 2234
• On lifetime holidays
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #4 on: February 08, 2018, 02:17:04 AM »

The source is very simple : I made a dedicated and basic map with gradually 255 levels of grey and read the corresponding attitude on unlocked FMB.
Then the  factor is easy to compute ("n" column on my spread sheet).
Thank you very much once more!
Your method is really correct , straightforwaed and true.
It should be made basic info on map making.
Neverthelessa, one problem still remains: how to convert microdem RGB values (supposedly libear) into correct altitudes in Il2.
Logged

#### Chrival

• member
• Offline
• Posts: 52
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #5 on: February 13, 2018, 05:01:00 PM »

Neverthelessa, one problem still remains: how to convert microdem RGB values (supposedly libear) into correct altitudes in Il2.

Put the following file into your microdem folder :
http://www.mediafire.com/file/hww8zpdd1v50b1l/ELEV_COLORS%20IL-2%20Sturmovik.dbf

While using microdem :
Press the Modify button on the menu bar & select Elevation.
In the Elevation map options window that appears select Colors from table & then press the Elevation table button.
Select the file 'ELEV_COLORS IL-2 Sturmovik.dbf' from the link above and ... that's all !

PS: sorry for the late answer.

Logged

#### Uzin

• Modder
• member
• Offline
• Posts: 2234
• On lifetime holidays
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #6 on: February 13, 2018, 06:17:24 PM »

Thank you very much, Chrival!
I did what you adviced routinely and blindly when using microdem earlier,
but I did not realised that this is the way Il-2 Sturmovik is adjusted directly to microdem data.
All my above notices were pure misunderstanding, I am ashamed.
Logged

#### Chrival

• member
• Offline
• Posts: 52
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #7 on: February 14, 2018, 02:24:55 AM »

You're welcome Uzin.

Don't be ashamed. Map editing is very confusing at the begining.
I currently work on 2 maps from scratch. They are still WIP ...
So I know how hard it is !

I suggest you to read that post :
https://www.sas1946.com/main/index.php?topic=33463.0

Plenty of excellent Tools and tutorials.

Good luck !
Logged

#### Chrival

• member
• Offline
• Posts: 52
##### Re: Microdem vs map_H.tga scaling in Il-2 ,
« Reply #8 on: February 14, 2018, 03:29:20 AM »

Here is another tool from myself that may be usefull for you (or anybody) :

You've probably noticed the map_T is very difficult to work on because it's a picture in level of gray.
The difference between greys  colors  is only one level : RGB 0, RGB 1, RGB 2 ... and so on.
1 for each slot that appears in the load ini. RGB 0 for Lowland 0, RGB 1 for Lowland 1 and so on.
The problem is that the difference is hardly perceptible to the eye.

So, in order to make the map_T easier to work on, I made a color chart in RGB.
Each color is different enough to be perciptible to the eye.
But the level of blue of each color respects the following rule : 1 level of blue for each colour.

The way to use it :

- At the begining, you have a basic map_T with only 2 levels of grey : RGB 0 for land and RGB 31 for water.
- Rename that picture (for example Map_T_colour)
- Then, start to paint it by picking up the different colors from my color chart, according to which texture you want to put at a specific place.
Make sure you respect the load.ini rule. For example the color that level of blue is 6, should be put on the place where the texture is Midland2.

When you want to test your work and want to see what it looks like in the FMB :

- Decompose the map_T colour into 3 pictures, one for each level of grey : red, green and blue.
The way to do it dépends on what tool you use. For my own, I use Gimp.
- Red and green are useless. You can delete it.
- The blue one, in fact the picture where each level of grey represents the blue levels of the map_T colors files, simply is ... the map_T that can be read by the sim.
So, rename it map_T.tga and that's all.

Here is link :

http://www.mediafire.com/file/582dzz6lk455qb5/colors_chart.zip

Hope that makes your life easier.

Logged
Pages: [1]   Go Up

Page created in 0.023 seconds with 21 queries.