• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

XML Map Variables ElevationColor greater 17000 ft ?

Dietmar

Resource contributor
Messages
198
Country
germany
Hi,

I try to draw a map with different colors above a elevation of 17000 ft. However, no color at all will be shown with a definition for 18000 ft, or 19000 ft. 17000 ft seems to be the limit.
The SDK shows a pattern of 1000 ft from 0 to 17000 which I thought is just an example. I can change the pattern to 500 ft for example but the 17000 seems to be the limit.
Can somebody confirm to that ?

Best
Dietmar
 
Hello Dietmar,

I believe 17000 is the max achievable. I've experimented same as you. If this is a guide - when you look at the gps.dll in a text editor, you can recognize the variable names. They are the same as in the SDK, and 17000 is tops.

You comment about 500' is interesting! May I ask, how did you do that?

I was never able to get colors changed other than at the 1000' intervals prescribed by the ElevationXXXXColor intervals.

Bob
 
Last edited:
Hi Bob,
thanks for your reply. Well, I tested 500' or 200 ' but I could not profe exactly if the color changed always on that level. I just recognized that a color change happened. I guess you are right that the level pattern is always 1000'. In the past I did not went over 17000' , so I did not realized the limitation.
I am trying to draw a color map for a terrain awareness map and as soon as I am in the range of the Himalaya I run out of my elevation selections code.
Using radio high the map pops red to green during a flight, and using (A:Indicated Altitude,feet) I am ending on the 17000' limit. Do you know a trick to overcome this ?

Dietmar
 
I tested at Mt Everest for over 17,000' to no avail , the 17,000' colour remained to the top
of that mountain.

The radar that I did for the F-111 Pig HUD panel displays about 16 different colour levels
from Sea Level to 2,000' , but it can only be discerned at close in zooms of
3 or 6NM in the Mode 2 screen display (it's the best display, Mode 5 is OK but
mainly below 1'000' and it's colours are terrible).

I did not list 16 Elevations in the Custom Draw , instead I set a bright colour at
the "2,000' Custom Draw" then considerably darker colours for the Custom Draw Elevations
below that height.

To the best of my testing that works for each 2,000' block of heights .
If you use that radar it has a Ground Elevation readout at lower right corner of the screen
so you can evaluate the progressive elevation heights for each colour step.

The main problem with this procedure is that the colours become too bright as the
Elevations increase towards 17,000' , to overcome that problem I tend to change
the colours as height increases , it's not an ideal solution , but it does provide
a huge number of colour Elevation terraces.

It's a pain to achieve , I have probably done well over 100 test Custom Draw Elevation sets.

I use a Poly draw dimmer which when used reduces or washes out some of the
intervening elevation steps, but they are still useable and are necessary for
night flights.

Cheers
Karol
PS
If you try that panel , do a google search for "Latitude Longitude of Mt Everest" ,
then "enter that Lat/Long as a DTO" in the Mission Adaptive Flight Plan Editor ,
it makes finding Mt Everest much easier.
 
An expanded view of above mentioned Radar Mode 2 display.

al9LA.jpg


Following is Mode 2 Radar Custom Draw detail .

Code:
                            <CustomDrawParam id="BackgroundColor" Name="BackgroundColor">
                                <Value>0x111111</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="WaterColor" Name="WaterColor">
                                <Value>0x6B4200</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation0Color" Name="Elevation0Color">
                                <Value>0x111111</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation500Color" Name="Elevation500Color">
                                <Value>0x111111</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation1000Color" Name="Elevation1000Color">
                                <Value>0x002600</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation1500Color" Name="Elevation1500Color">
                                <Value>0x005E00</Value>
                            </CustomDrawParam>
                             <CustomDrawParam id="Elevation2000Color" Name="Elevation2000Color">
                                <Value>0x006E00</Value>
                            </CustomDrawParam>
                             <CustomDrawParam id="Elevation2500Color" Name="Elevation2500Color">
                                <Value>0x158F19</Value>
                            </CustomDrawParam>
                             <CustomDrawParam id="Elevation3000Color" Name="Elevation3000Color">
                                <Value>0x158F19</Value>
                            </CustomDrawParam>
-                           <CustomDrawParam id="Elevation4000Color" Name="Elevation4000Color">
                                <Value>0x00BA00</Value>
                            </CustomDrawParam>
-                           <CustomDrawParam id="Elevation5000Color" Name="Elevation5000Color">
                                <Value>0x00CD00</Value>
                            </CustomDrawParam>
-                           <CustomDrawParam id="Elevation6000Color" Name="Elevation6000Color">
                                <Value>0x00DD00</Value>
                            </CustomDrawParam>
-                           <CustomDrawParam id="Elevation7000Color" Name="Elevation7000Color">
                                <Value>0x00BA52</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation8000Color" Name="Elevation8000Color">
                                <Value>0x00E408</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation9000Color" Name="Elevation9000Color">
                                <Value>0x00E452</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation10000Color" Name="Elevation10000Color">
                                <Value>0x515151</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation11000Color" Name="Elevation11000Color">
                                <Value>0x5D5D5D</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation12000Color" Name="Elevation12000Color">
                                <Value>0x6F6F6F</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation13000Color" Name="Elevation13000Color">
                                <Value>0x818181</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation14000Color" Name="Elevation14000Color">
                                <Value>0x8F8F8F</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation15000Color" Name="Elevation15000Color">
                                <Value>0x9E9E9E</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation16000Color" Name="Elevation16000Color">
                                <Value>0xAAAAAA</Value>
                            </CustomDrawParam>
                            <CustomDrawParam id="Elevation17000Color" Name="Elevation17000Color">
                                <Value>0xB5B5B5</Value>
                            </CustomDrawParam>
 
but it does provide a huge number of colour Elevation terraces.

Hi Karol!

I believe you are describing terrain colors with Terrain Shadow=0 where, when you zoom in, you will indeed see many color terraces as ElevationXXXXColors are mixed with adjacent ElevationXXXXColors over a 2000' interval. That looks very nice on the radar in your gauge! The intriguing point is that there just are no Elevation500Color, Elevation1500Color or Elevation2500Color variables in the gps.dll.

Anyway, I'm talking about Terrain Shadow=1 where there is no color feathering, the color changes are discrete, and occur only at the 1000' elevation intervals.

Using radio high the map pops red to green during a flight, and using (A:Indicated Altitude,feet) I am ending on the 17000' limit. Do you know a trick to overcome this ?

Dietmar,

I see the problem you're describing. I need to think about it ...

Bob
 
Hi Karol,

thanks for all your comments and for your color pattern code too. I know your radar gauge and you did an outstanding job on it. The way you did the color pattern is brilliant.

I use a Poly draw dimmer which when used reduces or washes out some of the
intervening elevation steps, but they are still useable and are necessary for
night flights.

How to use a Poly draw dimmer ??

I do not have problem to find the coords for the Everest or any other locations. I am using my destination finder gauge where I can input the Lat/Lon and it will give me the distance and the bearing. So I can fly ( move) directly to the lat/lon location.
What I try is to get a color pattern like this:

Katmandu.jpg



Based on this specs:

Terrain.jpg


Well, I know it will be not easy and I suppose I have to compromise on a number of functions as long as I am not going via simconnect and another program language like C for example.
OK, let's see how far I get. I will let you know.

Best regards
Dietmar

PS: Seems you are a F-111 fan ?
 
You know FSX feathers out the Elevation color over a 2000' interval which causes a lot of color mixing, right? (TerrainShadow=0) That's a lot of colors in the pic above.

The problem part is the yellow band and green band interface. Would be best for each band to be 1000'.

It's a fun project and I know your products always looks good!

Bob
 
Hi Dietmar,

My guess, and it's only a guess to implement the Terrain awareness display specification
is a modified version of the approach used in the TAWS described in the Custom Draw manual .
I have not studied it but assume that a Macro be created associating the colour height array
to the current aircraft altitude , then that Macro be called in in each Elevation Custom Draw.
If I remember correctly the display must be refreshed (switched On/Off) whenever there is a significant
Aircraft altitude change.

Yes , I suppose I am a F-111 fan , it happened by accident , I settled on that aircraft to
progressively add functional capabilities that generally improve Situational Awareness ,
it was a lucky choice as it is a fast and powerful beast that facilitates testing in
virtually all circumstances.
It is the only System/Panel/instrumentation that I work on , and the development concentrates
on deepening it's capabilities.
That alone represents an endless task with lots of wonderful challenges .

Below is the Dimmer code for the primary radar.
In the secondary radar on the WSO side I varied the colours for dim steps and that resulted in
interesting elevation tints.

Cheers
Karol

Primary radar Dim.
( Placed after the very last "End Element" of the instrument. )

Code:
<!--DIMMER-->
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  0 ==</Visibility>   
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x031803</FillColor>
            <Transparency>1.0</Transparency>
        </Rectangle>
</Element>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  1 ==</Visibility>
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x010201</FillColor>
            <Transparency>0.9</Transparency>
        </Rectangle>
</Element>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  2 ==</Visibility>
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x031803</FillColor>
            <Transparency>0.8</Transparency>
        </Rectangle>
</Element>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  3 ==</Visibility>
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x031803</FillColor>
            <Transparency>0.7</Transparency>
        </Rectangle>
</Element>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  4 ==</Visibility>
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x031803</FillColor>
            <Transparency>0.6</Transparency>
        </Rectangle>
</Element>
<Element id="RdrDim">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(L:PIG_dim,enum)  5 ==</Visibility>
        <Rectangle id="Rectangle">
            <Width>351</Width>
            <Height>350</Height>
            <FillColor>0x031803</FillColor>
            <Transparency>0.5</Transparency>
        </Rectangle>
</Element>
</Element>   


                <Element id="Dim indicator">
                        <FloatPosition>8.000,365.000</FloatPosition>
                        <GaugeText id="GaugeText">
                            <Bright>True</Bright>
                            <FontColor>0x547C54</FontColor>
                            <FontFace>Arial</FontFace>
                            <FontHeight>14</FontHeight>
                            <GaugeString>%((L:PIG_dim))%{case}%{:0} 0%{:1} 1%{:2} 2%{:3} 3%{:4} 4%{:5} 5%{end}</GaugeString>
                            <Size>18,16</Size>
                            <Transparent>True</Transparent>
                        </GaugeText>
                </Element>               
                           
    </Element>
 
@Karol,

great idea witrh the dimmer. I have never used the transparency feature for a fill color. A nice trick for a dimmer function. Thanks !
In my terrain awareness code I am switching from 1000' to 1000' the color pattern according to the aircreft altitude. So the red color moves up and up according to the altitude. Looks not to bad so far. I am still experimenting.

BTW, do you have the doc " F-111 AARDVARK PILOT'S FLIGHT OPERATING INSTRUCTIONS" ? I got via AMAZONE and it took about 3 month to get it. It is a originally published document from the USAF. The price was about 48 $ . I took it as a blue print for a complete new panel project at that time.
It was a nice experience for me to start a panel from scratch. I think the F-111 is not so very much used in the sim community. Anyway, a interesting aircraft.

@Bob
I will see how far I can get it to the real specs, and if at all I can get it to work as a usable gauge display.

Best regards
Dietmar
 
Dietmar,

I purchased a disc from www.flight-manuals-on-cd.com Ltd (New Zealand) , it has 9 Flight manuals
for different models.
I printed out the F-111G Flight Manual 645 pages , had it bound in 2 volumes , it provides
ideas for instrument development.

I have always been an admirer of your work, good luck with with this current project.

Cheers
Karol
 
I will see how far I can get it to the real specs, and if at all I can get it to work as a usable gauge display.

Dietmar,

You might like that Honeywell-like color scheme - you'll just have to see. It's not hard to set up, but when I tried it, I found that it had too many colors for my taste considering the 2000' color feathering and the coarse 1000' color intervals. In the end, I preferred a simple Black-Yellow-Red scheme.

One point about your color scheme, the Yellow-Green interface extending 250' or 500' below the aircraft - that presents a problem. All color bands should be 1000' or multiples of 1000'. My reason is explained here, maybe you have already seen that.

There is a logic bug in my XML version that I discovered when looking into your original post in this thread (so thanks very much for posting this topic) -- it applies to the Elevation17000Color conditional colors and is noticeable mostly if you are simming in the Himalayas. Will post a (sort of) 'fix' later.

Honestly, a Terrain Awareness Map in FSX using the ElevationXXXXColor variables is an amateurish and non-exact hack. Nevertheless, its a fun project and looks cool, if you're not shooting for professional results.

Bob
 
Last edited:
Hi Bob,

ahaaaaa, you are the Bob McElrath !! Sorry I was not aware of that. You are writing absolute brilliant documents. Your other documents were a big help for my FlightInfo gauge. Now I will at first read carefully your Custom Draw documentation before I am continue on my TAWS work. If I have to make to much compromises I guess I will stop it and book the effort under the chapter "Experience".
Thanks for your help and once more for your documentation work. Great !!

Best regards

Dietmar
 
Thanks, Dietmar. The Guidebooks are a 'pay it forward' response to the help I've gotten from Tom Aguilo, Bill Leaming, Roman Stoviak, Jan Van Harten, Ed Wilson, and several others. Glad you like them.

I really got motivated the time AVSIM went down (hacked into? I forget) a few years ago and lost a bunch of important threads. Bob
 
Hi Bob, Karol,

in the meantaime I have spend some time to test my elevation color pattern with different combinatons in connection with the differnt altitude levels. The problem is still to get seemless pattern from 17000 ft up to 30 000 ft in order to get the Himalaya presented. Same issue with the Anden in South America. So, I decided to display this high level altitute in a magenta color which means a unknown terrain. Up to an altitude level of 21 0000 ft ( this is when the green color disappears ) the display looks OK and covers ( I guess ) about 95 % of the earth sureface.
Here some pics:
EDDM.jpg


The pic above shows the my aircraft at EDDM at RH 117 ft and you see the Alpen mountains in the south very nice. All green colors will indicate a altitude level which is below your aircraft.

The next pic:
EDDM_Alt_6800 ft.jpg


At about 6000 ft the Alpen mountains at a much different presentation.

As next a pic from Hawai:
Hawai.jpg



So, all in all not to bad so far.

Regarding the next pic I have a problem to understand the incorrect graphical presentation of the map drawing:
ColorMapERR.jpg


Why does the light blue rectangel goes not away ?? Even if I zoom IN or OUT, the rectangel stays. No change too, if I am moving my aircraft forward. Only if I am doing a panel reload ( triggers the reload of the gauges) the display will come up correct. Any explanetions of this issue?
I have set on all of my cusom draw elements the Priority parameter to 1.
May be it is just my system ???? Not fast enough ?
Any idea is highly welcome.

Best

Dietmar
 
Hi Dietmar,

You have a lot of colors there! :) Glad you like the looks of the display.

Regarding the blue rectangle, I've sometimes seen this type of thing but I don't understand why it occurs. That's well beyond my level of knowledge.

My observation is that FS seems to render the terrain map in 'rectangular' blocks, and the blocks appear to be delineated by lat/lon. I get a similar result at times when I turn on terrain shadow if zoomed out. Much of the map might display correctly, but a rectangle or two might not display the terrain shadow. Is it taking too long to render the map? Is there a 'memory' issue? Maybe those have nothing to do with it. I certainly would not know or understand, but my conclusion is that there's not much I can do about it.

Bob
 
Hi Dietmar,

A superb effort , I love your shots above.
I also get that 'square block' effect , mainly at large scale zooms ,but it's not on a
regular basis.

Occassionally for fun I take the F-111 up to over 1,000,000+' , I then get a similar effect
for distant scenery blocks, I suspect it has to do with FSX loading the scenery and
similar appears at times on the radar display.
Initially , I suspected the Custom Draw background level , but it was only a hunch ,
I had no evidence that it was the cause.

I read in the unofficial (leak) early detail list of items for P3D v2 that LM were able to load the
whole of the Earth but decided on a lesser amount , from memory half.
The revised loading on that platform "might" eliminate the above 'block' problem.
I remain sceptical as their new radar which is a scenery based (similar to Fs9:VIEW) has
a heavy frame rate hit.

Cheers
Karol

PS; here you can see the FSX confusion with scenery loading , area depicted is not directly under the aircraft.
3gLy.jpg
 
Last edited:
Hi Bob, Karol,
well, some of the screens looking like a paint of modern art. Some even better (LOL) ! Being serious, if you would like to paint it, you would see how difficult it is.
Back to our problem with the incorrect map drawing. I think I found the problem. In my gauge my custom draw parameter setting for "DetailLayerTerrain" was 3 according to the SDK for "Color". I changed the setting to -1 and the bad display was gone. The parameter value 3 works so far, but ass soon as your zoom is large enough, you will see the incorrect graphic.
Bob, according to your doc I tried the 2+ too, however I got an error from the xml ace tool, and on my display no colors are being shown. So, -1 is the correct value if the color parameters are being used. Now it works like a champ!
Thanks for your support and helpfull comments.
BTW, this is my little project I am working on:

My_Flypad.jpg


A funny tool with a number of helpfull displays which are different from all regular gauges on a aircraft panel. The TWAS screen shall be one of it. Some others are meanwhile ready. So, this little things keeping my busy.
Still a number of things to do.

Best regards
Dietmar
 
Bob, according to your doc I tried the 2+ too, however I got an error from the xml ace tool

In my doc, "2+" means 2 or greater - apologies for being ambiguous. Including the 'plus' sign should cause an error, yes. The number -1 is the default in all layers.

Anyway, -1 does not solve this problem, you will still get it again. Bob
 
Hi Bob
pls forgive me, if you had the impression I put a plame on your doc. It was absolute my fault in this regard. I just skiped the corresponding chapters, because I was convinced - according to the SDK - the parameter value is 3 and a -1 was not at all in my mind. Anyway, it is a matter of fact, that the value 3 caused the problem in connection with a large zoom factor.
The problem was always solide and it did not went away without a panel reload. With the setting -1 all that was gone. However, I agree with you that under certain circumstances an incorrect display will happen.
At the moment I am happy with the current result.
Thanks for your help and effort.

Best
Dietmar
 
Back
Top