| View previous topic :: View next topic |
| Author |
Message |
picobsd
Joined: 19 Apr 2007 Posts: 18
|
Posted: Tue Jul 31, 2007 12:36 pm Post subject: How to make psp display transparent? |
|
|
| 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 |
|
 |
ufoz
Joined: 10 Nov 2005 Posts: 86 Location: Tokyo
|
Posted: Tue Jul 31, 2007 1:41 pm Post subject: |
|
|
| the alpha channel is ignored in the framebuffer. If you need transparency, use a texture and turn on blending. |
|
| Back to top |
|
 |
picobsd
Joined: 19 Apr 2007 Posts: 18
|
Posted: Tue Jul 31, 2007 4:12 pm Post subject: |
|
|
| 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 |
|
 |
ufoz
Joined: 10 Nov 2005 Posts: 86 Location: Tokyo
|
Posted: Tue Jul 31, 2007 7:53 pm Post subject: |
|
|
| 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 |
|
 |
|