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

Improve Mesh UV1/UV2 preview in the editor #98716

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Nov 1, 2024

  • Use an AspectRatioContainer to prevent stretching that occurs depending on the dialog size.
  • Draw UV bounds and a grid at 1/8th increments.
  • Scale lines according to editor scale for better visibility on hiDPI displays.

While investigating #98685, I've made a number of improvements to better troubleshoot UV layouts.

Preview

Dark theme, 200% scale

Dark

Light theme, 100% scale

Light

Black (OLED) theme, 100% scale, increased dialog size

Stretching the dialog now preserves the UV's display aspect ratio.

Black

- Use an AspectRatioContainer to prevent stretching that occurs depending
  on the dialog size.
- Draw UV bounds and a grid at 1/8th increments.
- Scale lines according to editor scale for better visibility on hiDPI displays.
@Repiteo Repiteo merged commit fbded4e into godotengine:master Nov 10, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 10, 2024

Thanks!

@Calinou Calinou deleted the editor-improve-mesh-uv-preview branch November 11, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants