 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Thu Sep 08, 2005 2:55 am Post subject: pspgl blending |
|
|
Has anyone gotten alpha values to work. I'm having a bit of trouble, I'm doing it like this:
| Code: |
//before rendering image
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
//render image
....
glDisable(GL_BLEND);
|
The image, does have alpha and we are passing it into glTexImage2D as glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 64,64, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8,data);
But I dont see the blending. Any ideas, has anyone tested this functionality?
Thanks again
Jeff. |
|
| Back to top |
|
 |
jsgf
Joined: 12 Jul 2005 Posts: 254
|
Posted: Sun Sep 11, 2005 5:31 pm Post subject: |
|
|
| It should work, but there may be bugs. I've got a series of patches at http://goop.org/~jeremy/psp/pspgl/ which improve texture handing (including implementing texture objects), and I can certainly get alpha-blending working properly. Look at the "series" file, which says what patches to apply in what order. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|