[r173] Image Deduplication doesn't work properly

Bugs will be moved here once resolved.

Post » Fri Jul 04, 2014 2:45 pm

Problem Description
Image Deduplication doesn't work properly, if sprite has an animation which re-uses the same frame in several places (e.g. in A B A C A D or A A A A A A form)

Attach a Capx
deduplication.capx


Description of Capx
Sprite with a tree animation.

Steps to Reproduce Bug
  • Edit Sprite animations.
  • Duplicate frame №0 3 times or duplicate animation "Default" 3 times (or how much times you want)
  • Export to html5 or cocoonjs or anything else
  • Open destination folder and see that in spritesheet you have 4 same pictures (Or more).

Observed Result
Construct 2 exports 4 absolutely same frames to a spritesheet and deduplication doesn't delete the unnecessary pics.

Expected Result
Construct 2 looks for and removes duplicate images. Interesting that if i clone Sprite object type, deduplication works properly and only 1 frame exported.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 7 64bit, Windows 8 64bit.

Construct 2 Version ID
r173
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Jul 04, 2014 3:08 pm

Oh, and if you duplicate the zero frame only 2 times, you will see that you have 3 identical spritesheets
sps (1).png


If more, you will see something like that
sps (2).png
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Jul 04, 2014 11:01 pm

Yep

Operating System and Service Pack
Windows 8.1 Update 1 (64-bits)

Construct 2 Version ID
Release 174 (64-bits)
B
89
S
28
G
11
Posts: 652
Reputation: 11,428

Post » Sat Jul 05, 2014 12:55 am

I think it's working as intended. I heard about non duplicate frames. But I've never seen it. I had someone give me a classical animation sprite sheet(as in all files in a directory). and that's duplicated frames... alot. I've heard of non duplicate, but I don't think it's based on image checking. I think it's somethign else.

I wish C2 went to image atlasing and used refences for sprite images to use. Including cycles.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Sat Jul 05, 2014 9:40 am

jayderyu wrote:I think it's working as intended. I heard about non duplicate frames. But I've never seen it. I had someone give me a classical animation sprite sheet(as in all files in a directory). and that's duplicated frames... alot. I've heard of non duplicate, but I don't think it's based on image checking. I think it's somethign else.

I wish C2 went to image atlasing and used refences for sprite images to use. Including cycles.

Image deduplication
As a tutorial said, it checks images and should remove duplicated frames. Also, it was discussed here.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Mon Jul 07, 2014 3:50 pm

Thanks for the report, this is a good catch. It turns out the deduplicator was removing identical images between object types, but not within the same object type (so duplicate images in the same animation were still exported). I'm not sure if this never worked or if it's something we broke recently, but either way, it should be fixed in the next build.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests