 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Koba
Joined: 29 Sep 2005 Posts: 59
|
Posted: Thu Jan 26, 2006 6:27 am Post subject: distorted image |
|
|
hey, i tryed blitting an image to the screen, its 460x100, and all it is, is white text, with a black border, its a png image, and when i blitted the image to the screen, it was all smunched and green, has anyone been able to fix this? kuz i've try resizing the image and everything, all my other images work just fine, but not this one... maybe because it only has shades and not any colors? (its black white and gray only) i'm not sure.
oh, and how far is the progress on allowing images bigger than 512x512? kuz if i made a sidescroller, or an entire map, i can't use it kuz luaplayer doesn't allow it... or can a put images side by side farther than 512? |
|
| Back to top |
|
 |
ShUr1k3n
Joined: 16 Oct 2005 Posts: 42
|
Posted: Thu Jan 26, 2006 7:29 am Post subject: |
|
|
Just check the Palette of that image...
I think that the problem is that...
Regards,
ShUr1k3n |
|
| Back to top |
|
 |
fullerlee
Joined: 03 Nov 2005 Posts: 54
|
Posted: Thu Jan 26, 2006 7:45 am Post subject: |
|
|
As far as I know, the 512x512 limit still exists.
There's no reason why you wouldn't be able to tile images programmatically though, and I imagine that would perform better anyway.
Lee |
|
| Back to top |
|
 |
Koba
Joined: 29 Sep 2005 Posts: 59
|
Posted: Thu Jan 26, 2006 12:23 pm Post subject: |
|
|
| hmmm this sucks, the intro of my game gets a mikmod error saying it is out of memory... this is why i suggested a gif or somthing for luaplayer, so we didn't have to put 2 billion png's into the programs and animate it... any ideas? |
|
| Back to top |
|
 |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Thu Jan 26, 2006 1:32 pm Post subject: |
|
|
you cant animate, however, you can use a single PNG image, then blit certain parts of it.
screen:blit(x,y,image,beginx,beginy,endx,endy)
beginx and y is the pixels you start at, and endx and y is where you end.
IE:
screen:blit(10,10,someimage,50,50,55,55)
would use from 50,50 to 55,55 of the PNG. |
|
| Back to top |
|
 |
|
|
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
|