Ah, thank you very much, it works now :3elhobbs wrote:GL_RGBA is 15 bit rgb + 1 bit alpha channel(which is in bit 15). you are forcing all of the pixels in the source image to solid in you for loop.
Search found 3 matches
- Mon Jan 02, 2012 6:30 am
- Forum: DS/DSi Development
- Topic: Why isn't my alpha blending working?
- Replies: 2
- Views: 4542
Re: Why isn't my alpha blending working?
- Mon Jan 02, 2012 6:14 am
- Forum: DS/DSi Development
- Topic: Billboarding woes
- Replies: 0
- Views: 4170
Billboarding woes
Can anyone tell me why this code isn't working? The quad just doesn't show up at all... void drawBillboardedSprite(){ glPushMatrix(); int modelview[16]; int position[16]; int projection[16]; glGetInt(GL_GET_MATRIX_POSITION, position); glGetInt(GL_GET_MATRIX_PROJECTION, projection); for (int x = 0; x...
- Sun Jan 01, 2012 12:26 pm
- Forum: DS/DSi Development
- Topic: Why isn't my alpha blending working?
- Replies: 2
- Views: 4542
Why isn't my alpha blending working?
So I'm trying to make it so I can have sprites billboarded like doom, and the first step is getting them to show up without a background. So for example, I want to ether make it so the texture uses it's own alpha channel, or make it so a color like magenta is turned into transparent. I've written th...