Page 1 of 1

Creating Texture Atlas

Posted: Tue Jun 05, 2007 14:18
by ppl
Anyone know of a tool that can create a list of input images and output a single image that is a montage of the inputs (a texture atlas).

Ideally the tool could be easily modified to automatically generate the image set XML file.

So far I'm creating my images by hand which takes some time.

Thanks,
ppl

Note: There is NVIDIA Texture Atlas Tools but it doesn't seem to generate anything near an optimal fit

Posted: Thu Jun 07, 2007 08:29
by scriptkid
You might try this little tool:

http://kurtm.flipcode.com/imagechunks/

Unfortuanately it doesn't come with source code though...

Posted: Fri Jun 22, 2007 02:30
by Turtle
Hi ppl,

If I'm not too late - I wrote a rudimentary tool to pack a set of separate image into a single one and to spit out an imageset file. It was a while ago (about this time last year :)), but I'll have a look around on my laptop for it.

It used some box packing code that I found on the internet that I couldn't locate a license for however :(

Cheers.

Posted: Fri Jun 22, 2007 15:54
by ppl
Turtle wrote:Hi ppl,

If I'm not too late - I wrote a rudimentary tool to pack a set of separate image into a single one and to spit out an imageset file. It was a while ago (about this time last year :)), but I'll have a look around on my laptop for it.

It used some box packing code that I found on the internet that I couldn't locate a license for however :(

Cheers.


Sounds cool. Maybe we could eventually integrate this in CEImagesetEditor. Although for now, the imaget set editor doesn't have a way to write image files (afaik).

Let me know when you find back your source! :)

Thanks,
ppl

Posted: Mon Jun 25, 2007 03:41
by Turtle
I found the code this morning. I have to warn you that it's quite "rough", but it did the job for me.

It uses the Allegro library along with a png addon to load and save png images.

It only accepts png files (I think), but should be easy to change. It shouldn't be too hard to change from Allegro to another image library also if you wanted to.

I'll put it on somewhere tonight and post the url.

Cheers.

Posted: Mon Jun 25, 2007 11:23
by Turtle
Here it is:

Image

This site only holds files for 14 days, so you'd better download it quick :)

And as I said before, it's rough. It's also only the source code :cry:

(The site that its held on is by a guy who hosts all the maps etc for the freeware/open source game Spring - formally TASpring)

Posted: Mon Jun 25, 2007 14:48
by ppl
Thanks!

TSPack.c remind me of signal processing in Matlab :).

I'll try to get it to compile and run later on. I think it would be a cool-to-have feature in CEImagesetEditor.

ppl