Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

changing the XML .bmp image transparent colour.

Featured Replies

Hi Everyone,Is there anyway of changing the XML .bmp image transparent colour so that flight sim can see it's a transparent colour, or is just coded to be black?As i'm having difficulty getting rid of the black jaggies around my Yoke, that only appears in the sim, but isn't like that on .psd file.Regards,Richard.

  • Moderator
Is there anyway of changing the XML .bmp image transparent colour so that flight sim can see it's a transparent colour, or is just coded to be black?As i'm having difficulty getting rid of the black jaggies around my Yoke, that only appears in the sim, but isn't like that on .psd file.
No. Triple-Zero (RGB:0,0,0) is the only value for transparency.One method you might try would be to use the "magic wand" in Photoshop (or equivalent) to select all pure black pixels (be sure that antialising is turned OFF), then floodfill the selected pixels with some color that is NOT in your yoke (such as pure red) so that you can actually SEE them...Then, zoom in very close and carefully replace any non-red pixels along the border that you wish to be fully transparent with the pencil tool set to one pixel.Save your work so far, then select all pure red pixels with the "magic wand" (set to zero tolerance, no antialiasing, contiguous) and floodfill the selected pixels with pure black (RGB:0,0,0). Export to .BMP and check the results in the sim.You may still need to stomp out some rogue pixels one at a time by hand, but the above process should have remove most of the pesky critters! :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Thanks very much for the reply Fr Bill. :)

  • Commercial Member

My guess, Richard, is that you cut the yoke from a photograph using either anti-aliasing or feathered edges on whichever tool you used to do the dirty deed. In this case, FS will interpret all all-antialiasing/feathering pixels as black because it cannot deal with semi-transparent pixels.-Dai

  • Author

Cheers for that Dai.

  • Author

I thought i would show you my cut out of the yoke. I mean the cut out is pretty smooth. I guess i forgot to mention that.myyokeinphotoshop.jpgAnd i still get those horrible jaggy things, even with the AA on when using the Polygonal Lasso tool.

  • Commercial Member

Unfortunately that's the problem - AA produces semi-transparent pixels in PS (or PSP). You need AA checked off and feather set to zero; yes, you do get jagged edges close-up but removing the AA pixels (which you are doing now) gives the same end effect as AA off and no feather to start with. A PITA because it means that moving bitmaps will never blend with the background. It's a different story with GDI but I'm not enthusiastic enough to draw a complete yoke and calculate all the necessary transformations for GDI!-Dai

  • Author

Oh right, cheers Dai. :)

  • Moderator

As a "last resort," convert the bitmap to 8bit Indexed format. This will totally eliminate the semi-transparent pixels. Keep in mind that when rendered to screen, all 2d artwork is converted to 8bits anyway... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

oh right, cheers for that Fr. Bill.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.