| View previous topic :: View next topic |
| Author |
Message |
Gbox
Joined: 21 Dec 2005 Posts: 1
|
Posted: Wed Dec 21, 2005 3:07 pm Post subject: Why the 512 limit on images |
|
|
| Im just curious, why are image dimentions limited to 512x512? |
|
| Back to top |
|
 |
NovaCaine
Joined: 20 Dec 2005 Posts: 34 Location: New Zealand
|
Posted: Wed Dec 21, 2005 3:11 pm Post subject: |
|
|
| my guess would be memory constraints... |
|
| Back to top |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Wed Dec 21, 2005 4:09 pm Post subject: |
|
|
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 |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Wed Dec 21, 2005 6:40 pm Post subject: |
|
|
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 |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Wed Apr 25, 2007 5:16 am Post subject: |
|
|
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 |
|
 |
Altair
Joined: 20 May 2006 Posts: 76 Location: The Netherlands
|
Posted: Thu Apr 26, 2007 2:48 am Post subject: |
|
|
| 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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Fri May 04, 2007 8:00 am Post subject: |
|
|
| chp wrote: | | The hardware does not support textures wider than 2^9 (512). |
You should listen to chip. |
|
| Back to top |
|
 |
|