-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specification of what page each image goes to. #63
Comments
You could just create two or more seperate atlas files for this purpose. |
I'm sorry. I could do that, but I don't like it as a solution. That actually goes against the purpose of having a texture atlas in my opinion. |
I think this depends on the viewport. |
Having multiple atlasses means my entities need to keep track of which atlas they belong to in addition to their texture region name. Having one atlas is cleaner and fits for many kinds of projects. Most of the time you realize you need more than one page after having everything already in one atlas. This option would save the time from having to redo the atlasses all over again. Also, it's part of the original spec, so it seems to be an omission. You can still use your technique if that is better for your project. |
@raeleus sorry for the late reply. Now the real question is what are other use cases when people want to group images together or control the order in any other way and what the app can do about it to provide meaningful options/UI? |
A common paradigm is to separate the UI from the game graphics, so the UI would be on its own page. You can also separate graphics for each level into individual pages. Honestly, I've switched to using pack.json files with the command line texture packer to do this. As I understand it, most people don't know you can arrange pages in this manner. It doesn't sound like it's worth the effort to add the feature. Feel free to close this if you choose. |
It's true that separating in that manner is important. But from my experience, I was always separating things by atlases (HUD, menu screen, level0, level1, etc...) and kept them to one-page only. It's pretty much the same thing, as organizing individual pages in one atlas, but managing those in the GUI app using separate "packs" might give some extra tweak options for individual images. All in all, I tend to think that people mostly use the multi-atlas approach rather than one big multi-page atlas for the entire app. Which if true, makes the case described in that issue a minor one. But the fact that there were multiple requests for the ordering feature makes me think that the possible solution for it might also give some nice opportunities for your case here. |
I have several large images that need to be in the same atlas. I'm fine with it spanning multiple pages. However, for the sake of efficiency, certain images need to appear on the same page to limit texture swaps. This technique works well when your images are drawn in specific layers.
I see no option to do this in Texture Packer GUI. LibGDX's Texture Packer has this option: https://github.com/libgdx/libgdx/wiki/Texture-packer#directory-structure It would be nice to have this feature in some capacity in your fantastic utility.
Where would this option go? I imagine it can go in the properties menu for each item in the Pack files panel. It would take an integer indicating what page it should prefer. Thanks for your consideration.
The text was updated successfully, but these errors were encountered: