[Dev] Texture Packer - working with texture atlases to speed up data loading

When it comes to downloading files, it is typically much faster to download 1 big file rather than downloading 100 small files.

Even if the big file is 100 KB and you have 1000 1 KB files, it's still faster to download that one big file.

For example, consider a request I made for displaying keyboard keys on the screen.

http://forums.rpgmakerweb.com/index.php?/topic/52746-need-a-free-to-use-qwerty-keyboard-image-that-looks-good-on-the-screen/#entry520627

All of the keys are stored as separate, 100x100 images.

There are a total of 160 images.

Rather than loading them up separately, we can just pack them into one big file.

But what would be an easy way to do it?

We can use something called a texture packer.

Here is one such tool: https://code.google.com/p/libgdx-texturepacker-gui/

It allows you to just pick a bunch of images in a folder and combine them into one big image called a texture atlas.

For example, when all of those keys are combined into one texture, it looks like this

Spoiler
Stgs0RM.png
It also comes with a text file that tells you exactly where each image is, and how big the images are.

keyboard.pngformat: RGBA8888filter: MipMap,MipMaprepeat: noneKeyboard_Black rotate: false xy: 2, 1892 size: 100, 100 orig: 100, 100 offset: 0, 0 index: 0Keyboard_Black rotate: false xy: 2, 1787 size: 100, 100 orig: 100, 100 offset: 0, 0 index: 1Keyboard_Black rotate: falseIt looks like the program doesn't handle numbers in filenames properly.Going to try this one http://spritesheetpacker.codeplex.com/

Anyways, it should be cool.
I love this idea. 🙂
This is super duper cool! I saw you used this keyboard in your latest video, and was curious how you did it! Now I now this awesomeness was responisble!! YAY!!

😀 BD 😀​

Original thread: https://forums.rpgmakerweb.com/threads/dev-texture-packer-working-with-texture-atlases-to-speed-up-data-loading.52754/