• 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.

FS2004 FS9 Map

Messages
95
Country
malta
Hi all,

I am really sorry for asking a lot of questions lately but...

can you change the elevation colour as per elevation?

In fsx there is an ElevationXColor ... where X is the height that ranges from 0 to 17000.

Is this possible in fs9?

regards
 
No, there is not...

For that matter, I've not had much success with it in FSX either... :(
 
hmmm ok....

but in fsx, I saw the map changed almost completely :O

Yes, the colors will change, but not dynamically, which make the entire process kind of useless!

I was hoping to use the color mapping to generate a TAWS display, with the colors changing dynamically to indicate the terrain height in relation to the aircraft's altitude... :o
 
The only way to do so is to have as many "fs9gps:map" custom draw section as color changes and managed their visibility function of Fs variable (aircraft altitude). i have tested and it works.

the syntax and test are not correct, but it's to show the idea.
Code:
		<Element>
      <Visibility> 1000 < aircaft altitude <= 2000 <Visibility>
			<Position X="246" Y="76"/>
			<CustomDraw Name="fs9gps:map" X="640" Y="512" Adjust="Center" FlightPlanLineWidth="1.5" ActiveColorLayerFlightPlan="0x7010B0" PastColorLayerFlightPlan="0xF0F0F0" ColorLayerFlightPlan="0xF0F0F0" Bright="Yes">
      ...
      <Elevation0Color>0x71A65C</Elevation0Color>
      <Elevation1000Color>0x259C7E</Elevation1000Color>
      <Elevation2000Color>yellow</Elevation2000Color>
      <Elevation3000Color>red</Elevation3000Color>
      <Elevation4000Color>red</Elevation4000Color>
      <Elevation5000Color>red</Elevation5000Color>
      ...
      
		<Element>
      <Visibility> 2000 < aircaft altitude <= 3000 <Visibility>
			<Position X="246" Y="76"/>
			<CustomDraw Name="fs9gps:map" X="640" Y="512" Adjust="Center" FlightPlanLineWidth="1.5" ActiveColorLayerFlightPlan="0x7010B0" PastColorLayerFlightPlan="0xF0F0F0" ColorLayerFlightPlan="0xF0F0F0" Bright="Yes">
      ...
      <Elevation0Color>0x71A65C</Elevation0Color>
      <Elevation1000Color>0x259C7E</Elevation1000Color>
      <Elevation2000Color>0x53D8EE</Elevation2000Color>
      <Elevation3000Color>yellow</Elevation3000Color>
      <Elevation4000Color>red</Elevation4000Color>
      <Elevation5000Color>red</Elevation5000Color>
      ...
 
Good idea! That's an approach I hadn't considered for some reason... :eek:
 
the only problem of this approach is the flickering between 2 maps at the transition

Well, there is that, and the fact that the "calibration" is rather gross (1k foot increments)...

To obtain a more smooth transition, a whole lot more <Element>s would be required, at say 100' increments! :eek:
 
Well, there is that, and the fact that the "calibration" is rather gross (1k foot increments)...

To obtain a more smooth transition, a whole lot more <Element>s would be required, at say 100' increments!
:(

I am currently working on an update to the FSX RADAR. The existing default colours for elevations are far too BRIGHT, so I have found it necessary to tone them down significantly.

Changing the colors is not an issue, that seems to work fine. Creating a better Color vs Altitude data set is a little more challenging.

My Data Set MK I

I am not changing color as a function of the Aircraft altitude, but maybe YOU could "calculate" the color for each 1000ft Parameter, using a Macro for each 1000ft Color parameter ?

If in fact this would work, you might be able to just change ONE 1000ft Color parameter at a time, as the aircraft changes altitude, and thus lessen the JUMP in all Colours as the plane passes through altitude "layers" of as small as (1000/17 ft).

ie. As the plane climbs every 1000ft, each of the 17 layer will change their color sequentially. This might give a far more pleasing, and less abruptly changing display of elevation.


fsx_terrain1.png


Geoff
 
Last edited:
There are actually potentially far for than the 17 * 1000ft colours.

The colours are blended by the map between each 1000ft layers.

ie If 1000ft layer is BLACK 0x000000 and 2000ft layer is WHITE 0xFFFFFF, then the elevation between 1000ft & 2000ft will be a Gray scale.

It looks like each of the RGB color bytes has a resolution of 0x08 (approx ?).
( does not appear to be EXACTLY 8 bytes ???)

So between 1000ft & 2000ft there can be quite a significant number of different colours.

greyscale.png
 
The RGB range is 0x000000 to 0xFFFFFF (256^3 possibilities?)
 
The RGB range is 0x000000 to 0xFFFFFF (256^3 possibilities?)

Correct, in selecting a RGB colour, there are 256^3 possibilities :)-- but

The Interpolation that the GPS dll does, between the 18 x 1000ft layers ( 0 - 18,000ft), is done with a resolution of (of approx) 8 bits. So, there are in fact ,less possible values displayable.

I say APPROX, because when I checked with a 1000ft = 0xFFFFFF and 2000ft = 0x000000, and took a screen shot, and examined the colors (grey Scale ), and they seems to be changing in approx 8 bit resolution, but not quite

ie Something like : 0, 8, 16, 23, 31, 38 ( not 0, 8, 16, 24, 32, 40 .. )

Maybe its a Floating point Maths thing, or its like 30 levels for each of the R, G, B colors (not 32). (or every 10 meters ???)

Anyway, my point is that when you set the 1000ft Boundary values to specific colours, P3D Interpolates colours between those defined 1000ft levels, to give a far smoother color transition, as one moves through each of the 1000ft bands.
===========

Getting back to the original post, this would mean that one could have a plane flying at altitude X, and display terrian below that aircrft down to (say) X-1000ft, in MANY colours.

See the Grey Scale map in the previous post. It is showing elevation from 0 to 1000ft, and you can certainly see a lot of detail in the elevation.

BTW: I saw on Avsim in the past few weeeks, some developer has released a TERRAIN DISPLAY, that appears to take advantage of this interpolation, to show details of the Terrian around the Aircraft, which is, I think, was what the original Author of this post was talking about.


If a way was found to Change these 1000ft layer colours, without causing display flicker, and by dynamically CALCULATING these values in real time, based on airacft height etc, then a very smooth and detailed colour display could be generated, showing Terrian around an aircraft, with very high resolution for altitudes within a specified Maximum deviation from the Aircraft altitude. Could be VERY COOL :idea:Geoff
 
BTW: I saw on Avsim in the past few weeeks, some developer has released a TERRAIN DISPLAY, that appears to take advantage of this interpolation, to show details of the Terrian around the Aircraft, which is, I think, was what the original Author of this post was talking about.


Again, digging up an old post, but does anyone know of this gauge he speaks of. If it is in XML, I would like to have a look under the hood.

I looking in the file library section, and found nothing. However I am assuming the said developer probably didn't release as freeware :(
 
That would be interesting to see..

When I first worked on the fs9gps several years ago, making a basic MFD screen, I was totally amazed at the code for it. I never realised how complex the GPS system was in FS. The shear amount of work it does in creating the maps, flight plans, waypoints, menu's, etc, is amazing.

I hope you find what you are looking for Daniel. Its beginning to sound like only altitude jumps of 1,000 feet is possible.

Why cant you have a gap of 1 foot to keep the flickering from happening?


Bill
 
Back
Top