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

Simple item textures lack mipmaps, making them look grainy at a distance #2550

Open
Calinou opened this issue Apr 22, 2024 · 2 comments
Open
Labels
🐞 Bug Something isn't working cat: client Category engine (client, renderer, sdl) P3: Normal Priority 3
Milestone

Comments

@Calinou
Copy link
Contributor

Calinou commented Apr 22, 2024

On 2.82.1, cg_simpleItems 1 lacks mipmaps for sprite textures, which means simple items look grainy at a distance, even a 4K resolution and simple item scale set to 1.0:

image

image

I'm using 8× MSAA and 16× anisotropic filtering, but changing these has no effect on the simple item rendering. Texture filtering mode is set to trilinear (GL_LINEAR_MIPMAP_LINEAR).

@Aranud
Copy link
Contributor

Aranud commented Apr 23, 2024

Could you check the sprite textures by setting r_scalesvg to 1 then to 2 ?

@Aranud Aranud added 🐞 Bug Something isn't working P3: Normal Priority 3 cat: client Category engine (client, renderer, sdl) labels Apr 23, 2024
@Aranud Aranud added this to the Future milestone Apr 23, 2024
@Calinou
Copy link
Contributor Author

Calinou commented Apr 25, 2024

Could you check the sprite textures by setting r_scalesvg to 1 then to 2 ?

This doesn't improve the appearance at a distance (I made sure to /vid_restart every time):

r_scalesvg 0 r_scalesvg 1 r_scalesvg 2
Screenshot 2024-04-25 184041 Screenshot 2024-04-25 184059 Screenshot 2024-04-25 184112

When up close, this only appears to make the issue worse, as graininess becomes noticeable when even closer:

r_scalesvg 0 r_scalesvg 1 r_scalesvg 2
Screenshot 2024-04-25 184220 Screenshot 2024-04-25 184228 Screenshot 2024-04-25 184242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working cat: client Category engine (client, renderer, sdl) P3: Normal Priority 3
Projects
None yet
Development

No branches or pull requests

2 participants