#193 - darkcloud - Sun Jan 05, 2003 1:51 am
How can I change modes while the ROM is running? (I.E. displaying an image in Mode 4, then switch to Mode 2 to do tile maps and stuff)
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.
#194 - sgeos - Sun Jan 05, 2003 2:09 am
I'd try one of these:
1) put the pixmap image in vram
2) wait for vblank
3) put the tilemap to vram and set dispcnt
OR
1) put the pixmap image in vram
2) put the tilemap in wram
3) wait for vblank
4) copy the tilemap to vram and set dispcnt
-Brendan
#203 - darkcloud - Sun Jan 05, 2003 3:56 am
Can you use sprites in the bitmap modes?
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.
#210 - sgeos - Sun Jan 05, 2003 4:35 am
darkcloud wrote: |
Can you use sprites in the bitmap modes? |
Yes, you can. I do not use bitmap modes, but I understand that depending on the mode, it uses some of the VRAM that is also used for sprites. Because of this, you can only use half of the sprites- the second half. That is sprite[64] to sprite[127] if I am correct. Take this all with a grain of salt as I do not use bitmap modes.
-Brendan
#212 - darkcloud - Sun Jan 05, 2003 4:49 am
Does that mean I have to also copy my sprite data farther down in the oam memory? And will i also have to set my attribute 2 to 512 or higher?
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.
#222 - sgeos - Sun Jan 05, 2003 6:01 am
darkcloud wrote: |
Does that mean I have to also copy my sprite data farther down in the oam memory? And will i also have to set my attribute 2 to 512 or higher? |
Let's see... looking at the memory map and some info on VRAM:
http://www.work.de/nocash/gbatek.htm#memorymap
http://www.work.de/nocash/gbatek.htm#lcdvramoverview
It looks like your sprite tile data needs to start from 0x6014000. Yes, I think you need to set your character number to 512 or higher.
-Brendan
#224 - darkcloud - Sun Jan 05, 2003 6:45 am
Ok, thanks for all the help, really appreciate it.
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.
#230 - Psyk - Sun Jan 05, 2003 10:28 am
A while ago i tried using a sprite in a bitmap mode so that would explain why it didnt work. I just assumed it had to be in a tile mode.