• Bugs
  • Weight editing causes polygon edge distortion

Related Discussions
...

:sweat:
Hi,Nate:

Please check if it is a bug.It seriously affected the visual quality of the characters that contain parts created with mesh weight feature.

Environment:
Create and exported with the latest spine(1.9.x)
Run in cocos2d-x 2.2.3 with latest spine runtime from your git.

ScreenShots:
Screen shot 1 is the work in spine editor.
 Loading Image

Screen shot 2 is how it looks in cocos2d-x spine c runtime(runtime is up to date):
You can see the edge is seriously affected by the mesh vertex.Even the other leg which is also used mesh weight but not shown in the first pic is distorted in its edge.
It seems like the edge is cut along the mesh vertex.
 Loading Image

If you need detail sample data,please reply to tell me or contact sonic3d[a.t]gmail.com.I will email the project to you as attachment.
Thank you!

Is it possible that you have whitespace stripping on?
May we see your texture packer settings?

Pharan wrote

Is it possible that you have whitespace stripping on?
May we see your texture packer settings?

Is it uhh.. is it possible for you to scroll up a little bit?

More seriously though, it looks as if the renderer is specifically not anti-aliasing or allowing filtering specifically for the alpha channel? Strange. Try running it in another runtime (Unity, its free) and see if you get the same result?

@Mitch.
C'mon dude. The UVs are obviously misaligned. The cause could be a bunch of things.

To be clear, this doesn't happen when it's just a plain mesh without weights?

Pharan wrote

@[deleted].
C'mon dude. The UVs are obviously misaligned. The cause could be a bunch of things.

To be clear, this doesn't happen when it's just a plain mesh without weights?

Ah fair enough, I didn't notice the whole outline was missing. yea, something is definitely mis-aligned.

I hope Nate will be able to take a look at it. If possible please send the Spine project along with your cocos2d-x code and we can take a look at it.

Shiu wrote

I hope Nate will be able to take a look at it. If possible please send the Spine project along with your cocos2d-x code and we can take a look at it.

Thanks Shiu,I will call animation artist to prepare a set of project files and exported file on Monday or Tuesday.
:happy:


Pharan wrote

Is it possible that you have whitespace stripping on?
May we see your texture packer settings?

:o
I will post the export setting tomorrow or a day after.


Hi,

Here is the package to recreate the situation.
10001_WeirdEdgeDistortion_caused_by_WeightEditing.zip
Project file,readme file,exported data and export settings are packed in.
*The upper body of the character in this project is removed intentionally. =)

Hope it will be useful to identify the cause of this weird problem.
:doh:

As Pharan mentioned, looks like whitespace stripping is used in the atlas.

To be even clearer on it.
In Spine go to export then click Settingsnext to create atlas.
In there make sure white space stripping is off.
 Loading Image

Thanks Nate,and Pharan >😃

I unchecked those 2 option and everything turned to be ok.
But why strip white space would cause image edge aligned to the invisible mesh edge?Strip white space is ok but it will decrease the space usage rate in exported image and eventually caused more images to be generated.So if there is other way(or tricks) to avoid the edge distortion.Please tell me.

Be direct,I still think it's a bug because the effect in creation time is different to final run-time.So please fix that Nate.But the priority may not need to be raised too much high.I expect IK pinning support in runtime would be on top of the WIP list.
:yes: >😃

2 years later

Weights crash Cocos2d 3.10

There any way to fix this?

Assert failed: Unknown attachment type: weightedmesh

@[deleted]
Wrong topic. Please start a new one.

I read the entire topic before realising this post was from 1.5 years ago