Atlas Generator tool

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
User avatar
stealth977
Gnoll
Posts: 638
Joined: Mon Dec 15, 2008 6:14 pm
Location: Istanbul, Turkey
x 42

Atlas Generator tool

Post by stealth977 »

I am currently working on an isometric game and needed some tools while working on the project, so I decided to code them myself including this little atlas generator:
qtAtlas.jpg
Source and VC2010 binary (you may need to install VC2010 distributables to run):

http://www.royalspor.com/QtAtlas.rar

only dependency is QTCore and QTGUI, needs QTDIR environment variable set, to be able to compile... Uses some *.ico" icons which may not display on linux/mac, other than that code is cross-platform.

Features:
* A project can define as many atlases as you like, you can define maximum widths/heights for the generated atlas (width is important since generated atlas will use it as is, height is auto cropped to power of 2 containing only used pixels)
* You can add multiple Image files to any atlas, or you can use Font Image tool to generate an image containing a set of characters rendered with a font (it auto creates the texture boxes for individual characters)
* For every image file in an atlas, you can define texture boxes defining a texture area inside the image
* For every texture box, you can define multiple subtexture areas (during atlas generation, parent texturebox will be kept as a whole, but coords for sub textures will also be exported as "parent_name.sub_name")
* can set Texture Boxes to have 1 pixel empty border around them during atlas generation

* Finally you can export your atlases to "atlas_name.png" (with transparency) and "atlas_name.atlas" (text containing texture locations (x,y,w,h) of the textures inside atlas) files.

* There are options:
- to fill outline fonts automatically
- to auto-shrink texture boxes to cover actual used pixels
- to split an image using a grid (you define width/height of grid and it splits auto)
- to auto detect and add texture boxes for the random textures in a given image file (assumes textures are divided with transparent pixels)
- to import texture locations from a text file
- and some more that i dont remember now =P

Feel free to use code/app whatever way you like.
You do not have the required permissions to view the files attached to this post.
Ismail TARIM
Ogitor - Ogre Scene Editor
WWW:http://www.ogitor.org
Repository: https://bitbucket.org/ogitor
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99

Re: Atlas Generator tool

Post by Wolfmanfx »

Güzel :) - What do you use for the game (I mean tech).
User avatar
stealth977
Gnoll
Posts: 638
Joined: Mon Dec 15, 2008 6:14 pm
Location: Istanbul, Turkey
x 42

Re: Atlas Generator tool

Post by stealth977 »

Sağol =P

Well i currently use OGRE to render, but its just a few calls to render triangles from a few hardwarebuffers, may directly implement in opengl/opengles instead.
OpenAL for sound, RakNet for network.

So, the code is ultra cross-platform atm, can run on any pc platform or mobile platform...
Ismail TARIM
Ogitor - Ogre Scene Editor
WWW:http://www.ogitor.org
Repository: https://bitbucket.org/ogitor