GithubHelp home page GithubHelp logo

seph14 / texturepacker Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 1.96 MB

An atlas generator to package textures into single/multi atlas and with a Xml file saving all individual textures' name, position, size.

License: MIT License

C++ 28.46% C 68.90% D 2.64%

texturepacker's Introduction

TexturePacker

author: Seph Li
http://solid-jellyfish.com

A tool packaging textures into single/multi atlas(es) and generate a Xml file saving all individual textures' name, position, size.

This software is supposed to be used with the Cinder C++ framework (https://github.com/cinder/Cinder). The core algorithm is using Paul.Houx's(https://github.com/paulhoux) bin packaging code (cinder/Cinder#362)

Functions:

  1. choose packaging method Single/Multi;
  2. change atlas size ( non power of 2 numbers will be floor down to a power of 2 number );
  3. load a single texture or load all textures in a folder;
  4. upon rendering, package will be resized to fit into the window (512x512);
  5. export - a filename with an extension (if no extension image will be saved as bmp) need to specified, and 2 xml files storing position, name, size of each texture will be saved. One is of absolute numbers and another one is of ratios relative to the atlas size. An option to export flipped texture make it easy to use with other cinder
    applications.

Known issue:

  1. load a folder of textures in multi bin mode after clearing all textures will cause a rendering issue.

Todos:

  1. ciUI block is actually out-of-date, so there might be more bugs related to the UI lurking somewhere, need to either improve it or implement another UI.

texturepacker's People

Contributors

seph14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.