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.

Beginners > Image

#49796 - NighTiger - Tue Aug 02, 2005 4:49 pm

How can I make a raw data file from an image and link it at the gba rom?

#49799 - QuantumDoja - Tue Aug 02, 2005 5:20 pm

There are a load of really cool tools available here on this site:

http://www.gbadev.org/tools.php?section=gfx

Basically get an image, process it though one of the tools...that sould give you some code, usually in a header (.h) file that you can include/link when you build your project.
_________________
Chris Davis

#49882 - NighTiger - Wed Aug 03, 2005 7:19 am

Maybe I did write something wrong :)

I don't want a header file.

I would like to make a raw data from an image, so I can link the raw data directly in the gba program

#49961 - Miked0801 - Thu Aug 04, 2005 12:11 am

ObjCopy? Or is there a different utility? Not sure here.

#49965 - headspin - Thu Aug 04, 2005 12:29 am

gfx2gba will output raw data, check that link above
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#50198 - NighTiger - Sat Aug 06, 2005 2:18 pm

okkey for gfx2gba, but after that how can I use the file?
tnx

#50200 - tepples - Sat Aug 06, 2005 3:00 pm

Once you have a raw tile data file, you could try using a tile editor such as 8TED or Tile Molester to make sure that the data got out in one piece. Then you can include it into your .gba file using bin2s to convert it to assembly language (*.s) code that you can link into your program just like any other source code file, or you can use GBFS to put it in an archive data structure to be appended to the ROM. Both GBFS and bin2s should be in the latest devkitARM; otherwise you can grab them here.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#50274 - NighTiger - Sun Aug 07, 2005 12:35 pm

Tnx tepples,
but where can I find a tutorial step-by-step to convert the data (sound/image etc) in binary and link that in a gba file?
Because I couldn't do that

#50282 - tepples - Sun Aug 07, 2005 2:17 pm

Headspin's guide explains how to use GBFS.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#50332 - NighTiger - Mon Aug 08, 2005 8:00 am

tnx tepples...
hei tepples isn't a good idea make a topic with all the most important link with a little explaination about the most important tutorial on it?

like

www.pippo.it (tutorial about sprites)

anyway... I didn't find the tutorial to make, link and use a raw data :-\