• EditorBugs
  • Spine 4.2 mesh whitespace stripping

Is there a way to strip whitespace from meshes on export?
I am using binary export and i turned on strip whitespace x and strip whitespace y

The mesh itself has some whitespace, but when it wasn't converted to a mesh the image exported had whitespace stripped. The moment i converted it to a mesh and re-exported it, the export had whitespace.

Pls help

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    davidm Unfortunately, based on the information provided, it is difficult to determine the exact cause of the issue. However, it is likely related to the use of Polygons in the Output - Packing option combined with complex conditions, which may be leading to inefficient packing results.

    The texture packing process has a limit on the number of attempts it can make, so if the conditions are overly complex, packing efficiency may be reduced. That said, this kind of issue is much less common in version 4.2, so the problem may not be solely due to the use of polygon packing but rather a combination of multiple factors.
    If you would like to identify the exact cause, please send the files that reproduce the issue via email: contact@esotericsoftware.com
    Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.

    problem.zip
    1MB

    You can use this project to recreate the issue. Is it even possible to remove whitespace in the export if the mesh has whitespace?

    • Misaki ответили на это сообщение.

      davidm Thank you for sharing the files that reproduce the issue! I had assumed that as long as you selected Rectangles in the Packing section, Strip whitespace X/Y should work correctly, but it seems that was incorrect. I apologize for my inaccurate answer.

      I asked Nate whether this was something that could be improved, but unfortunately, it's not possible to trim off blank mesh pixels due to technical limitations in how rendering is handled. Therefore, if you want to trim the whitespace of the image where the mesh is set, please adjust the mesh hull size accordingly.

      Yeah, I figured that would be the case. Thanks for the answer though!