gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > gfx2gba mode4??

#3896 - tHe_pUnK - Wed Mar 12, 2003 7:29 am

I'm having a problem using gfx2gba with mode 4. I've tried saving my picture as .bmp, .tga, .pcx, .png and .xcf they convert fine with most of those picture types but when i run the binary i get a sliced picture that only shows certain corners of the original pic. I've checked my source with a tutorial's image source and it displays fine, so i know it's not that.

At this point i just want something that works. If someone knows certain params to output for mode4 usage with gfx2gba that would help. OR if someone knows of another program to convert images in linux that will do mode4 that would work. - tHe_pUnK

#3900 - krozen - Wed Mar 12, 2003 1:09 pm

I had the same problem. You need to strip the sprite first. THere is another post in reply to a message I posted on the same question. A helpful sprite stripper tool was posted there too! U should try and find it. I think its in this section of the forum

#3901 - Lord Graga - Wed Mar 12, 2003 2:39 pm

No, that is not hwo it works!
Mode 4 is in full "strips", not 8x8 blocks, and that is why it srews your game up.

I goes like this:
000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017...
239 240 241 242 243 245 246 247 248 249 250 251 252 253 254 255 256 257...

#3912 - Saj - Wed Mar 12, 2003 7:13 pm

It sounds like it's only displaying a quarter or less (8 x 8) of your sprite :(

Anyways, try comparing your_sprite.h with tutorial_sprite.h and check for differences.

The utility that works for me is PCX2GBA (the Dovoto one), but it's a DOS program :(

#3914 - Lord Graga - Wed Mar 12, 2003 7:25 pm

He isn't makin sprites, he is making a picture to be displayed on the BG.