Texture Packer

Texture Packer is a Godot Engine module for creating texture atlases at runtime. It supports texture merging, layering, and packing with features like custom filters, background colors, and margins, enhancing runtime texture management.

https://github.com/Relintai/texture_packer

Texture Packer for Godot Engine

This module provides tools for creating texture atlases directly within the Godot Engine, even while the game is running. It's designed to improve performance by combining multiple textures into a single atlas, reducing draw calls.

Key Features

  • Runtime Texture Packing: Create and manage texture atlases during gameplay.
  • TextureLayerMerger: Merge textures as layers, ideal for character customization with skin and clothing variations.
  • AtlasTexture Integration: Seamlessly integrates with Godot's AtlasTexture for efficient sprite management.
  • Customization Options: Supports filters, custom background colors, and margins for fine-tuning the atlas creation.
  • Editor Plugin: Includes an editor plugin to import textures as PackerImageResource for optimized baking.

Usage

The module includes classes like TexturePacker for merging textures, TextureMerger as a Node for baking, and PackerImageResource for lightweight texture handling. TextureLayerMerger allows you to merge textures as layers, applying colors, positions, and cropping as needed. This tool is especially useful for games with dynamic content where pre-made atlases are not feasible.

Resource Details

tool

Relintai



3, 4