Imagesheet trimming does not work properly?

Hi,

I’ve got some animations and I can see the graphics jitter when using trimmed sprites in my imagesheet.
When trimming is off everything is fine.
I made sure to have all my sprites with even dimensions, I use padding of 4 [I’ve tested 2 as well].
Whatever I do I can see the animation jitter by 1px more or less every frame.

I’ve checked the sprite sheets in gimp and they look fine.
I use autoscaling and the same effect happens on both HD and SD imagesheets.

I’m not really sure what else could I add, it is pretty obvious.

I went through your bug list, but since it’s not complete [hell of a public bug tracker lol] I am not sure whether you’ve got something like this or not.

I use the latest texture packer, but I see nothing wrong with the output. [import]uid: 109453 topic_id: 30891 reply_id: 330891[/import]

Hey there, have you filed a bug for this? If so can you please give me the # and I will bring it up in our next meeting :slight_smile: [import]uid: 52491 topic_id: 30891 reply_id: 123631[/import]

Submitted #17309 [import]uid: 109453 topic_id: 30891 reply_id: 123655[/import]

Hey there, have you filed a bug for this? If so can you please give me the # and I will bring it up in our next meeting :slight_smile: [import]uid: 52491 topic_id: 30891 reply_id: 123631[/import]

Submitted #17309 [import]uid: 109453 topic_id: 30891 reply_id: 123655[/import]

I’ve raised an issue with TexturePacker, and Andreas (as usual) analyzed this much earlier than Corona.
So (surprise surprise) it’s a Corona bug, as it handles the position of sprites incorrectly [divisions of odd numbers].
He has also found a workaround [which will probably stay here for quite some time], and it’s to create an additional auto-sd variant of 0.25. This will force TexturePacker to use common divisor of 4 instead of 2 when positioning trimmed sprites.

Anyway… you will end up with a proper animation on screen. Don’t forget to remove the 0.25 leftovers.

For me the change meant adding this:

--autosd-variant 0.25:-low   

to my TexturePacker invocation.

I hope Corona will fix this soon, as it means a lot of wasted space in our spritesheets :confused: [import]uid: 109453 topic_id: 30891 reply_id: 124218[/import]

I’ve raised an issue with TexturePacker, and Andreas (as usual) analyzed this much earlier than Corona.
So (surprise surprise) it’s a Corona bug, as it handles the position of sprites incorrectly [divisions of odd numbers].
He has also found a workaround [which will probably stay here for quite some time], and it’s to create an additional auto-sd variant of 0.25. This will force TexturePacker to use common divisor of 4 instead of 2 when positioning trimmed sprites.

Anyway… you will end up with a proper animation on screen. Don’t forget to remove the 0.25 leftovers.

For me the change meant adding this:

--autosd-variant 0.25:-low   

to my TexturePacker invocation.

I hope Corona will fix this soon, as it means a lot of wasted space in our spritesheets :confused: [import]uid: 109453 topic_id: 30891 reply_id: 124218[/import]

Hi Kristian6,

I have the same problem as yours.

Sorry, but I don’t understand where I must put this line -- autosd-variant 0.25:-low

Could you explain me please?

Thank you :slight_smile:

Olivier

Hi Kristian6,

sorry to insist, could you explain me the “trick”
Thank you

Olivier

Hello Olivier,

I am using TexturePacker from the command line [using Ant].

This command line option is an equivalent of adding another autosd option, to generate -low image and definition with 0.25 multiplier. Then you can simply remove both -low.lua and -low.png files, but this will force texture packer to properly set everything on the texture.

I am not sure this is still needed, I do have it, and I don’t have any issues with my textures.

Hello Kristian,

thanks you very much for your answer  :slight_smile:

I’m going to try this today.

Best,

Olivier

Hi Kristian6,

I have the same problem as yours.

Sorry, but I don’t understand where I must put this line -- autosd-variant 0.25:-low

Could you explain me please?

Thank you :slight_smile:

Olivier

Hi Kristian6,

sorry to insist, could you explain me the “trick”
Thank you

Olivier

Hello Olivier,

I am using TexturePacker from the command line [using Ant].

This command line option is an equivalent of adding another autosd option, to generate -low image and definition with 0.25 multiplier. Then you can simply remove both -low.lua and -low.png files, but this will force texture packer to properly set everything on the texture.

I am not sure this is still needed, I do have it, and I don’t have any issues with my textures.

Hello Kristian,

thanks you very much for your answer  :slight_smile:

I’m going to try this today.

Best,

Olivier