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 

How to make psp display transparent?

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



Joined: 19 Apr 2007
Posts: 18

PostPosted: Tue Jul 31, 2007 12:36 pm    Post subject: How to make psp display transparent? Reply with quote

my display mode is 8888, So a pixel's size in this mode is four bytes, the highest order byte is alpha byte, and I try to set this byte to zero to make current display transparent , but it doesn't work ,why? (I wrote Vram 0x44000000 directly)
Back to top
View user's profile Send private message
ufoz



Joined: 10 Nov 2005
Posts: 86
Location: Tokyo

PostPosted: Tue Jul 31, 2007 1:41 pm    Post subject: Reply with quote

the alpha channel is ignored in the framebuffer. If you need transparency, use a texture and turn on blending.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
picobsd



Joined: 19 Apr 2007
Posts: 18

PostPosted: Tue Jul 31, 2007 4:12 pm    Post subject: Reply with quote

ufoz wrote:
the alpha channel is ignored in the framebuffer. If you need transparency, use a texture and turn on blending.


oh, must I use sceGuxxxx ?
I know little about that, my program use pg, a primitive graphic interface wrote by me, it access Vram directly.
Back to top
View user's profile Send private message
ufoz



Joined: 10 Nov 2005
Posts: 86
Location: Tokyo

PostPosted: Tue Jul 31, 2007 7:53 pm    Post subject: Reply with quote

Well, if you want to write to the framebuffer directly like that, you'll have to do the alpha calculations yourself, ie. interpolate between the pixel color and your background color when copying over the image...
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
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