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 

Draw transparent image to screen

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



Joined: 30 Nov 2007
Posts: 3

PostPosted: Fri Nov 30, 2007 11:05 pm    Post subject: Draw transparent image to screen Reply with quote

This is my first post on this forum, so hello everyone :)

I'm writing a game for the PSP, and I need to draw a image with a transparent color.
I want to draw brian, but the green color should just be skipped

http://img266.imageshack.us/img266/1777/briantq2.png

I followed a tutorial that showed me a simple draw function. Is there any other (better) way?

blitAlphaImageToScreen(0, 0,91 ,92, ball.image, ball.x, ball.y);
Back to top
View user's profile Send private message
Team-3GO



Joined: 21 Nov 2007
Posts: 17
Location: PSP-Development

PostPosted: Sat Dec 01, 2007 1:40 am    Post subject: Reply with quote

just make a png with transparent background and cut the green away. ;)
_________________
"Ignorance is the night of the mind, but a night without moon and star."
Back to top
View user's profile Send private message
lakan



Joined: 30 Nov 2007
Posts: 3

PostPosted: Sat Dec 01, 2007 1:49 am    Post subject: Reply with quote

Team-3GO wrote:
just make a png with transparent background and cut the green away. ;)


And "transparent background" is?
Back to top
View user's profile Send private message
2.6,CRACKED!



Joined: 26 Jul 2007
Posts: 18

PostPosted: Sat Dec 01, 2007 3:25 am    Post subject: Reply with quote

on photoshop, the eraser tool will make it transparent. or gimp or anything decent which isn't paint.

I assume there is an animation as single images for walking look primitive... Anywho i done the first for you. Enjoy

Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sun Dec 02, 2007 9:43 am    Post subject: Reply with quote

as long as you save your textures to have an alpha
channel (4bit or 8bit) then you should have no problem
calling the blending functions
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
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