Jump to content
  • Advertisement
Sign in to follow this  
Happy SDE

Texture atlas tool

This topic is 640 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone!

Analyzing one video game, I found texture atlases usage, for example:

[attachment=33643:atlas.png]

Currently in my game, each cross hire image has separate file.

I would like to switch to atlas usage.

 

I think there are many approaches how to do it, and here are solutions that came to my mind:

  1. Use some specialized tool.
  2. Use some plugin for photoshop/2D editor.
  3. Write own tool.

Could someone suggest a good (and probably free) tool/plugin to do the job?

 

PS: platform – Windows.

 

Thanks in advance!

Edited by Happy SDE

Share this post


Link to post
Share on other sites
Advertisement
Currently in my game, each cross hire image has separate file.

If they are all the same size then you can just connect them yourself, example four cross hairs of 64*64 will make a simple grid atlas of 128*128.

 

 

 

Could someone suggest a good (and probably free) tool/plugin to do the job?

Blender can do it for you, it has many atlas tools. If you upload the images I can show you how to do it in Blender.

Edited by Scouting Ninja

Share this post


Link to post
Share on other sites

Blender can do it for you, it has many atlas tools. If you upload the images I can show you how to do it in Blender.

 

That would be great!

There are 5 temporary dds images in attachment

Edited by Happy SDE

Share this post


Link to post
Share on other sites

I'm guessing that requires a fixed grid, right?

 

Does anyone have any plugins or processes that will pack graphics more tightly, and export a list of bounding boxes for each one?

Share this post


Link to post
Share on other sites

Although not directly usable without writing a tool for it, I use this with great success to perform atlas generation.

Edited by Yourself

Share this post


Link to post
Share on other sites

I'm guessing that requires a fixed grid, right?   Does anyone have any plugins or processes that will pack graphics more tightly, and export a list of bounding boxes for each one?

Blender has the texture atlas add-on for that, the reason I didn't demonstrate it is because it's a real pain to learn and the gain from doing things like this is dismissive. It's good for 3D where you deal with irregular shapes.

 

In 2D using a grid based atlas is preferred as it makes loading easy and it's as effective as any otter atlas.

Share this post


Link to post
Share on other sites

In 2D using a grid based atlas is preferred as it makes loading easy

 

That's kind of tautological though... if you have a tool which automatically packs images more closely and gives you the coordinates for loading them as well, it would be almost as easy as a grid but more efficient, so that would be preferable.

Share this post


Link to post
Share on other sites
it would be almost as easy as a grid but more efficient, so that would be preferable.

If there was a tool like that and you could load all the images and the map and then the engine would auto map them; then it would be worth the small performance boost, maybe.

Coding the map or typing it line by line isn't efficient, using a grid of constant sizes is more efficient as you will only need one function to load it; keeping it a grid will also help when moving from software to software.

 

I guess you could write a function to read the map and divide, it shouldn't be hard; the grid will always be more efficient; in my opinion.

 

if you have a tool which automatically packs images more closely and gives you the coordinates for loading them as wel

Most sprite sheet tools provide a text document with a map, it just gets confusing when you start mapping large amounts.

There is a online one that I use from time to time, it produces a map and it's optional: https://www.leshylabs.com/blog/posts/2013-12-03-Leshy_SpriteSheet_Tool.html

 

 

I will recommend using Blender instead even if it's hard to learn, because Blender allows you composing, 3d object atlas and many otter options along with the 2D atlas.

For people that just want a fast tool I recommend Leshy SpriteSheet.

If you want a offline one google "Sprite sheet tool".

Edited by Scouting Ninja

Share this post


Link to post
Share on other sites
You can also use a sprite sheet tool if this is too much.

Thank you, Scouting Ninja for your great effort!

I tried Blender method and after 1 hour found that I really need drag and drop tool :) with layout export facilities (like UV for each image) + command line support to integrate it to my pipeline.

 

So, using your suggestion, I found 2 tools:

1. Completely free: Sprite Sheet Packer

2. Texture Packer

 

If someone could suggest better free tool, I would appreciate it.

Edited by Happy SDE

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!