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 

Why the 512 limit on images

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



Joined: 21 Dec 2005
Posts: 1

PostPosted: Wed Dec 21, 2005 3:07 pm    Post subject: Why the 512 limit on images Reply with quote

Im just curious, why are image dimentions limited to 512x512?
Back to top
View user's profile Send private message
NovaCaine



Joined: 20 Dec 2005
Posts: 34
Location: New Zealand

PostPosted: Wed Dec 21, 2005 3:11 pm    Post subject: Reply with quote

my guess would be memory constraints...
Back to top
View user's profile Send private message Visit poster's website
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed Dec 21, 2005 4:09 pm    Post subject: Reply with quote

sceGuTexImage seems to have problems with images bigger than 512x512. The only way around this that I could see is to specify a smaller image to sceGuTexImage, with the appropriate memaligned x/y offset.

SDL compensates for images greater than 512x512 at the cost of some extra complexity. LuaPlayer probably doesn't workaround the limitation for the sake of simplicity.
Back to top
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Wed Dec 21, 2005 6:40 pm    Post subject: Reply with quote

The hardware does not support textures wider than 2^9 (512). You can of course do as rinco suggests and wrap this in multiple passes with a shifting base-address and a buffer-width that skips unneeded parts of the texture.
_________________
GE Dominator
Back to top
View user's profile Send private message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Wed Apr 25, 2007 5:16 am    Post subject: Reply with quote

I'm trying to do this but I've got a problem: the texture block width (third argument to sceGuTexImage) can't be larger than 1024 (else it will be clamped to 1024, or if it's greater than 2048 it will be wrapped), so it is impossible to draw textures larger than 1024xsomething, right?
Do you have any idea to improve that? Thanks :)
_________________
Sorry for my bad english
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
Altair



Joined: 20 May 2006
Posts: 76
Location: The Netherlands

PostPosted: Thu Apr 26, 2007 2:48 am    Post subject: Reply with quote

That limit is only for png's. JPG's can be larger, but I don't know what the limit on them is, my biggest image I've blitted is 1000x1000.
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Fri May 04, 2007 8:00 am    Post subject: Reply with quote

chp wrote:
The hardware does not support textures wider than 2^9 (512).


You should listen to chip.
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 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