Defold now has TexturePacker support

Nice! I added this video to our list of video tutorials on defold.com/videos:

Also added the video to the Texture Packer documentation:

5 Likes

Do you have to use the “Polygon Outline” trim mode? Defold does not seem to handle the .tpinfo file properly unless is has that selected. But then it seem to maybe have a hard time with using slice 9?

Trimmed

Non Trimmed

Yes, it was an oversight in the initial support.
We have a ticket for this issue here: Add support for non-polygon trim modes · Issue #4 · defold/extension-texturepacker · GitHub

3 Likes

It should be easy to add that data for the exporter by simply exporting a rectangle for the sprites.
However the question is if it would also fix the 9-slice problems.

1 Like

I agree, I just overlooked the issuein my first pass.
If the rectangle is the same size as the actual image, then I think the 9-slice should work as usual.

What about trimming?

We could provide the trimmed rectangles (x=0,y=0,w=trimmed width, h=trimmed height) or the trimmed within the original size (x=offsetX, y=offsetY, w=trimmed width, h=trimmed height)?

Yeah, I believe we still store the original size, so storing the trimmed rectangle should work.

Hello!
what about compression? defold texture compression algoritms doesn’t work on texture packer atlases?
i got 30.07 MB(texturepacker) vs 5.99 MB(defold classic atlas)

1 Like

Do you use texture profiles?
What the difference in the build report?
Could you provide build reports for both?

2 Likes

My bad
forgot to add /**/*.tpatlas into texture profile

3 Likes

Hi @AndreasLoew !

We’ve just released a new version 2.0 of our exporter:

Would you mind updating the TP list of exports with this version?

8 Likes

Just released TexturePacker 7.5.0 including your updates!

7 Likes