pspgl blending

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

pspgl blending

Post by webjeff »

Has anyone gotten alpha values to work. I'm having a bit of trouble, I'm doing it like this:

Code: Select all

//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.
jsgf
Posts: 254
Joined: Tue Jul 12, 2005 11:02 am
Contact:

Post by jsgf »

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.
Post Reply