Convert to 4 bit image

Post Reply
dheart88
Posts: 44
Joined: Sun Dec 13, 2009 3:00 pm

Convert to 4 bit image

Post by dheart88 » Tue Apr 13, 2010 12:55 am

I need a tool that can convert 2 bit bitmap to paletted bin file and raw file(index of palette)? I always use gfx2gba, but it can't support 2 bit bitmap.. I really need it, because I use it to optimize my 256x256 texture (to make it only around 16 KB for each texture model) and I only 2 two main banks for all my textures... :p

I haven't tried it yet, but i assumed 2 bit paletted bitmap is supported because this part of documentation :

GL_TEXTURE_TYPE_ENUM {
GL_RGB32_A3 = 1,
GL_RGB4 = 2, <-- here
GL_RGB16 = 3,
GL_RGB256 = 4,
GL_COMPRESSED = 5,
GL_RGB8_A5 = 6,
GL_RGBA = 7,
GL_RGB = 8
}

can you pls recommend me some tool that will work?? Sorry for my bad english

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Convert to 4 bit image

Post by WinterMute » Tue Apr 13, 2010 4:56 pm

We don't recommend gfx2gba, especially since grit is supplied along with devkitARM for image processing. Currently it doesn't have support for the various texture formats but, since it's open source, it should be relatively easy to modify for the functionality you require. Patches are of course rather welcome.
Help keep devkitPro toolchains free, Donate today

Personal Blog

dheart88
Posts: 44
Joined: Sun Dec 13, 2009 3:00 pm

Re: Convert to 4 bit image

Post by dheart88 » Wed Apr 14, 2010 4:31 pm

I still prefer gfx2gba since it supports multiple images with only one palette.. thx anyway... where can I get grit source code?? maybe i can help to develop a bit...

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Convert to 4 bit image

Post by WinterMute » Fri Apr 16, 2010 5:21 pm

Sorry to take so long replying, been a bit busy.

Grit can do that too ... http://www.coranac.com/man/grit/html/grit.htm

The source is found in devkitPro SVN

svn co https://devkitpro.svn.sourceforge.net/s ... s/gba/grit
Help keep devkitPro toolchains free, Donate today

Personal Blog

dheart88
Posts: 44
Joined: Sun Dec 13, 2009 3:00 pm

Re: Convert to 4 bit image

Post by dheart88 » Fri Apr 16, 2010 6:43 pm

Thanks... I'll try it

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests