Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes of little patches which look like UV artifacts. #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mifth
Copy link

@mifth mifth commented Nov 7, 2024

No description provided.

@mifth
Copy link
Author

mifth commented Nov 7, 2024

This is a fix for little patches which appear on highpoly models. It was originally made in this PR #138 but I've separated it.

I've attached a model where you could test the issue:
Monkey_smart_triangulation.zip

Run this code:

xatlas::Atlas* atlas = xatlas::Create();
xatlas::AddMeshError meshError = xatlas::AddMesh(atlas, meshDecl);  // Add your Mesh
xatlas::ChartOptions chartOptions = xatlas::ChartOptions();
xatlas::PackOptions packOptions = xatlas::PackOptions();
xatlas::Generate(atlas, chartOptions, packOptions);

Before changes:
image
image
image

After changes:
image
image

@mifth mifth mentioned this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant