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 quality of mesh and material resource previews in the editor #97468

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

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 25, 2024

This uses a combination of MSAA and SSAA to make thumbnails smoother while also improving texture sampling quality1. Thumbnail generation time is largely unaffected since most of the time is spent doing things on the CPU anyway, and the thumbnail resolution is still 128×128 (although the 3D buffer is internally 256×256 now).

Tested in all rendering methods.

Preview

Mesh

Before After
Before After

Material

Before After
Before After

At 200% editor scale, thumbnails can look really clean now:

Screenshot_20240925_234506

Footnotes

  1. Texture sampling improves thanks to SSAA, which works on textures that are viewed from any angle, including head-on angles (something anisotropic filtering cannot handle).

This uses a combination of MSAA and SSAA to make thumbnails smoother
while also improving texture sampling quality. Thumbnail generation time
is largely unaffected since most of the time is spent doing things
on the CPU anyway, and the thumbnail resolution is still 128×128
(although the 3D buffer is internally 256×256 now).
@Calinou Calinou added this to the 4.4 milestone Sep 25, 2024
@fire fire requested a review from a team September 25, 2024 22:04
Copy link
Contributor

@radiantgurl radiantgurl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me, I'm looking forward for a maintainer to review this!

@akien-mga
Copy link
Member

Duplicate of #94573 ?

@radiantgurl
Copy link
Contributor

Duplicate of #94573 ?

I feel like this PR should supersede that one

@passivestar
Copy link
Contributor

Works

g

@Repiteo Repiteo modified the milestones: 4.4, 4.x Feb 24, 2025
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.

None yet

6 participants