• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by elzbeb · Jul 28, 2021 at 11:32 PM · texturetilesblurry

How to prevent mipmaps from blurring textures

Hello, I am looking for a way to stop my textures from looking blurry in the distance, by that I mean that the textures look perfect when they are right next to me and get gradually blurrier in the distance, that's not why I want at all, I want my floor to be clear and visible even if I am looking from far away. I have been doing a lot of research for the past 8 hours and I can't find anything that helps my case.

I tried disabling mip maps but my textures end up looking like crap I tried entering dev mode and changing the mip bias but it doesn't fix it entirely I tried switching the filer mode I tried setting the anisotropic filtering to all the options available (disabled, per texture, forced on) I tried switching the aniso level to 16 I even tried downloading another version of unity All that didn't help at all, I have linked some images as examples for you to see

Let me know if you have an idea of what could be causing this Thanks in advance.

alt text alt text

a2.png (64.9 kB)
a1.png (461.9 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by elzbeb · Jul 29, 2021 at 02:17 PM

The issue is that my nvidia drivers werent up to date so if anyone encounters this problem make sure you do that

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Eno-Khaon · Jul 29, 2021 at 02:53 AM

To put it simply, there's no easy solution to this problem. Mipmapping is often handled primarily as a factor of distance, without taking the *current* screen resolution into account often enough, nor to a significant-enough degree.

Mipmapping basically exists to reduce visual noise, and is much more important to detailed, grainy textures than to more-solid-colored ones. Likewise, Anisotropic Filtering is there to apply the effects of Mipmapping on individual axes as the surface displaying the texture is slanted at greater and greater angles.
*cough* DXT texture compression is a different matter altogether, and easily leads to other nightmarish visual artifacts. *cough*

So, let's look at what happens as Mipmapping occurs, then.

Base image: alt text Mipmaps: alt text

Each iteration keeps key details intact (namely, the *existence* of the cross through the middle), but clarity is lost with each step of Mipmapping because the image is blurred as its resolution is reduced over and over again. At the same time, however, the noise is also blended together into mushy, vague colors.

This is meant to mimic reality.

As visual acuity drops off with distance, so too do the apparent details in the image. To save computational power of trying to do this in real time, as well as because the pixel size on your screen doesn't actively change just because it's drawing the 3D model smaller at a simulated distance, this is made up for by creating additional sets of that texture instead. They're scaled down since they'll take up less of the screen at a time the further away you are, and they're blurred to simulate the loss in detail that becomes challenging to accurately portray.

Texture filtering (e.g. Bilinear Interpolation) only blends between neighboring pixels to account for sub-pixel accuracy; it doesn't cover a wide area. Mipmapping expands on this by reducing the number of pixels in order to support that filtering. With this in mind, it's apparent that the textures are being reduced in quality at a point where it is not visually helpful to do so.

And that brings us back to the beginning of this answer. There's no easy solution to this problem. How apparent the problem is is dependent on the type of texture being displayed; yours relies on discrete lines, and there's no sanity checking to ensure those lines remain fully intact when automatically downscaling the image.

That doesn't mean that all hope is lost, however. Combinations of Anisotropic Filtering and Trilinear Filtering (specifically intended to blend samples between mipmap levels) may help mitigate this. Similarly, thanks to an old forum post, there are non-zero options for manually adding Mipmaps, which may be a viable alternative option.


512cross.png (467.3 kB)
512crossmipmaps.png (302.7 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elzbeb · Jul 29, 2021 at 03:10 AM 0
Share

thank you that was very helpful definitely going to help me through my journey of solving this

avatar image
0

Answer by Razputin · Jul 29, 2021 at 02:17 AM

Have you tried using some form of anti-aliasing?

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elzbeb · Jul 29, 2021 at 02:46 AM 0
Share

No i didnt, it didnt seem to be the issue

avatar image Razputin elzbeb · Jul 29, 2021 at 02:49 AM 0
Share

If by blurry you mean the jagged edges anti aliasing will take care of that, unless you meant something else.

avatar image elzbeb Razputin · Jul 29, 2021 at 03:07 AM 0
Share

no i meant the floor, you see the further it goes the more it gets blurry

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

155 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Change Tile Pallette on runtime 0 Answers

Texture quality differs from EditorGame mode to build Game. 0 Answers

how to make gameobjects look clearer and less blurry when looking at them from farther away? 1 Answer

Mesh Render Texture Blurry 2 Answers

Faded terrain texture edges 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges