September 15, 200916 yr 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.
September 15, 200916 yr 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
September 15, 200916 yr 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
September 16, 200916 yr 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.And i still get those horrible jaggy things, even with the AA on when using the Polygonal Lasso tool.
September 16, 200916 yr 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
September 16, 200916 yr 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
Create an account or sign in to comment