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 

[Solved] Oslib 8bit image limit

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



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Mon Jul 06, 2009 10:29 pm    Post subject: [Solved] Oslib 8bit image limit Reply with quote

I created some realy cool effects with transperented PNG format pictures, but get problems with transperent layer. I am using oslib to blit those images.
As I understand it support only 8bit images? How to brake this limits ?

Have to be:


There is (8bit i think):

_________________

Cooming Soon


Last edited by Pihas on Tue Jul 07, 2009 6:36 am; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Jul 07, 2009 1:38 am    Post subject: Reply with quote

Dont use 8 bit.

i always use OSL_PF_8888. this one is 32 bit and does support alpha.

8bit doesn't support alpha.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Tue Jul 07, 2009 2:27 am    Post subject: Reply with quote

look at the pages where OSL_PF_'s are defined and it will tell you how many bits per value the more alpha and bits per color the better the color
Back to top
View user's profile Send private message MSN Messenger
Pihas



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Tue Jul 07, 2009 6:35 am    Post subject: Reply with quote

Thx for fast answer :-)
_________________

Cooming Soon
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