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 > Create sprite with GIMP

#72602 - Peyj - Mon Feb 20, 2006 8:57 am

Hi,

I read in this site :
http://www.dspassme.com/programmers_guide/tutorial/using_sprites.html

That we can export sprite directly with a phyton plug in of gimp. The article says:
"Now, generate the LetA.h and LetA.c files by running the "Python-Fu/NDS/Create Sprites" script from the image manu. A dialog is displayed prompting for information about the sprite being created. Specify the output .c/.h file as ../arm9/LetA"

I'd like to know how can we have this plug in ? Does it work with gimp v2.2 ?

Thanks

#72607 - Sausage Boy - Mon Feb 20, 2006 11:05 am

No, it works with gimp version 1 only (I think, I havn't tried), and the scripts are right here:
http://www.dspassme.com/programmers_guide/
Look for "gimpPlugins.tar.bz2". If you don't know how to extract it, I recommend 7-zip.

They removed python scripting in version 2 if I remember correctly.

I recommend gfx2gba, version 0.13 (they are actually completely different programs) for graphics converting.
_________________
"no offense, but this is the gayest game ever"

#72652 - Peyj - Mon Feb 20, 2006 9:25 pm

I'd like to know how to create a binary file of an image.
I see in the ndsLib example that they load a binary image with his palette. How can we creat such file ?

thanks

#72658 - tepples - Mon Feb 20, 2006 9:50 pm

Try some graphics-to-GBA-format tools: bmp2tiles, gfx2gba, etc.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#72732 - dovoto - Tue Feb 21, 2006 6:34 am

Peyj wrote:
I'd like to know how to create a binary file of an image.
I see in the ndsLib example that they load a binary image with his palette. How can we creat such file ?

thanks


I just exported it to raw from jasc and made my own 4 lines of code converter for tha demo. I recomend you grab gfx2gba from www.gbadev.org tools.

Or libnds has functions for directly loading an 8 bit pcx file. You can use this to load in graphics but i dont remember if i stuck in code to put the graphics into tile form as i was mainly using it for textures at the time.
_________________
www.drunkencoders.com