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.

DS development > *nix DS graphics tools?

#71030 - SeanMon - Fri Feb 10, 2006 1:19 am

Are there quality opensource Linux/Unix graphics tools for the NDS/GBA? I use my Apple, so the binary distribution of gfx2gba will not work. What do you guys recommend?

#71101 - JaJa - Fri Feb 10, 2006 11:07 am

I too use an Apple and want to start developing (well i say start i've been playing with text and the framebuffer).
Unless someone presents something else you'd have to resort to DOSBox.
Otherwise there is raw2c, bmp2bin, bmp2c and bin2s included in Devkitpro. Actually i think bmp2c isn't, i think i found it somewhere (maybe it's DF's?).
The GIMP Scripts (http://www.dspassme.com/programmers_guide/gimpPlugins.tar.bz2) looked promising but i can't find an old enough version of GIMP.
What i really want is PCX2sprite and PCX2gba, but the source doesn't seem to be anywhere.

Also anyone point me to any easy to understand tutorials on creating, converting and using graphics on GBA/DS? I haven't found a single one that explains everything (like what picture format, what size, how many colors, what flags to use with bmp2c, how to use the graphics on the DS (well i've seen tutorials that tell you that)) . Then maybe i can find a way without using these tools.

#71183 - tepples - Fri Feb 10, 2006 9:10 pm

Can you compile a native program that uses the Allegro library? If so, then you could probably recompile my bmp2tiles for use with Mac OS X.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#71305 - JaJa - Sat Feb 11, 2006 8:10 pm

Thanks, that's a start.
Any others that people can suggest?
Allegro should build under OSX (and am trying now)

#71342 - SeanMon - Sun Feb 12, 2006 12:28 am

If you build Allegro from source, you need to run the following in the allegro folder:
Code:

chmod +x fix.sh
./fix.sh macosx
make
sudo make install
sudo make install-manĀ  #optional man pages


tepples: I've installed allegro-4.2.0, and I can build bmp2tiles, but I cannot run it. There is a problem linking it with the library, not a problem with your code (since it compiles cleanly). I'll post info if I can get it working.

edit: is it possible that your code works only with 4.0 and not 4.2.0?


Last edited by SeanMon on Sun Feb 12, 2006 12:32 am; edited 1 time in total

#71343 - tepples - Sun Feb 12, 2006 12:31 am

I haven't yet upgraded to the 4.2 series, which introduced API changes. Have you tried Allegro 4.03, which is what I used?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.