forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspgl blending

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Thu Sep 08, 2005 2:55 am    Post subject: pspgl blending Reply with quote

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
View user's profile Send private message
jsgf



Joined: 12 Jul 2005
Posts: 254

PostPosted: Sun Sep 11, 2005 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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