inochi-creator icon indicating copy to clipboard operation
inochi-creator copied to clipboard

[Feature Request] Respect mirror settings when using auto mesh

Open HigasaMitsue opened this issue 3 years ago • 1 comments

Validations

  • [X] I have checked for similar feature requests and could not find any.
  • [X] I have made sure this is not an already-existing feature.

Description

Currently, the auto mesh ignores the vertex mirror settings.

Suggested solution

Mirror the auto mesh vertices across the currently enabled mirror axes.

There is an edge case where the user might enable mirror axes on non-symmetrical art, but I think that would fall under user error.

Alternative solution

No response

Additional Context

Low priority, could live without this.

HigasaMitsue avatar Oct 17 '22 04:10 HigasaMitsue

If original image on the texture is completely symmetric, this works well. Otherwise, generated mesh just fit to one side, and does not fit well in another side. We need to define what is desired when we turn on the mirror setting more precisely.

I resampled the result of contours not to generate too many vertices. I think that result in asymmetric layout. Maybe picking up resampled points in one side of mirror, and picking up nearest points from raw contour points for another side is the good way.

seagetch avatar Oct 17 '22 04:10 seagetch

This should be implemented as of this commit by seagetch https://github.com/Inochi2D/inochi-creator/commit/18b8b990518868d23963675dc51d00c06a4c4a77

LunaTheFoxgirl avatar Oct 19 '22 18:10 LunaTheFoxgirl