PF_RGB -> PF_A8 -> GL_ALPHA

BlitzMax Forums/BlitzMax Programming/PF_RGB -> PF_A8 -> GL_ALPHA

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I want to load a pixmap in any format, convert the pixels to an PF_A8 alpha map, based on pixel brightness, and then create a GL_ALPHA texture from that.

Can someone explain how this works? Thank you.


PF_RGBA8888 -> PF_A8 -> GL_ALPHA does work, BTW, so it seems the faulty step is in converting RGB888 and I8 to A8.