[Guide/Tools] Creating a sprite-sheet from an animation/video

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

[Guide/Tools] Creating a sprite-sheet from an animation/video

Post by ownlyme »

I wrote/edited 2 scripts for converting animations (for example gifs) into sprite-sheets
All you need to do is to open the file in gimp and run first the "seperateanimation" script and then the "create from layers" script (under filters->sprite-sheet)
The scripts are installed into C:\Program Files\GIMP 2\share\gimp\2.0\scripts

How to create a gif from a short video
Run ffmpeg with this command:

Code: Select all

.\ffmpeg.exe -i .\input.mp4 -filter_complex "[0:v] split [a][b];[a]palettegen [p];[b][p] paletteuse" .\out.gif
Hope you'll find this useful
Attachments
gimp-tools-1.0.zip
(2.03 KiB) Downloaded 57 times
Last edited by ownlyme on Wed May 08, 2019 12:30 pm, edited 2 times in total.
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Post by darkfrei »

Note that gif has alpha as bool, all half transparent shadows will be ugly.

User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Post by ownlyme »

yeah and sometimes you need to switch picture-> mode to rgb before saving or the transparency might end up as a bool.
(i assume you edit the image anyway, applying the transparency yourself)
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Post by darkfrei »

Can you make "sprite sheet to gif" tool?

User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Post by ownlyme »

i don't think so, sorry.
i'm terrible at this gimp scripting language
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Post by darkfrei »

I think that it can be done with ImageMagick, but I don't know how.

Post Reply

Return to “Modding discussion”