Tutorial Preparing images for GRIT

SkilLP

Active Member
OP
Newcomer
Joined
May 2, 2020
Messages
29
Trophies
0
XP
318
Country
Germany
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 SkilLP,
General chit-chat
Help Users
  • No one is chatting at the moment.
  • KenniesNewName @ KenniesNewName:
    Next gen will probably be all portable
    Gift
  • T @ trimesh:
    Some things (like Super Famicom games) just feel right when you play them using the original hardware and a CRT
    Gift
  • KenniesNewName @ KenniesNewName:
    The PS tablet
    Gift
  • mthrnite tempBOT: @ mthrnite
    switches the box from tv to game
    Gift
  • T @ trimesh:
    Not so sure about that - the tendency for "graphics uber alles" tends to lead to very high power consumption
    Gift
  • KenniesNewName @ KenniesNewName:
    If you look at what's now portability graphics are catching up to console quality
    Gift
  • KenniesNewName @ KenniesNewName:
    Nintendy is a huge example of not everyone caring about powerful specs most that do will be hardcore PC players anyway
    Gift
  • T @ trimesh:
    The thing is that the IATA rules impose a pretty hard limit of 100Wh on battery sizes for lithium batteries - and it doesn't look like Li is going away soon
    Gift
  • T @ trimesh:
    So if you want (say) 4 hours of runtime you need a maximum system-level power consumption of 25W
    Gift
  • KenniesNewName @ KenniesNewName:
    Yeah but we already have AAA titles looking fine on tablet form 1080p displays
    Gift
  • KenniesNewName @ KenniesNewName:
    Human eye can only tell so much of a difference
    Gift
  • T @ trimesh:
    For reference, the PS5 is rated at 350W and the Xbox series X at 275W - and that's console only, without any display
    Gift
  • KenniesNewName @ KenniesNewName:
    But the future always holds performance never know what the aliens will donate from their left over tech
    Gift
  • T @ trimesh:
    Maybe :) - but batteries have turned out to be a pretty hard problem
    Gift
  • KenniesNewName @ KenniesNewName:
    Like I said most that will truly care will already be hard core gaming pcers
    Gift
  • T @ trimesh:
    And DF subscribers :)
    Gift
  • KenniesNewName @ KenniesNewName:
    I bet you could find a neighbor with a ps5 and they'd have no idea what the word spec means
    Gift
  • T @ trimesh:
    Yeah probably - people on forums seem to care a lot, but they are heavily self-selected
    Gift
  • KenniesNewName @ KenniesNewName:
    Most on forums try to get a good learning of actual tech
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Papaya, so good
    Gift
  • KenniesNewName @ KenniesNewName:
    Only 13 more titles to go on ps3 yay
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I still have a remnant of the taste of the papaya
    Gift
  • Dark_Phoras @ Dark_Phoras:
    @KenniesNewName June will come sooner than the end of that process
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    PS3 had horrible speeds off the drive
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    I always wondered why, but I am pretty sure it was trying to reduce costs
    Gift
    Psionic Roshambo @ Psionic Roshambo: I always wondered why, but I am pretty sure it was trying to reduce costs