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 

distorted image

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



Joined: 29 Sep 2005
Posts: 59

PostPosted: Thu Jan 26, 2006 6:27 am    Post subject: distorted image Reply with quote

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
View user's profile Send private message AIM Address
ShUr1k3n



Joined: 16 Oct 2005
Posts: 42

PostPosted: Thu Jan 26, 2006 7:29 am    Post subject: Reply with quote

Just check the Palette of that image...

I think that the problem is that...

Regards,

ShUr1k3n
Back to top
View user's profile Send private message Send e-mail
fullerlee



Joined: 03 Nov 2005
Posts: 54

PostPosted: Thu Jan 26, 2006 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Thu Jan 26, 2006 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Thu Jan 26, 2006 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player 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