Tutorial  Updated

Preparing images for GRIT

THIS GUIDE IS FOR USING SPRITES WITH NFlib WHICH NEEDS THE SPRITES IN 8bpp MODE

Since some people already asked, here is a step-by-step guide on how to use GIMP to prepare an image for GRIT:

Method 1 (recommended):
1.: Put the -gB8 flag into the command that converts the sprite with grit. That ensures that grit is outputting 8bpp instead of the usual 16bpp
2.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

Method 2:
1.: Open the image in GIMP.
2.: Click on Image, then in the dropdown go to Mode and select Indexed and in the dialog click Convert.
3.: Go to Windows>Dockable Dialogs and click on Colormap. This will enable a tool on the right side of GIMP. If you keep it there, you won't have to redo this.
4.: You may need to add a bunch of colors (using the + symbol under the pallete in the colormap window) so you have about 30-40 colors (you can see the index of the color in Color index)
5.: Click on File and Export As and save it as a .bmp image.
6.: A dialog with the title Export Image as BMP should pop up. Click on Compatability Options and enable Do not write color space information.
NOTE: If you don't get this dialog, you might have to restart GIMP or open a file that already is a .bmp image.
7.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

As you can see, method 1 is WAY shorter and easier, but I only today figured out that you can do that instead of using method 2, which was the original method this guide described
 
Last edited by KonPet,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    NinStar @ NinStar: It will actually make it worse