| View previous topic :: View next topic |
| Author |
Message |
lakan
Joined: 30 Nov 2007 Posts: 3
|
Posted: Fri Nov 30, 2007 11:05 pm Post subject: Draw transparent image to screen |
|
|
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 |
|
 |
Team-3GO
Joined: 21 Nov 2007 Posts: 17 Location: PSP-Development
|
Posted: Sat Dec 01, 2007 1:40 am Post subject: |
|
|
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 |
|
 |
lakan
Joined: 30 Nov 2007 Posts: 3
|
Posted: Sat Dec 01, 2007 1:49 am Post subject: |
|
|
| Team-3GO wrote: | | just make a png with transparent background and cut the green away. ;) |
And "transparent background" is? |
|
| Back to top |
|
 |
2.6,CRACKED!
Joined: 26 Jul 2007 Posts: 18
|
Posted: Sat Dec 01, 2007 3:25 am Post subject: |
|
|
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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sun Dec 02, 2007 9:43 am Post subject: |
|
|
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 |
|
 |
|