TheStrokeForge / Vox-Cleaner-V2

Voxel Model Cleaner & Exporter, an add-on for Blender 3.0
GNU General Public License v3.0
12 stars 1 forks source link

UVs misaligned after cleaning #6

Open Nathanael-Shermett opened 2 months ago

Nathanael-Shermett commented 2 months ago

Hello,

First off, thank you for this incredible tool! I am very grateful for it. Unfortunately, I am running into issues with it.

Versions

Issue

When cleaning a model, the resultant UVs are incorrect. The following images show 1) a .ply model after having its vertex colors applied, and 2) the same model after pressing "Clean Model".

Notice the red—it is the base color of the texture which separates the various UV islands. However, it is showing up in the resultant model.

Steps to Reproduce

  1. Open this .vox file in MagicaVoxel and export it as .ply. I have also included the .ply file itself if you wish to skip the MagicaVoxel step.
  2. Import the .ply file into Blender.
  3. Click "Apply Vertex Colors".
  4. Click "Clean Model".

The resultant model will have an incorrect UV map.

Nathanael-Shermett commented 2 months ago

Note that manually editing the UVs and "snapping" the vertices seems to resolve the issue for most models, but not all. The attached file in the parent message demonstrates a situation where UV snapping only partially works.

Possibly related to this issue.