How to make psp display transparent?

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

Moderators: cheriff, TyRaNiD

Post Reply
picobsd
Posts: 18
Joined: Thu Apr 19, 2007 7:24 pm

How to make psp display transparent?

Post by picobsd »

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)
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

the alpha channel is ignored in the framebuffer. If you need transparency, use a texture and turn on blending.
picobsd
Posts: 18
Joined: Thu Apr 19, 2007 7:24 pm

Post by picobsd »

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.
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

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