Skip to content

About

Windows command line tool to generate image atlas sheets

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twobit-atlas

twobit-atlas is a Windows command line tool to generate image atlas sheets. It can generate atlases from a directory of images, specified true type font, or a combination of both.

Download

Windows binary installer: https://github.com/foobit/twobit-atlas/downloads

Usage

To get the full list of options type the following at the command prompt:

twobit-atlas.exe --help

Features

Texture Packing: Combine multiple images to a single compact image. Optionally use the --make-sprite option to create a sprite animation info file assocated with the atlas.

Texture Pack

Auto Offset Registration: Images offsets can be automatically matched from the source dimensions. The alignment offset is stored with the atlas. Drawing from the atlas information will have glyphs line up correctly.

Offset Matching

Glyph Layout: layout on the atlas can be placed in a grid or best fit.

twobit-atlas.exe --font Tahoma --font-size 24 --glyph-align BestFit -o tahoma24-fit.atlas

Tahoma 24pt best fit

twobit-atlas.exe --font Tahoma --font-size 24 --glyph-align Grid -o tahoma24-fit.atlas

Tahoma 24pt grid

Interactive Console Mode: Generate atlases via a console menu twobit-atlas.exe -C

Interactive

Plugin Support

The tool can be expanded via C# assembly plugins during startup.

In addition the executable can be used as an assembly in your existing .Net managed projects. Just add a reference to the executable itself.

Building from Source

Rebuilding from source requires Visual Studio 2010 or later (VS Express Editions work too)

Acknowledgements

NDesk Options: http://www.ndesk.org/Options

Excellent C# command line parser with getopt like syntax (support for long and short syntax). main command line parser for twobit-atlas

OpenTK: http://www.opentk.com/

Easy to use C# OpenGL implementation. used in the ExplodeSpriteAtlas sample

Lost Garden: http://www.lostgarden.com/

Free to use game artwork.

About

Windows command line tool to generate image atlas sheets

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages