I took the code from https://github.com/stylerhall/flipbookPacker and added a UI.
I take no credit for the packing algorithms employed, but simply for adding a janky UI.
NOTE: PYTHON MUST BE INSTALLED (TESTED WITH 3.9.1)
open a command window and type
pip install pillow (IF YOU HAVEN'T INSTALLED PILLOW YET
python flipbookpacker.py
or simply execute (double click)
flipbookPacker.bat
that comes with it
If either row or col is set to 0 and atlas pack is used, I just square pack (row col = same num)
Python tool for VFX artists to aide in different methods of texture atlas'ing and channel packing.
Current methods are your default full RGB(A) flipbook tiled for VFX playback. There are curently 2 other methods outlined in the script. Super Packing and Stagger Packing.
Super Packing and Stagger Packing both allow you to pack a minimum of 192 frames across the RGB channels or 256 frames across the RGBA channels. The way the images are packed into the channels are what makes them different.
Super Packing: This method is easier to unpack in the shader although compression will suffer because the pixels among the RGBA channels will be very different. Source Image 1-64 = TextureAtlas.R Source Image 65-128 = TextureAtlas.G Source Image 129-192 = TextureAtlas.B Source Image 193-256 = TextureAtlas.A
Stagger Packing: This method is a tad more expensive to unpack in the shader but will offer cleaner compression. Since the RGBA channels are the next 4 frames in your sequence, the pixels are closer matched which will help compression. SourceImage 1-4 = TextureAtlas.001.RGBA SourceImage 5-8 = TextureAtlas.002.RGBA SourceImage 9-12 = TextureAtlas.003.RGBA SourceImage 13-16 = TextureAtlas.004.RGBA Etc, ...