Creating Texture Atlas

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

ppl
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue May 15, 2007 16:37
Location: Canada

Creating Texture Atlas

Postby ppl » Tue Jun 05, 2007 14:18

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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Thu Jun 07, 2007 08:29

You might try this little tool:

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

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

User avatar
Turtle
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Tue Nov 08, 2005 22:36

Postby Turtle » Fri Jun 22, 2007 02:30

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.

ppl
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue May 15, 2007 16:37
Location: Canada

Postby ppl » Fri Jun 22, 2007 15:54

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

User avatar
Turtle
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Tue Nov 08, 2005 22:36

Postby Turtle » Mon Jun 25, 2007 03:41

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.

User avatar
Turtle
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Tue Nov 08, 2005 22:36

Postby Turtle » Mon Jun 25, 2007 11:23

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)

ppl
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue May 15, 2007 16:37
Location: Canada

Postby ppl » Mon Jun 25, 2007 14:48

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


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 2 guests