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

Gauge upper graphics transparency?

Messages
10,163
Country
us-arizona
Hey guys,

Ok, I have never tried this, and would like to know, if its possible to have a semi-transparent top layer over the gauges (2D Gauge) that would have a dark edge on it?

The idea is to have a GPS screen have dark edges in the monitor around the sides. I can replicate this at night with a light map, but not during the day. I would like to have this feature in the day time.

Can one have such a thing? Perhaps via a Alpha channel?



Bill
 
I also am not sure what you are trying to achieve with dark edges around the screen, but I have used the <Transparency> tag with poly shapes before. 0 is solid color, and 1 is fully transparent.

I use this technique to create a dimmer function for my glass screens. Along with a <Update> condition that checks the time of day, I even have done a auto-dimmer function. Basically, I make a <Rectangle> the full size of the screen, and adjust the transparency as needed.

Should note, the transparency is not dynamic, it is set at load time. I used multiple rectangles and evaluated the <visible>.
 
Hey Daniel,

That is brilliant! I had never thought of that.

Mine was for use of graphics, such as a top later for a round gauge that had a back shot view of the cockpit (reflection) and set that to transparent so the needle had the reflection 'effect' going on also.

On the screens, during the day, I like the dark-ish edges on them. I can do that at night with lightmaps, leaving the edges darkened.

This screenshot shows what I mean.


lionheart_dynamic_38-1051x660.jpg
 
Ah, I get what you are trying to accomplish now.

Unfortunately, I have zero experience with the 3d side of things. My gauges are 2d only!

Sometime I would love to learn to model a 3d panel to incorporate my gauges in, but I don't have a very artistic mind.
 
Hey Daniel,

Mine is still a 2D gauge. I have only projected it onto a 3D object. Still totally 2D. Note the darkish edge. I did that with a lightmap, making the center of the light zone in that rectangle brightest, and illuminating keys and fonts elsewhere.

It would be nice to be able to layer a graphic top layer that has say 20% opacity where a reflection or darkening over the edges (only the edges, with a blending going on) for a bit more realism.

Your tactic with a darkened rectangle is brilliant!
 
I have in the past played around with bitmaps with an alpha channel. I used them to make shadowed background on certain parts of the screen, before discovering the semi transparent poly shapes.

Different values of gray in these bitmaps represent different amounts of transparency, so it should be possible to use a gradient from the edge to accomplish what you are trying. I would be concerned about the resolution being to low to achieve a smooth transition however ( both the pixel resolution and the color resolution could be an issue).

I don't remember the specifics with these alpha channel bitmaps, but the sdk has info on them. There is even a conversion tool included.

My EFD1000 gauge ( available on simviation and avsim ) uses a few of them, look for the bitmaps with "shadow" in the file name. It also uses the dimmer feature I mentioned.
 
By the way, the image converter is buried in SDK\Enviroment Kit\Terrain SDK\ImageTool.exe

You have my interest peaked now, so I am trying out a gradient mask to see how well it works.
 
OK, I has some surprising success with my experiment.

6giuya.jpg


Obviously you would gradient all 4 edges, this was just a proof of concept. I actually thought it was gong to be proof it didn't work very well.

Let me give you a step by step of what I did. I won't go into great detail, please let me know if you need more detail.

Create a image in Photoshop the size of the screen you wish to darken the edges on. (for some reason this doesn't work with gimp, the conversion tool later doesn't like the gimp PSD format)

Fill the current (RGB) channel with #000000 (black), because this channel with be transparent.

Create an alpha channel, little button on the bottom of the channels toolbox.

The RGB channel is now hidden, leaving you to work on the Alpha1 channel. Here is where you create your gradients. White in this channel will be opaque while pure black is 100% transparent. My example about is a gradient from #c0c0c0 to #000000. Turning on the RGB channel will give you an idea of how things will look, just remember to shut it off before making changes.

Save this file as a PSD, and open the ImageTool pointed out earlier to open the file. Choose the Make Gauge w/ Alpha option from the image menu. This will create a bmp file with the same name in the same location.

Apply this file over your screen, with the <alpha> flag set to true, and enjoy.

Let me know how it works out for you.
 
Back
Top