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.

alpha blending

Featured Replies

Is it possible at all to alpha blend textures in C code? I know it works with xml gauges, but IMAGE_USE_ALPHA seems to only work for luminous maps. I tried using an alpha channel, but it didn't have any effect. It would sure be nice to have semi-transparency in C code also...Cheers, Christian

There has been a thread dealing with exactly this quite recently. You might find it on page 2 or 3 or just do a search.The bitmap has to be in the 4-4-4 format with alpha channel which can be achieved by using tools like ImageTool and DXTBmp.Only then then IMAGE_USE_ALPHA flag will work.The only downside seems to be the only four bit alpha channel (=> color bleeding).

Thanks. I must be blind then, or the search function doesn't work very well, as I did a search on 'alpha' before posting, but nothing relevant popped up. I'll have a browse...Cheers, Christian

The pseudo BMP alpha is a blast from the past, and is one confusing issue because of a novel, yet unorthodox encoding of BMP files.There is another thread somewhere, but the gist is this: GDI+ is what you want. You can use its compositing modes to render layered and complex objects. You can use a FS encoded BMP file as the background, including using the IMG_USE_TRANSPARENT etc, flags as normal, then use the composite effects and image manipulation of the bitmap class (lookup the win32 platform SDK). Once you get a graphics object, the sky is the limit...

Thanks. I found both threads now and found them helpful.However, to put a different spin on things, I'm toying with the idea of scrapping the whole MS way anyway and implement a opengl renderer in the main callback. This should give me the flexiblity I want (I could go DX also, but I'm familiar with opengl, whereas I'm not fimiliar with dx). I'll finish what I'm currently doing, and then add a basic profiler and add a gl renderer and see how this will affect framerates. Not using the standard macros and callbacks should be a good thing, I suspect...Cheers, Christian

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.