• 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 background bitmap

Messages
70
Country
unitedkingdom
Hey folks,

Could someone look a the following background bitmap for me? I can not get it to display when I compile my project. The only thing I can think of is that I have done something wrong with the file, as other gauges are working as expected.
If anyone got it to display could you tell me how it was done so that I can avoid the issue with further developments.
I can only see the needles:
http://prntscr.com/i4t7cg
I have attached the image to the post.

Kind regards
Daniel
 
RGB(0,0,0) is not displayed as black in a gauge bitmap, it is treated as transparent, while RGB(1,1,1) is used for masking images.
If you want something to display as black, use something like RGB(2,2,2) or RGB(1,0,0)
 
I thought that myself so I changed the background. I basically took my RPM_background image and made the modifications so now it looks like this
http://prntscr.com/i4yl92
(it is much better then my previous attempt lol)
But it does not display in the simulator.
I then thought to myself have i don't something wrong in the recourse file, but that is pointing to the correct image and the name is correct.
http://prntscr.com/i4yn7y

I have also checked my header file
Code:
/////////////////////////////////////////////////////////////////////////////
//
// Engine Oil/PSI Bitmaps
//
#define BMP_OIL_BACKGROUND                    0x1200
#define BMP_OIL_NEEDLE                        0x1201
 
I figured out what i was doing. So even thou I will be embarrassed to say here we go.

After trying to figure out what was going on about 10mins ago I noticed I have two recources files open on my text editor. To my horror I relised the one I was adding stuff to was not the correct file :banghead:
I have promptly removed the naughty file from notepad++ and made the correct changes to the correct file and poof all my problems disappeared :laughing:

My wife is laughing at me so atleast I made her smile today

Daniel
 
An addition to Doug's comment about background black. I use RGB(8,8,8) because that seems to be about as close to black as I can get when converting to 8-bit. Anything below that seems to get chopped to RGB(0,0,0).
 
Back
Top