• 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 Semi-transparent rectangle

Messages
206
Country
unitedkingdom
Ok, I can do this:
Code:
<Element>
<Visible>(L:CRT2, enum) 5 ==</Visible>
<Rectangle Width="401" Height="401" FillColor="black" Transparency="0.9" />
</Element>
-> Gives a semi transparent rectangle but ONLY if there is a background image in that gauge. What if I need that semi-transparent surface to be effectively 'in space' on it's own with no background. It seems to just not draw, why?

Cheers,
Geoff
 
Ok, I can do this:
Code:
<Element>
<Visible>(L:CRT2, enum) 5 ==</Visible>
<Rectangle Width="401" Height="401" FillColor="black" Transparency="0.9" />
</Element>
-> Gives a semi transparent rectangle but ONLY if there is a background image in that gauge. What if I need that semi-transparent surface to be effectively 'in space' on it's own with no background. It seems to just not draw, why?

Cheers,
Geoff

Still not found a way into this problem. The reason for wanting a free-standing translucent box is to provide a dimmer function for a gauge that I cannot edit (I'm using a 3rd party ND screen in one of my 6 CRT places). For other reasons, I have a two- layer main panel already, so it should be possible to have the dimmer texture I'm the above layer?? Surely then it will draw over the lower layer... Works for just about everything else!

Additionally I tried placing a bitmap underneath with one pixel of a visible colour and the rest at RGB 0,0,0 in the hope of tricking it into making a translucent box. It must be possible to make a semi-transparent shape in FS9 - there are HUD gauges around after all! - so how is it done?

Cheers,
Geoff
 
All I know is that FS doesn't do well with 'stacking' gauges on one another when dynamic elements are involved. FS tends to display the last thing that moved or changed on top and obscures what is behind it, or sometimes you get strange flickering. I am sure someone knows more about what is technically at play here.

I am just thinking back to when I was dealing with adding night lit text to a panel and how much the gear handle interfered with the text that was behind the bit map and how even the transparent part of the bit map would cause rendering problems for the lighted text that was part of a separate gauge behind it.
 
Yeah, everywhere I look it seems that if you're going to overlay something you need to do it completely (ie. solid filled) or forget it!
Perhaps what I need to do is forget about getting this to actually work and just draw a little "INOP" sticker next to the CRT brightness controller button associated with that gauge :D (need to make some for the ADF2 buttons anyway)

Geoff
 
Hey Geoff,

I guess you are making a HUD of some sort, that will be in the air, see through, on a Polygon assembly.

I have something similar, but not with a tinting rectangle. But.... My HUD (in FS9 technology) goes black at night, but is fine during the day.

* Make sure the rectangle is on the bottom of the stack of Elements
* Make sure the code is correct. Maybe you have a mis-spelling. That 'can' happen. Try taking the space out of , and enum. Try everything. Note, colors usually start with a Capital letter, so that should be 'Black' and not 'black'. Try also a Hex color if that doesnt help.
* Make sure you have a visible section which I am sure you do if this is a conditional Element.
 
Um, Bill. It seems you missed this rather critical bit of detail:

for a gauge that I cannot edit

Otherwise, it's an excellent answer! ;)
 
I guess the hard way to make it work would be to rebuild the gauge and include your dimming function. The benefit of course would be that you could customize it further to your liking. The downside is all the extra work. The inop sticker solves the problem too!
 
I guess the hard way to make it work would be to rebuild the gauge and include your dimming function. The benefit of course would be that you could customize it further to your liking. The downside is all the extra work. The inop sticker solves the problem too!

Yeah, rebuilding the ND (and also then the FMS) is totally out of my league though. Otherwise yes, that would be the way to go...
The same dimmer function works perfectly on the EICAS and PFD screens, where the rectangle overlays the gauge graphics in the gauge itself. I had hopes that making a semi-transparent rectangle with a background image containing just the corner points (otherwise RGB000) would 'trick' FS into drawing the whole rectangle, however, it does not seem to work!

Geoff
 
Ah, yeah... and ND with a connect FMC is definitely a whole other realm. Great idea though. I often find myself trying to trick FS (and I often find FS wins!):D
 
Back
Top