• Editor
  • Trouble trying to make sprite sheet in texture packing

Hello.
I wanted to export a VFX as a sprite sheet, separatedly of the main atlas (as my client requested) and I looked around to see how can I do it.
So far I tried to do using the texture packer in grid mode but I'm unable to pack it even tho I'm using the MaxHeight requested (For technical reasons I need to export in textures by power of two)

Any help with this?

  • इस पर Misaki ने जवाब दिया।
    Related Discussions
    ...

    Sirce I think the error message indicates that the value (4034) is wrong, not that it requires it to be set to 4034. Could you please try re-exporting with maxWidth/Height set to 4096? (4096 is a value of power of two.)

    • SilverStraw ने इसे लाइक किया।

    Oh That was it, I blame working late and not checking well the power of two references

    • Misaki ने इसे लाइक किया।
    10 दिन बाद में

    Hey, I'm having another Trouble with the texture packing. The doc says that if you put a .pack with the desired configuration in any subfolder, this will override the config when packing that sub folder, but is not happening in my case.
    For example, I'm trying to pack my model in with the main image folder has the body, and the sub folders are for other things like weapons and VFX.
    One of them is the VFX I was asking before about the configuration size. When packing just that subfolder as input, the result is the desired (a grid based atlas)
    But if I pack with the main folder instead, it will make an atlas from the body but the VFX suddenly is rendered in separate images, one per each frame.
    Any help is appreciated.

    Not all settings can be changed by pack.json files. Sorry this isn't made very clear in our docs. The same packing type is is used for the whole atlas. We haven't had a request to mix packing types. Grid is seldom used, as it is not very efficient, wasting space in the atlas images. I suggest using polygons if possible, otherwise rectangles.

    It would be easiest to just pack two atlases. You could combine them by simply copy/pasting one .atlas text file into the other, just make sure that the references to .png files are correct.